This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Applets and the fly likes include Netscape package in CLASSPATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "include Netscape package in CLASSPATH" Watch "include Netscape package in CLASSPATH" New topic
Author

include Netscape package in CLASSPATH

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi all
I'm trying to pass parameters from java to javascript,i need to include Netscape package in my CLASSPATH to get JSObject.class.
I uncompressed java40 that comes with Netscape installation and i got JSObject class and i put it in the same directory as my other files(Java & html files).
When i compile the java class i'm getting JSObject class not found.
How can i include that package in my class to get JSObject class.
Thanks alot for your time.
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20540
    ∞

I include java40.jar in my classpath and everything compiles up just fine.


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Would you please tell me what you did,please if you can
tell me how to include it in your path by steps,because when i do that i'm missing something.
Thanks alot for your time.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: include Netscape package in CLASSPATH