You are here

Portable Java Help

5 posts / 0 new
Last post
xavier786
Offline
Last seen: 15 years 6 months ago
Joined: 2009-06-27 11:48
Portable Java Help

I have a .jar file which needs be open in java, i installed java on my portable device but do not know how to use the portable java with the file.

Please help me

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
Various ways

There are different ways for different apps.

One of the most common is Launch4J applications. With these, there is an executable, which finds Java in the registry, and then does some magic, creating a temporary file inside a subdirectory of the JRE directory. To find out what the executable launches in the way of parameters (specifying what it actually will do), use something like Process Monitor, and right click on the process, and select Properties, and copy the command line parameters (it'll have things like -Xmv512, -classpath=something.jar, and com.this.that.class; that's what you need to pass to java.exe or javaw.exe in X:\PortableApps\CommonFiles\Java\bin.

For more info, take a look at my Sweet Home 3D and GanttProject Portable versions, in them I've copied the arguments they used with Launch4J, into App\ChrisLauncher\*Portable.ini (they use my PortableApps.com Launcher Test).

If it's just a jar file you've got, you're pretty much on your own. Java (and Java Portable) are meant to be used by applications, not directly by end users.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

steve_gutry
Offline
Last seen: 2 months 1 week ago
Joined: 2008-05-07 16:54
I know how you feel

Java geeks are as bad as linux geeks.
They are incapable of giving simple & clear advice for beginners to use the programs.

Here is the contents of a batch file used to start a java program that I have. I don't know anything about java but I hope this can be of some help to you.

-------------------------------------------------------------------------------
rem Run Impro-Visor using .bat file

rem Put this file in the same directory as your unzipped improvisor339.

rem Then double-click the icon for this file.

rem Note: You may have adjust the java path name to suit your local installation.

echo Impro-Visor launcher

cd improvisor339

"D:\portableapps\CommonFiles\Java\bin\java" -jar improvisor.jar

pause
-------------------------------------------------------------------------------

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 27 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Java Portable Launcher

You can use our Java Portable Launcher to run JAR files using a portable install of Java. It was just released today. Smile

Sometimes, the impossible can become possible, if you're awesome!

Simeon
Simeon's picture
Offline
Last seen: 10 years 2 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Wow

What a coincidence! Wink

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Log in or register to post comments