Bug 974 : Could not run the sketch. "Could not create the Java virtual machine."
Last modified: 2008-10-21 13:34




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

 

Reporter:
vectorgirl
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-10-21 04:29
i got this error message:

Could not run the sketch.
[0] "Could not create the Java virtual machine."
[1] "Unrecognized option:
--editor-location=470,150
--external --display=1
--sketch-path=C:\PATH\sketch_name sketch_name "


processing does not work with any sketches (also empty sketches)
happens on xp sp2, rev. 0150 and higher (0151, 0152)
older revisions are working!


java version "1.6.0_07"
java se runtime environment (build 1.6.0_07b06)
java hotspot client vm (build 10.0-b23, mixed mode,sharing)
Additional Comment #1 From fry 2008-10-21 06:24
i'm posting release 0153 now, which will contain more debugging
information. please try it with that version and let me know what the
(full) error message in the console says.
Additional Comment #2 From vectorgirl 2008-10-21 08:17
error log rev. 0153:

[0] "Could not create the Java virtual machine."
[1] "Unrecognized option: --editor-location=93,-15 --external --display=1
--sketch-path=C:\PATH*\Temp\untitled5611.tmp\sketch_name sketch_name "

Using startup command:

{command=command=java
-Xrunjdwp:transport=dt_shmem,address=127.0.0.1:8822,suspend=y
-Djava.library.path=;

G:\office\pr153\processing-0153\java\bin;.;
C:\WINDOWS\Sun\Java\bin;
C:\WINDOWS\system32;
C:\WINDOWS;
D:\config\Internet\FirefoxBrowser;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
D:\visual\QuickTime\QTSystem\;
D:\visual\Bildbearbeitung\MaxwellRenderer\;
D:\visual\Bildbearbeitung\MaxwellRenderer";
C:\programs\TortoiseSVN\bin;
G:\office\pr153\processing-0153\java\bin -cp
C:\PATH*\Temp\build5613.tmp;lib;
G:\office\pr153\processing-0153\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\antlr.jar;
D:\visual\QuickTime\QTSystem\QTJava.zip processing.core.PApplet
"--editor-location=93,-15" --external --display=1
--sketch-path=C:\PATH\Temp\untitled5611.tmp\sketch_name sketch_name ,
quote=quote=", address=address=127.0.0.1:8822}


*PATH=documents/name/local data
Additional Comment #3 From fry 2008-10-21 08:51
ah, you have some extra mess in your Windows PATH environment variable.

this is probably causing the problem:
D:\visual\Bildbearbeitung\MaxwellRenderer";
remove the quote at the end to make:
D:\visual\Bildbearbeitung\MaxwellRenderer;
though that's already in the PATH as the entry before it, so you can
probably just remove the version that includes a quote.

any extra spaces, quotes, etc in your PATH will give you trouble.

the change is that the more recent releases aren't cleaning up PATH errors
for you--i'll add that back to release 0154 so that we can prevent this.
Additional Comment #4 From vectorgirl 2008-10-21 12:59
Thank you very much for your fast answers!

I didn't want to bother you with my Windows PATH environment variable.
Now I know that you can easily clean up your Windows PATH env. variable:
system control, system, advanced, environment variable, edit - and I'm luky
to get processing working! :)

Sorry for my ~english and best wishes, Manuela

Additional Comment #5 From fry 2008-10-21 13:34
For release 0154, I've added some code to ignore mess found in the PATH, so
that others won't run into the same problem. Thanks for the report.