| context | - Avoiding Environment Variables - | author |
I do not encourage beginners to alter the environment variables on their machines. Instead, I give them some shell files to execute.
In a file, command.cmd, on a Microsoft Windows machine:
In a file,
My students place |
In a file, command, on a Linux machine:
In a file,
My students usually place |
If their OS isn't finding their javac and java programs, students need
to replace javac and java with their full path names.
If using the zio.jar file then the path name mentioned above should
be the complete path name of this file rather than the path name of the
zio directory.
When setup as described, students can compile and execute this way on either a Windows or a Linux machine.
compile ProgName
run ProgName
| context | Jul 1, 2005 | author |