[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Class not found even though jar file is in classpath
|
Peter,
Good point about the word app. Basically, it is a java application that I
think I'm force feeding into Eclipse. This might be my problem. I have
taken the approach to start my "app" by creating an action set that when
clicked opens up a SWT display that is used for logging in. When 'OK' is
clicked, a SelectionListener handles this and sends a request to a web
server. The request is run by using a method inside the action set class
that calls another class outside the action set.
The request is performed by the web server, and my code then tries to
process the response. This is also done outside the action set class. My
processResponse() method calls a static method on a class. This is the
class that is not found.
Not found in the classpath does indeed mean not found in the build path.
What is the exact difference between the two? Hope this helps.
ERIK
Peter Amhof wrote:
> app? be careful application is clearly defined in eclipse.
> are you talking about runnning and instantiating an "Eclipse Application" in
> Eclipse or
> are you talking about launching a java application?
> sorry asking you this, but it's essential.
> mfg feZZZer aka pTr pAuL
> anyway: if you lunch a VM you have to set the classPath (maybe:
> JavaRuntime.computeDefaultRuntimeClassPath(IJavaProject)) and
> if you Run an Eclipse Application, then you have to be carefull with your
> pLuGiN.XmL.
> yes ... what means jar file is in classpath - you put it on the buildPath?
> "Erik Hilliard" <erik.hilliard@xxxxxxxxxxx> schrieb im Newsbeitrag
> news:9nb1rl$j3v$1@xxxxxxxxxxxxxxxx
> > I am pretty new to Eclipse and am trying to port an already developed Java
> > thin client app into an Eclipse app. I have all my code in my Eclipse
> > environment and am trying to run the app. I get to a point in my code
> > where I get a NoClassDefFoundError exception in the
> > Workbench.runEventLoop() method.
> >
> > I have checked the classpath numerous times and the jar file that holds
> > the class that supposedly is not found is in the classpath. What am I
> > doing wrong?
> >
> > Thanks,
> >
> > Erik Hilliard
> > EcoNovo Software
> >