Cannot execute Java Classes on OSX -
i'm trying execute java build using commandline in osx 10.10,
the command i'm using:
java -classpath ./bin;./libs/log4j-1.2.17.jar example.hello.server localhost:80
i've got mamp , running on classpath , java in same "classes" directory. terminal showing options can used java , not executing file. same happends when using -cp.
thanks
you have misplaced ;
instead of :
in classpath string. try:
java -classpath ./bin:./libs/log4j-1.2.17.jar example.hello.server localhost:80
remember on osx (or other unix flavor system) path separator :
not ;
on windows/dos
java osx shell terminal
No comments:
Post a Comment