I've been trying to run an executable jar but somehow it returns an error that my class is not existing. I tried to search the web on different ways to run it and I have tried the following so far:
java -cp Unirest.jar:lib/*
java -cp Unirest.jar:/home/appstemp/phuzca/lib/
java -cp Unirest.jar;/home/appstemp/phuzca/lib/*; MainMethod
javac -cp '.:/home/appstemp/phuzca/lib/*.jar' Unirest.jar
javac -cp '.:/home/appstemp/phuzca/lib/*.jar' Unirest
java -cp "Unirest.jar;lib/*" com.unirest.request.MainMethod.java
java -cp "Unirest.jar;lib/*" com.unirest.request.MainMethod
java -cp .:lib/* com.unirest.request.MainMethod
java -classpath lib/*:. com.unirest.request.MainMethod
java -cp "/lib/*:" Unirest.jar
java -cp "/home/appstemp/phuzca/lib/*:" Unirest.jar
java -classpath "/home/appstemp/phuzca/lib/*:." com.unirest.request.MainMethod
java -cp "Unirest.jar;lib/*" com.unirest.request.MainMethod
But none of them worked. Any help would be appreciated
java -jar Unirest.jarHave you tried this.?:as a path entry separator, in operating systems other than Windows. Tryjava -cp "Unirest.jar:lib/*" com.unirest.request.MainMethod.