linux - Compile Java source to another directory -


so i'm new java programming , can compile , run java code linux terminal using javac objects.java , java objects. although, wondering on how compile source code directory? let's have file person.java in /home/alarm/projects/src/ folder, want compile /home/alarm/projects/bin/ folder while still in current directory. not sure if makes sense, can explain if possible? btw, using arch linux know os.

you can use parameter -d specify target directory.

more information can found here.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -