javac compiling error ( mising package)
First i have to say I am very new to java. I downloaded java codes from the Internet and try to compile them using javac. I got following error,
Code:
C:\temp\javacrypt>"C:\Program Files\Java\jdk1.6.0_06\bin\javac" RSAExample.java and that package is not part of standard jdk, right? How do i get those package? I also have netbean and eclipse, but I haven't tried to use them yet./ |
When you get the package, which is probably a .jar file, add that .jar file to your classpath (environment variable).
EDIT: Specifically, here. EDIT: I believe on Windows it's something like... SET CLASSPATH=%CLASSPATH%;C:\path\to\jar\jarfile.jar |
Well, on Linux you would open your package manager to install it. On windows, you have to take care of it yourself and visit the Apache site (commons subscection) to download and install it.
|
I downloaded the jar file suggested by elprawn, and it work great!! thank you so much.
I am curious about the suggestion from jay73. Is the package management the software like "yum" or "apt-get", right? What keyword should use to search for it? |
On a system that uses apt, you can use
aptitude search commons and you'should get a list of the available commons libraries.On ubuntu: Quote:
|
All times are GMT -5. The time now is 11:33 AM. |