We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Best Java version for Processing
Page Index Toggle Pages: 1
Best Java version for Processing (Read 345 times)
Best Java version for Processing
Mar 13th, 2008, 1:21am
 
Simple. What's the best Java version to run a Processing app in? i.e. The most stable one.

Right now, under Windows (Vista...) my Processing apps crash very often (about half the times I run them). Not the Processing IDE itself, just the Java VM, meaning that a window will pop up, but won't display but a gray background. I have to ctrl-alt-del and kill java.exe by hand (not javaw.exe, which if I kill, closes the Processing window).

Under Ubuntu 7.10, I have had about 3 crashes total, which is not bad, but still, I have to kill the window by doing a Force Quit on the window or in the CLI, using "kill -n SIGKILL <pid>".

My problem is that the app I'm developing needs to be deployed in a museum so I can't risk even one crash.

I'm using Java 1.6 on both, and I'm assuming the native unstableness of Vista is what's crashing java.exe so often. But what about Ubuntu? Sometimes I even have to click the "Run" button several times with no effect whatsoever.

Could this be happening because of the Java version? Has anyone tested it? Will Java 1.4 be the most stable version, because Processing is being built on top of it?

**EDIT**

Now even in Ubuntu sometimes the programs fail to run, but they leave a java process behind, so I can't run any Processing app after it has been killed using the sigkill method.

What can be causing this behavior? I've never had this problem before, with earlier versions of my program. Now after moving around some code (just putting some reusable code inside functions and calling them exactly in the same place) causes problems.

I get a gray screen a lot of times now. I don't know how did my new code broke my Java VM, since even earlier versions, which worked fine and to which I haven't changed a single line of code present the same behavior now.

Please help Sad

PS: I can post the code, but it's a bit long and messy since I had to patch things as the program specifications changed during coding (hurray for the lack of scripts...)
Re: Best Java version for Processing
Reply #1 - Mar 13th, 2008, 11:35pm
 
the processing environment on the Mac has been very solid, none of the problems that you mention.  

Also, there is another thread about using Mac minis in museum setups...
Re: Best Java version for Processing
Reply #2 - Mar 15th, 2008, 6:26am
 
I wish I had access to solid machines. Right now I *managed* to get an old Nvidia 6200 so I could effectively use a projector and touchscreen both with fullscreen OpenGL.

On the other side I get a 5200 lumen projector and 42" Electrograph touchscreen.

Why? It beats me.

Thanks for your suggestion though, I'll have to give that minis idea a try. Sounds promising.

Page Index Toggle Pages: 1