Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError [message #243463] Mon, 07 May 2007 09:11 Go to next message
Eclipse UserFriend
Originally posted by: mukerji.nita.gmail.com

When I make Java programs within plug-in development preference , they run
ok. But when I write a program under Java preference platform I get
java.lang.NoClassDefFoundError.Could this be for some files needed to be
included in build path? Though checking for Java, outside Eclipse shows
that it is included in the path.What are the reasons for this error?

I have Eclipse SDK 3.2 and Jdk 1.6 under OS Linux
Re: java.lang.NoClassDefFoundError [message #243473 is a reply to message #243463] Mon, 07 May 2007 12:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Nita" <mukerji.nita@gmail.com> wrote in message
news:32cbac76059cb44b5adf8409435354c0$1@www.eclipse.org...
> When I make Java programs within plug-in development preference , they run
> ok. But when I write a program under Java preference platform I get
> java.lang.NoClassDefFoundError.Could this be for some files needed to be
> included in build path? Though checking for Java, outside Eclipse shows
> that it is included in the path.What are the reasons for this error?
>
> I have Eclipse SDK 3.2 and Jdk 1.6 under OS Linux

What are the classes that are not being found?

What have you tried so far to explore or fix the problem?
Re: java.lang.NoClassDefFoundError [message #243484 is a reply to message #243473] Tue, 08 May 2007 02:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mukerji.nita.gmail.com

My java program is (a very simple one)as follows:
package cnvpth;
public class ConvertPath {
public static void main(int argc,char argv[]){
char ch;
int i,k=0;
String FlPath="sting to to form sub strings";
StringBuffer sb = new StringBuffer(FlPath);
int PathSz = FlPath.length();
int ActualSz = PathSz - 6;
sb.setLength(ActualSz);

for(i=6;i<(PathSz + 1); i++)
.
.}
The "main" thread cannot be located.That is why I thought it to be a "path
inclusion problem".Do I need to import something?
Re: java.lang.NoClassDefFoundError [message #243489 is a reply to message #243484] Tue, 08 May 2007 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Nita a écrit :
> My java program is (a very simple one)as follows:
> package cnvpth;
> public class ConvertPath {
> public static void main(int argc,char argv[]){
In Java, the main signature is:
public static void main(String[] argv)

otherwise your class is not considered to be an executable class.
--
Olivier
Re: java.lang.NoClassDefFoundError [message #243493 is a reply to message #243489] Tue, 08 May 2007 09:52 Go to previous message
Eclipse UserFriend
Originally posted by: mukerji.nita.gmail.com

Thank you
Previous Topic:How to find out if method is public using IMember or IType
Next Topic:3.3M5eh: Editor doesn't work
Goto Forum:
  


Current Time: Mon May 12 17:11:05 EDT 2025

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

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

Back to the top