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.
I do some of my very best work in water. Like this tiny ad:
Thread Boost - a very different sort of advertising

This thread has been viewed 732 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 24, 2018 15:07:32.