[Java] Exception in thread "main" java.lang...
Sascha Balkau
sbalkau at gmail.com
Wed Feb 1 10:01:54 EST 2006
Yes that was the prob! It only works without .class suffix! Thanks alot
Nicolas!
-Sascha
----- Original Message -----
From: "Nicolas Désy" <liguorien at hotmail.com>
To: <Java at osflash.org>
Sent: Wednesday, February 01, 2006 11:55 PM
Subject: Re: [Java] Exception in thread "main" java.lang...
> ok, you just have to remove the .class extension in the class name.
>
>>java Foo
>
> The classpath is defined with the -cp parameter :
>
> java -cp some_folder;another_folder MainClass
>
> But I don't think this is necessary in your case, the problems is with the
> class extension :)
>
> Nicolas
>
>
> ----- Original Message -----
> From: "Sascha Balkau" <sbalkau at gmail.com>
> To: <Java at osflash.org>
> Sent: Wednesday, February 01, 2006 9:41 AM
> Subject: Re: [Java] Exception in thread "main" java.lang...
>
>
>> simply java Foo.class.
>> Where and how would I have to define the classpath?
>>
>>
>>>
>>>
>>>> The classpath doesn't seem defined. What is the command you're using
>>>> to
>>>> launch the application ?
>>>>
>>>> Nicolas
>>>>
>>>> ----- Original Message -----
>>>> From: "Sascha Balkau" <sbalkau at gmail.com>
>>>> To: <Java at osflash.org>
>>>> Sent: Wednesday, February 01, 2006 4:18 AM
>>>> Subject: [Java] Exception in thread "main" java.lang...
>>>>
>>>>
>>>>> Hi list,
>>>>> I already have a question too ...
>>>>>
>>>>> When I try to run a compiled Java class from the DOS prompt (Windows)
>>>>> I
>>>>> always get the following error:
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: Foo/class
>>>>>
>>>>> This doesn't happen if I build/run from the Eclipse IDE. Could
>>>>> somebody
>>>>> tell
>>>>> me what the problem is? I'm rather new to Java.
>>>>>
>>>>> Sascha
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Java mailing list
>>>>> Java at osflash.org
>>>>> http://osflash.org/mailman/listinfo/java_osflash.org
>>>>>
>>>>
>>>> _______________________________________________
>>>> Java mailing list
>>>> Java at osflash.org
>>>> http://osflash.org/mailman/listinfo/java_osflash.org
>>
>>
>> _______________________________________________
>> Java mailing list
>> Java at osflash.org
>> http://osflash.org/mailman/listinfo/java_osflash.org
>>
>
> _______________________________________________
> Java mailing list
> Java at osflash.org
> http://osflash.org/mailman/listinfo/java_osflash.org
More information about the Java
mailing list