Bug 780 : New version 0136 cannot run
Last modified: 2008-05-30 10:04




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

 

Reporter:
PhiLho²
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-05-29 14:53
Happy to download this 0136 because I have meet the Bézier tangent issue,
as well as the stop applet one.

Windows XP Pro SP2, P4 3GHz (768MB)

I just downloaded the 0136-expert version and unzipped it in C:\Java\ like
the previous version (0135). I changed the shortcut to point to the new
version (keeping the old just in case: good idea!).
I run the environment without problem (still with with Java 1.6.0_05). I
load a sketch, and see there is still the issue with numerous tabs. Mmm...
I try to run and got a Java exception. Same with simple code like [i]int a
= 1;[/i]
[code]Exception in thread "AWT-EventQueue-0"
java.lang.NoClassDefFoundError: com/sun/jdi/connect/VMStartException
at processing.app.Editor.handleRun(Editor.java:1147)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:321)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.sun.jdi.connect.VMStartException
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)
... 22 more
[/code]
Additional Comment #1 From fry 2008-05-29 14:55
try not using the expert version.
Additional Comment #2 From PhiLho² 2008-05-30 04:08
Meh, I downloaded the expert version, I must live up this name :P

I tried on another computer (similar system), same problem. But it has
already both JRE and JDK 1.5 installed.
So I went back to launcher.cpp, copied the launch parameters and put them
in a CMD file (or BAT, same difference).

@echo off
set JAVA_HOME=C:\Java\jdk1.5.0_06
set JRE_HOME=%JAVA_HOME%\jre
set PATH=%JRE_HOME%\bin;%PATH%
set P5_HOME=%~dp0
start javaw.exe -Xms128m -Xmx128m -cp
%P5_HOME%\lib;%P5_HOME%\lib\build;%P5_HOME%\lib\pde.jar;%P5_HOME%\lib\core.jar;%P5_HOME%\lib\mrj.jar;%P5_HOME%\lib\oro.jar;%P5_HOME%\lib\registry.jar;%P5_HOME%\lib\antlr.jar
processing.app.Base

Probably some variables are not needed, but they don't hurt either.
Annoyance: a Dos box appears briefly at launch. I will probably make for
myself a little AutoHotkey macro to start it.
Note for the record that I first tried with the JRE, but for some reason it
have not awt.dll so it failed to launch.
Also we might need to add qtjava to classpath if installed/needed.

I tried the same trick with my JDK 1.6, but I got the same error... I had
to add tools.jar to the classpath to get rid of the issue (missing class
com/sun/jdi/connect/VMStartException). Looks like we need a JDK now, no
more a simple JRE... Makes sense if you add some debugging capability someday.

@echo off
set JAVA_HOME=C:\Java\jdk1.6.0
set JRE_HOME=%JAVA_HOME%\jre
set PATH=%JRE_HOME%\bin;%PATH%
set P5_HOME=%~dp0
start javaw.exe -Xms128m -Xmx128m -cp
%P5_HOME%\lib;%P5_HOME%\lib\build;%P5_HOME%\lib\pde.jar;%P5_HOME%\lib\core.jar;%P5_HOME%\lib\mrj.jar;%P5_HOME%\lib\oro.jar;%P5_HOME%\lib\registry.jar;%P5_HOME%\lib\antlr.jar;%JAVA_HOME%\lib\tools.jar
processing.app.Base

Mmm, it still works with just:

@echo off
set P5_HOME=%~dp0
start C:\Java\jdk1.6.0\jre\bin\javaw.exe -Xms128m -Xmx128m -cp
%P5_HOME%\lib;%P5_HOME%\lib\build;%P5_HOME%\lib\pde.jar;%P5_HOME%\lib\core.jar;%P5_HOME%\lib\mrj.jar;%P5_HOME%\lib\oro.jar;%P5_HOME%\lib\registry.jar;%P5_HOME%\lib\antlr.jar;C:\Java\jdk1.6.0\lib\tools.jar
processing.app.Base

Displaying 1.6.0 | C:\Java\jdk1.6.0\jre
Also with:

@echo off
set P5_HOME=%~dp0
start C:\Progra~1\Java\jre1.6.0_05\bin\javaw.exe -Xms128m -Xmx128m -cp
%P5_HOME%\lib;%P5_HOME%\lib\build;%P5_HOME%\lib\pde.jar;%P5_HOME%\lib\core.jar;%P5_HOME%\lib\mrj.jar;%P5_HOME%\lib\oro.jar;%P5_HOME%\lib\registry.jar;%P5_HOME%\lib\antlr.jar;C:\Java\jdk1.6.0\lib\tools.jar
processing.app.Base

Displaying 1.6.0_05 | C:\Progra~1\Java\jre1.6.0_05
Note the short path and I still point to JDK for tools.jar

Hope that helps.

I hope the applets are still working without that. Because if they no
longer work with Java 1.4, at best people will install the latest version
of Java available at Sun.
Additional Comment #3 From fry 2008-05-30 06:22
again, try without the expert version--does it work?
Additional Comment #4 From fry 2008-05-30 06:28
*** Bug 781 has been marked as a duplicate of this bug. ***
Additional Comment #5 From fry 2008-05-30 06:29
*** Bug 782 has been marked as a duplicate of this bug. ***
Additional Comment #6 From fry 2008-05-30 06:41
and using your hacks you managed to get things to work, or you didn't?

but yes, tools.jar is now needed. and the debugger issue is cited in
revisions.txt. you don't need a full jdk, as long as we have a working
tools.jar. i've removed the expert download because tools.jar from 1.5 will
conflict with other versions.

re: sketches and 1.5, you can make a separate post about that. we're
removing all support prior to java 1.5.
Additional Comment #7 From fry 2008-05-30 07:20
k, the main problem was indeed just a classpath problem in the launcher.
this is now fixed for 0137, which i'm now posting.

this does, however, leave the known bug #775, for which we seem to have a
dupe on windows.

and the expert version is gonna be disabled for a while.
Additional Comment #8 From PhiLho² 2008-05-30 10:04
I wasn't clear: the batch files I provided was for the 0136-expert version
and of course, they allowed me to run Processing and various sketches
without problem.
And I didn't try the non expert version because I don't feel like
downloading a biiig file with yet another version of the JRE...