Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need help with gnu.getopt package

807605Aug 21 2007 — edited Aug 21 2007
I guess you could say I'm pretty new with java.

OK, I'm trying to work this example:
http://www.jsresources.org/examples/AudioPlayer.html

and it requires the gnu.getopt package to run

So I went here:
http://www.jsresources.org/examples/examples_download.html
and downloaded the jar file.

Everytime I try to compile (I'm using NetBeans IDE 5.5), it would give me an error saying:
D:\java\Java Audio\AudioPlayer\src\audiopla... package gnu.getopt does not exist
import gnu.getopt.Getopt;

So I want to know how to actually install this gnu jar file I've downloaded.
Do I just put it in a folder that is part of my CLASSPATH or what?
I put i in a folder: D:\java\CP
and then I run cmd and type echo %CLASSPATH% and this directory is part of the CLASSPATH but I still can't compile!
When I type echo %CLASSPATH% I get:
.;D:\java\CP

Am I doing this all wrong?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2007
Added on Aug 21 2007
9 comments
499 views