[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
|
Jed,
The code is not in a plugin. The action set has an instance of a server
connection. This server connection has a method that sends the request to
the web server. In this method, the response is received from the web
server. The response then is processed by the server connection by a
processResponse() method. Inside the processResponse method, there is a
static method call on a different class. This is the class that is not
found.
ERIK
Jed Anderson wrote:
> Erik,
> Is the code that processes the response from the web server in your
> plugin or in a different plugin?
> jkca
> Erik Hilliard wrote:
> > Jed Anderson wrote:
> >
> > Sorry about that, Jed. Here\'s a little more into what I\'m doing. I\'m
in
> > the very early stages of trying to learn Eclipse so I\'m starting in steps.
> > I have a LoginActionSet that brings up a Login SWT display when
> > instantiated. On the OK button, I have a SelectionListener that puts a
> > request into the web server through my code that I have brought over from
> > VA.
> >
> > When I try to process the response this is where the class is not found.
> > So I don\'t know if this actually considered in the plugin. It is running
> > in another class outside of the ActionSet class. I hope this helps. Thank
> > you for the quick response.
> >
> > ERIK
> >
> >
> >>Erik,
> >>
> >
> >>I\'m not sure what you\'re doing, but it sounds like you are porting your
> >>thin client to be an Eclipse plugin. If this is the case, the following
> >>statements apply, otherwise, we will need more information to help.
> >>
> >
> >>A NoClassDefFoundError usually points to a problem with your plugin.xml
> >>file or your plugin startup code.
> >>
> >
> >>If you are actually \"in\" your code and you are getting a
> >>NoClassDefFoundError, then you are most likely missing an <import ...>
> >>statement in the <requires> clause in your plugin\'s plugin.xml file.
> >>
> >
> >>If your code hasn\'t been loaded yet, and the class that is being loaded
> >>is one that is in your plugin, then either you\'re missing your
> >>plugin.xml file or your plugin has failed during startup.
> >>
> >
> >>Hope this helps!
> >>jkca
> >>
> >
> >>Erik Hilliard wrote:
> >>
> >
> >> > 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
> >> >
> >> >
> >>
> >
> >
> >
> >