I can compile using a classpath set up by means of the environment variable. I can also compile using the -classpath parameter of the javac line command. The problem comes when using the two together. Does the -classpath parameter override or overridden by, precede or succeed the classpath environment variable. Thanks, amo
posted 12 years ago
The command line classpath overrides the CLASSPATH environment variable setting. If you want to use both, the trick is to include the environment variable in your command-line argument. On Windows, something like: java -classpath %CLASSPATH%;some.jar;c:\myprojects\thing\classes On Linux, Unix, etc. something like: java -classpath $CLASSPATH:some.jar:/usr/me/myprojects/thing/classes Does that help?