compilation - How do I change the folder where my .java files are compiled from? -


i save .java source files in bin folder in jdk directory. how can change place .java files saved , compiled? example, documents folder?

javac compiles files relative current working directory. need set path (you'll want change location given in answer actual jdk location). then, can have command prompt's working directory in location want .java files compiled from, , call

javac mysource.java 

you can use ide such eclipse or intellij idea, keep files organized projects, , build files in correct locations. highly encourages you'll get:

  • project organization , building without having worry internals
  • integration of libraries testing without having remember growing command line
  • visual feedback syntax errors (and logic issues well)
  • step-by-step debugging of code figure out went wrong.

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -