Bug 112 : java.lang.NoClassDefFoundError and Exception in thread "main" errors on Windows
Last modified: 2006-10-21 08:52




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-07-28 06:03
this is often caused by spaces in the PATH or CLASSPATH environment variables.

open a command prompt and type:
echo %PATH%
echo %CLASSPATH%
this will give you the contents of your PATH and CLASSPATH

changing this:
"C:\Program Files\Java\jre1.5.0_02\lib\ext\QTJava.zip"
to this:
C:\Progra~1\Java\jre1.5.0_02\lib\ext\QTJava.zip
will often fix things.

or sometimes quotes are added in the wrong place by an installer, i.e. a
PATH that looks like this:

C:\Program
Files\Alias\Maya6.5\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys
tem32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;"C:\Program
Files
\Norton SystemWorks\Norton Ghost\"

is broken because of the extra quotes around the Norton Ghost stuff at the
end. remove them and things should get back to working.

we have to include the PATH and CLASSPATH because of other DLLs like
quicktime for java or other os-related tidbits. unfortunately this causes
lots of trouble. ideally we might have a small tester app that checks these
variables for trouble before running processing, and suggests a fix.

original post:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114153542

and seems to behave differently in 1.5 versus 1.4:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1114040731
Additional Comment #1 From fry 2005-08-22 19:21
*** Bug 134 has been marked as a duplicate of this bug. ***
Additional Comment #2 From fry 2006-01-15 05:53
*** Bug 273 has been marked as a duplicate of this bug. ***
Additional Comment #3 From fry 2006-01-15 06:33
*** Bug 272 has been marked as a duplicate of this bug. ***
Additional Comment #4 From fry 2006-01-15 18:20
fixed for 0102, posted this evening.
Additional Comment #5 From youn 2006-10-21 08:52
when i run the program, it is disappeard right away