Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » No Class Def Error
No Class Def Error [message #54637] Wed, 24 November 2004 13:47 Go to next message
Eclipse UserFriend
Originally posted by: sam.psfdevrip-it.com

I have been testing code for the Quartz Scheduler at work. There, I use
IBM's WSAD. I have two classes, one of which has a main method. I can run
this as a "Java Application", and it executes fine.

Yesterday, I brought the code home, set up a project in Eclipse/myEclipse,
imported the needed JAR, and copied the class files into their respective
packages (even went as far as copy/pasted the text into newly created
files). All looks fine, no syntax errors. When I try and run it as I do at
work (as a Java Application), I get the following error. Can anyone shed any
light on what I may be doing wrong?

java.lang.NoClassDefFoundError: org/apache/commons/logging/Log
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at java.beans.Introspector$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
at java.beans.Introspector.getBeanInfo(Unknown Source)
at java.beans.Introspector.getBeanInfo(Unknown Source)
at
org.quartz.impl.StdSchedulerFactory.setBeanProps(StdSchedule rFactory.java:913)
at
org.quartz.impl.StdSchedulerFactory.instantiate(StdScheduler Factory.java:522)
at
org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedule rFactory.java:1020)
at main.Timer.main(Timer.java:40)
Exception in thread "main"


Thanks.

--
SamMan
Rip it to reply
Re: No Class Def Error [message #54664 is a reply to message #54637] Wed, 24 November 2004 18:13 Go to previous message
Eclipse UserFriend
Originally posted by: sam.psfdevrip-it.com

"SamMan" <sam@psfdevrip-it.com> wrote in message
news:co23dj$s88$1@www.eclipse.org...
>I have been testing code for the Quartz Scheduler at work. There, I use
>IBM's WSAD. I have two classes, one of which has a main method. I can run
>this as a "Java Application", and it executes fine.
>
> Yesterday, I brought the code home, set up a project in Eclipse/myEclipse,
> imported the needed JAR, and copied the class files into their respective
> packages (even went as far as copy/pasted the text into newly created
> files). All looks fine, no syntax errors. When I try and run it as I do at
> work (as a Java Application), I get the following error. Can anyone shed
> any light on what I may be doing wrong?
>
> java.lang.NoClassDefFoundError: org/apache/commons/logging/Log
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
> at java.lang.Class.getDeclaredMethods(Unknown Source)
> at java.beans.Introspector$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
> at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
> at java.beans.Introspector.getBeanInfo(Unknown Source)
> at java.beans.Introspector.getBeanInfo(Unknown Source)
> at
> org.quartz.impl.StdSchedulerFactory.setBeanProps(StdSchedule rFactory.java:913)
> at
> org.quartz.impl.StdSchedulerFactory.instantiate(StdScheduler Factory.java:522)
> at
> org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedule rFactory.java:1020)
> at main.Timer.main(Timer.java:40)
> Exception in thread "main"
>
>
> Thanks.
>
> --
> SamMan
> Rip it to reply
>
>
>

I found the answer to my question. I needed to add the commons-logging.jar
to the project.

--
SamMan
Rip it to reply
Previous Topic:XForms Support
Next Topic:can IBM.zip suport axis 1.2RC1?
Goto Forum:
  


Current Time: Thu Nov 14 09:00:18 GMT 2024

Powered by FUDForum. Page generated in 0.04948 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top