Class cannot be resolved

B

Boris Ozegovic

Hi!

I am trying to incorporate some third party application in my project, and
have problem with class resolving. I have this line:

Scriptable scope = context.initStandardObjects(null);

Errors are:
Context cannot be resolved
Scriptable cannot be resolved to a type

When hitting ctrl+shift+o in Eclipse I have only
javax.naming.Context
org.omg.CORBA.Context
and they both don't have initStandardObjects().

How can I find out what is desired class?
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Boris said:
I am trying to incorporate some third party application in my project, and
have problem with class resolving. I have this line:

Scriptable scope = context.initStandardObjects(null);

Errors are:
Context cannot be resolved
Scriptable cannot be resolved to a type

When hitting ctrl+shift+o in Eclipse I have only
javax.naming.Context
org.omg.CORBA.Context
and they both don't have initStandardObjects().

How can I find out what is desired class?

Have you added the third part application jar files
to you rproject ?

Arne
 
R

Roedy Green

Context cannot be resolved
Scriptable cannot be resolved to a type

When hitting ctrl+shift+o in Eclipse I have only
javax.naming.Context
org.omg.CORBA.Context

there are package statements for these? You have Eclipse configured
to be able to find the libraries, right? But do you have the run-time
path or jar configured to find the libraries?

See http://mindprod.com/jgloss/classpath.html

Easiest just to dump them in the ext directory.

See http://mindprod.com/jgloss/ext.html
 
B

Boris Ozegovic

Roedy said:
there are package statements for these? You have Eclipse configured
to be able to find the libraries, right? But do you have the run-time
path or jar configured to find the libraries?

Externals jars were not inside source folder, and there was nothing about
externals jars in documentation. I did find needed jars by writing methods
in google. :)

Packages are
org.mozilla.javascript.Context;
org.mozilla.javascript.Scriptable;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top