I need to run a java class in cmd line. How would I run a 开发者_C百科java class without changing directories, but instead specify a relative path? I have tried the following, but to no avail:
java -cp ./lib/*; ./bin/javaclass
you need to set classpath till the bin folder.
java -cp ./lib/*;./bin com.foo.MyJavaClass
精彩评论