This content has been marked as final. Show 2 replies
You need to specify the classpath during the compilation time.
Yes. Opalo is correct. I would add that it is generally bad practice to modify anything under JAVA_HOME (with a few notable exceptions like security policies). Generally, you want to set a CLASSPATH for both compilation and execution for the JAR and CLASS files that are needed. Generally, set JAVA_HOME as an environment variable but specify CLASSPATH for each usage.