[Logo]
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.
Curse your sudden but inevitable betrayal! And this tiny ad too!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 751 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 17, 2018 02:04:21.