Run a Windows JAVA application in puppy
Run a Windows JAVA application in puppy
I have a java app that was built in windows xp and I would like to run it in puppy. The program is started using a batch file and I haven't the vaugest notion how to proceed.
running java app
Hey Pierre,
first of all check, if you have installed a JRE (Java runtime enviroment). You can do this by just type in the console command "java", if the command was exportet to the global cmd list. Another way is to search after the command. Do this with the following:
If the command could recognized everythig ist fine, otherwise you have to install a SDK or JRE on your system.
You want to start the application with a batch file, so you need to adapt the file like the following example:
first of all check, if you have installed a JRE (Java runtime enviroment). You can do this by just type in the console command "java", if the command was exportet to the global cmd list. Another way is to search after the command. Do this with the following:
Code: Select all
find / -name java
If the command could recognized everythig ist fine, otherwise you have to install a SDK or JRE on your system.
You want to start the application with a batch file, so you need to adapt the file like the following example:
Code: Select all
/root/jre1.5/bin/java -cp you're_classpath_variables your_application &
install Java:
http://www.murga.org/~puppy/viewtopic.php?t=5024
or
http://www.murga.org/~puppy/viewtopic.php?t=6771
Then in Rox, navigate to the folder with your program.
If it is a .jar -file, create such a script:
Replace myprogram with the correct path and program-name.
Save it as for example "start-myprogram", and make it executable with a right-click in Rox.
Then drag it to your desktop, and in future you can run your program with a single mouseclick.
Mark
http://www.murga.org/~puppy/viewtopic.php?t=5024
or
http://www.murga.org/~puppy/viewtopic.php?t=6771
Then in Rox, navigate to the folder with your program.
If it is a .jar -file, create such a script:
Code: Select all
#!/bin/sh
cd /usr/local/myprogram
java -jar myprogram.jar
Save it as for example "start-myprogram", and make it executable with a right-click in Rox.
Then drag it to your desktop, and in future you can run your program with a single mouseclick.
Mark
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
most reliable Sun Java - and easiest to install
The most reliable (Sun Java) and easiest to install is under "java" - a dotpup - download and click on the file to install
http://puppylinux.org/wikka/DotPups
http://puppylinux.org/wikka/DotPups