Netscape object does not exists

Posted on 2006-07-08
Last Modified: 2012-08-14
Hi Java X-perts,
Still learning Java... I am making some experimtnes decompiling - compiling and back. One of the decompiled Java classes generates a few errors, when I compile it back WITH NO CHANGES:

Those are the lines and their errors:

import netscape.javascript.JSObject;  ---> package netscape.javascript does not exists

JSObject jsobject = null; ---> cannot find symbol

jsobject = JSObject.getWindow(o);   ----> cannot find symbol


I am using JAD for decompilation and it works fine for all other files. I cannot understand what is wrong as I have not made any changes to the code.


Question by:andy7789
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 86

Accepted Solution

CEHJ earned 250 total points
ID: 17064539
Makre sure the


is in your classpath

Author Comment

ID: 17064566
Yes I do have plugin.jar here. Do you mean i have to include its dir to system PATH?
LVL 86

Expert Comment

ID: 17064583

Compile your app

javac -classpath %JAVA_HOME%\jre\lib\plugin.jar;. *.java

(if you've set JAVA_HOME as i recommended earlier)
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 17064600
It is even worse, it gives me 9 errors instead of 3.

1. java.applet.Applet is already defined in c68
2. a few similar errors - canot find symbol (variable super and class JSObject)

What is wrong?
LVL 86

Expert Comment

ID: 17064610
Well you *are* likely to get errors from decompilation/compilation exercises.

If you post it somewhere public,i'll see if it can be compiled

Author Comment

ID: 17064619
what is the best decompiler? i will try it again, if I could fix it... I am using JAD
Any better ideas?
LVL 86

Expert Comment

ID: 17064663
You won't get better than JAD really

Author Comment

ID: 17066540
It works, thank you! I had some mess classpaths with pointing to plugins.jar.
LVL 86

Expert Comment

ID: 17066560

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question