Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Class cannot be resolved

Thread view: 
Boris Ozegovic - 26 Aug 2007 22:45 GMT
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?
Arne Vajhøj - 26 Aug 2007 22:57 GMT
> I am trying to incorporate some third party application in my project, and
> have problem with class resolving.  I have this line:
[quoted text clipped - 11 lines]
>
> How can I find out what is desired class?

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

Arne
Roedy Green - 27 Aug 2007 09:13 GMT
On Sun, 26 Aug 2007 23:45:46 +0200, Boris Ozegovic
<koje_je_ono_bilo_pitanje@bla.bla> wrote, quoted or indirectly quoted
someone who said :

>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
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Boris Ozegovic - 27 Aug 2007 20:23 GMT
> 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;

Signature

"A mi smo stranci u vlastitoj zemlji zbog ljudskog sljama, lipa nasa
silovana"



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.