Java: running program when path not set

Tutoring comp sci, you experiment a lot. The tutor shares one.

The java command, in Windows, anyway, seems to like a space between the directory and the filename you are running.

java -cp f:/dir1/dir2 program_file

not

java -cp f:/dir1/dir2/program_file

Source:

stackoverflow.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply