We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is it posible to share one java folder for several exported applications? I need it on Windows XP 32. I don't care about linux and MacOS for now.
Answers
You could just package them up as a jar and rely on the system JRE.
Or you could modify the .bat file to use whatever version of Java you want.
As said, install Java on the computer, export without Java (possible in 2.1, but it has a bug when exporting 32-bit applications, there is a thread about this).
I don't want to install anything on the target machine. I would like it as a "stand alone" application. I already have solved the problem with export. I just used v2.0.3 and manually copied directory with Java from v2.1 exported app. The .bat sounds interesting. So which .bat exactly do you mean?
The old version 1.5.1 renders the cleanest application export! Everything in 1 packaged ".jar" file! \m/
If your program doesn't use unique P2+ features, most certainly it will compile under P1.5.1!
A tip, if your program can use JavaScript Mode, chances are even gr8 it'll compile under P1.5.1.
Since JS Mode is still at v1.4.1 anyways! @-)
Below's the No-Bundled-Java version. You gotta have a JDK Java installed:
http://processing.googlecode.com/files/processing-1.5.1-windows-expert.zip
I'm talking about the .bat file that is exported along with your application. You can open it up in a text editor and make it use whatever version of Java you want.
Sorry, I did not find any .bat file in the exported application folder. I have windows xp and processing 2.1 or 2.0.3.
No matter if it is javascript or whatever, but will it work with serial port?
So I got it. An .exe file in the exported application folder is just loader and is exactly the same for whatever exported aplication. What does the loader loads, is defined in lib/args.txt file. It is not problem to copy a lot of different applications source files to the source directory. Problem is the args.txt file, that must have different content for different source code. So I created a .bat file for every application. The .bat file first replace args.txt file with appropriate args file and then runs the loader.exe. Why I can not mark my own comment as an Answer?