Loading...
Logo
Processing Forum
I have found no clear install instructions for fixing the Java issues on Linux. I have downloaded and installed (from Sun/Oracle) jkd1.0.7_25 TWICE and also have installed processing twice. I still get this error when running the following command

clair@clair-p7-1226s ~/processing-2.0.1 $ ./processing

>>>
clair@clair-p7-1226s ~/processing-2.0.1 $ /opt/java/jdk1.7.0_25/bin/../bin/java: 1: /opt/java/jdk1.7.0_25/bin/../bin/java: Syntax error: end of file unexpected (expecting ")")
<<<

The error is quite unhelpful it seems to say that the file which has the error is the java file in the /bin subdir of the jdk1.0.7_25 directory.

I am running this on:
Linux Mint 15
version:
3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:30 UTC 2013 i686 i686 i686 GNU/Linux

(I am finding it impossible to understand why such a wonderful language implementation as Processing is should have an extremely complex installation. Seems to nullify the beauty and simplicity of Processing itself.)

I am desperate to get going with processing so I will be grateful for any help. Especially a pointer to some clear explanation of exactly how do deal with the java problems which processing seems to have embedded in its installation.

Thanks much.
Clair


Replies(4)

Well -- I found the only thing which seems to work:

This link is golden for Mint 15 and I expect for ubuntu as well and perhaps even Debian..

http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

After I deleted my currently existing java installation, I followed the instructions on this page to the letter and I finally have Proccessing working. All examples work, even the video ones.

No nasty messages.

WHEW.


Glad you got that fixed! Just some post-install tips:

If you wish that Processing uses the more updated OS's default Java rather than the old bundled one,
delete or rename the /java subfolder inside Processing's folder.

I'm using Lubuntu 13.04. But rather than Oracle's JDK, I'm using 64-bit OpenJDK
which came w/ my Linux installation. 
HI --
Yes, I tried the delete/rename -- and got the error I delineated in my OP.
Anyway -- I'm glad it's solved and very nice to have found a straightforward set of instructions that really do work.
So good, I printed them off in case they should ever disappear!

I just went after the Sun/Oracle because of what it said on processing.org's own page.

Cheers,
And thanks for coming in!

Clair

Renaming/deleting the /java subfolder makes a warning box show up when launching Processing,
stating that it's not "fond" of that Java! I wish I'd know a way to get rid of that. 

But it's completely harmless. Processing runs either way! 
And it's nice to have Processing running under a more updated version!