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 › p5.app without needing java to be installed
Page Index Toggle Pages: 1
p5.app without needing java to be installed? (Read 887 times)
p5.app without needing java to be installed?
Jan 10th, 2010, 8:09am
 
Hi all,

many times i got the problem, that lots of people just don't have java installed. This gets a little bit anoying, when you quickly wannt to show them an exportet application, and they first of all need to download+install java in order to test it.

Is there a way to get arround this? i mean, is it possible to somehow export an application, that somehow does have java included?

Thanks for your help
Re: p5.app without needing java to be installed?
Reply #1 - Jan 10th, 2010, 9:28am
 
Java itself is portable and does not technically require installation.  Copy the JRE directory and include it as part of your sketch, then use a batch file with relative paths to launch the sketch using the included JRE.
Re: p5.app without needing java to be installed?
Reply #2 - Jan 10th, 2010, 9:30am
 
would it work, if i'd copy the "java" folder (that is located in the "processing" folder) inside the windows.application?
Re: p5.app without needing java to be installed?
Reply #3 - Jan 10th, 2010, 9:32am
 
oh, we'd been writing at the same time... just seeing your reply now. i'll give it a try... thanks!
Re: p5.app without needing java to be installed?
Reply #4 - Jan 10th, 2010, 9:32am
 
No, that's not java.
The install of java on your windows box should have a JRE directory with all the java.exe, javaw.exe, etc.  Include that directory with your sketch.  (I'm running a mac or I'd be more specific).
Re: p5.app without needing java to be installed?
Reply #5 - Jan 10th, 2010, 9:34am
 
Haha, we did it again...
Re: p5.app without needing java to be installed?
Reply #6 - Jan 10th, 2010, 10:35am
 
yep, that worked. simply copied the JRE inside the application folder and renamed it to java (as i got the processing with java version, i also could simply copy the the java folder from there)... but the folder needed to be named java to work.

the only problem i got now is, that the app gets quite big now (the JRE has over 80mb). is there any kind of light java with which it would work? anybody got experience with that?
Page Index Toggle Pages: 1