Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: import netscape.javascript.JSObject - Error

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default import netscape.javascript.JSObject - Error

    Hi,

    Could you please advise,
    I get error related to :netscape.javascript.JSObject
    the error : package netscape.javascript does not exist



    package SensorMonitor;
     
     
    import netscape.javascript.JSObject;
     
    import java.net.*;
     
     
    public class CommonUtils {


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: import netscape.javascript.JSObject - Error

    The class netscape.javascript.JSObject is not included in your classpath.

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: import netscape.javascript.JSObject - Error

    O.K
    How do I included it in my classpath?

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: import netscape.javascript.JSObject - Error

    Have a look here: Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting Started)

Similar Threads

  1. Import if Import is Found, Else
    By blazedGinger in forum Java Theory & Questions
    Replies: 5
    Last Post: March 9th, 2013, 06:43 PM
  2. netscape.javascript not found
    By rasen58 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 4th, 2012, 02:43 PM
  3. Error: The import java.swing cannot be resolved [in drJava]
    By ArcticOokami in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 24th, 2012, 06:39 PM
  4. JavaScript Error in Task Bar..!!
    By ashishrajiit in forum Other Programming Languages
    Replies: 2
    Last Post: November 13th, 2011, 10:50 AM
  5. Javascript error in a lightbox gallery...
    By tigerbuilder81 in forum Other Programming Languages
    Replies: 3
    Last Post: November 4th, 2011, 07:52 AM