Run a Windows JAVA application in puppy

Using applications, configuring, problems
Post Reply
Message
Author
Pierre
Posts: 1
Joined: Thu 18 May 2006, 04:03
Location: Nova Scotia
Contact:

Run a Windows JAVA application in puppy

#1 Post by Pierre »

:shock: 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.

Uriens
Posts: 20
Joined: Mon 13 Mar 2006, 14:15
Location: Germany - Essen

running java app

#2 Post by Uriens »

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:

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 &

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

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:

Code: Select all

#!/bin/sh
cd /usr/local/myprogram
java -jar myprogram.jar
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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

most reliable Sun Java - and easiest to install

#4 Post by Lobster »

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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply