I\'m writing a makefile that compiles a .java file in a different directory, and then I want to run it, without changing directories. I want to do something alo
Use the -d command line parameter with javac to tell it what directory you'd like to store the compiled class files in. Then, to run the program, simply include this directory in the classpath: