Forums Register Login
I need help
i had a display.java;i compiled it,and founded a display.jar files.then i deleted the display.java and display.class;i had an other Usedisplay.java . i use the display.class's object in the Usedisplay. both display.jar and Usedisplay.java have a path.but i compile the Usedisplay.java ,is wrong!show the "package display does not exit"," import display.*"
please help me ,i think to use the class from .jar files!
i m sorry ,my english level is not well!
any classes you want to use (import) in another class should be on your CLASSPATH, not your PATH.

javac -cp .;c:\path\to\your\jar_file.jar Usedisplay.java
Even though this might be a servlet you're compiling, I'm still going to move it to Java In General - Beginners.

This thread has been viewed 777 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 16, 2018 07:53:01.