Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to fix error java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry(Getting Eclipse Envoronment set up)
how to fix error java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry [message #516741] Wed, 24 February 2010 23:29 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2010
Junior Member
Hi

i am very new to Eclipse and I am trying to set up my evnironment. I have added my src code and external libraries, but when i try to run I get the error shown below and have no idea what to do.

Any help is greatly appreciated.

thanks

diane

java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry
Caused by: java.lang.ClassNotFoundException: sqlj.framework.error.LogEntry
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
Re: how to fix error java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry [message #516993 is a reply to message #516741] Thu, 25 February 2010 12:08 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 2/24/10 6:29 PM, dianeghir@hotmail.com wrote:
> Hi
>
> i am very new to Eclipse and I am trying to set up my evnironment. I
> have added my src code and external libraries, but when i try to run I
> get the error shown below and have no idea what to do.
>
> Any help is greatly appreciated.
>
> thanks
>
> diane
>
> java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry
> Caused by: java.lang.ClassNotFoundException: sqlj.framework.error.LogEntry
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Exception in thread "main"

Keep in mind that the build (compile) classpath is separate from the
runtime classpath use to execute your program. If you're code is
compiling without errors, you've got the Build Path set correctly; but
errors like this during runtime indicate that the Launch Configuration
needs to be edited so that it includes all the necessary JARs.
Look in the Help > Help Contents for Launch Configuration and you'll
find out how to do that. Or, just poke around the Launch/Debug toolbar
item menus - I'm sure you can figure out how they work...

Hope this helps,
Eric
Re: how to fix error java.lang.NoClassDefFoundError: sqlj/framework/error/LogEntry [message #517006 is a reply to message #516993] Thu, 25 February 2010 17:28 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2010
Junior Member
Thanks Eric.

It turns out that when I first tried to run the app, I just left the default (**) in the 'Select Java Application' window so I guess it was trying to run all possible Apps. When I selected my own, it worked fine.

thanks again!

diane
Previous Topic:[solved] Simple update-site question
Next Topic:Edit Menu
Goto Forum:
  


Current Time: Thu Apr 25 09:09:20 GMT 2024

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

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

Back to the top