You are here

Portable Java with an .exe file, not a .jar

5 posts / 0 new
Last post
trust
Offline
Last seen: 3 years 11 months ago
Joined: 2009-09-29 19:54
Portable Java with an .exe file, not a .jar

If Java is installed on my desktop, I can proceed with a program requiring Java which starts with an .exe file, not a .jar.

With portable Java, how to proceed?

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 6 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Probably Can't

Most EXE-launched Java apps will only work with a locally installed JRE. Some will have ways of configuring a specific JRE but these are app-dependent (aka I can't tell you, you need to look at the source/documentation for that app or ask the publisher). Some just start another JAR that is part of the same app and you can often run that JAR directly with specific command line arguments to the JRE, making it a candidate for using the PA.c Launcher.

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

trust
Offline
Last seen: 3 years 11 months ago
Joined: 2009-09-29 19:54
This is a simple .exe, the

This is a simple .exe, the .jar inside the .exe. so, it probably won't work in any way, shape or form without installing a local Java, accordingly. Sad

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 6 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Extract

Can you extract the JAR from the EXE using something like 7-Zip?

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

farat_as
Offline
Last seen: 7 years 2 months ago
Joined: 2012-02-14 09:02
You can try to add on

You can try to add on environment variables both bellow:

VARIABLE --> VALUE
JAVA_HOME --> E:\PortableApps\PortableApps\CommonFiles\Java
Path --> E:\PortableApps\PortableApps\CommonFiles\Java\bin

If you dont have admin rights to change environment variables, open the command prompt and write these commands each time you need to execute your app.

>SET JAVA_HOME=E:\PortableApps\PortableApps\CommonFiles\Java

>set PATH=%PATH%;E:\PortableApps\PortableApps\CommonFiles\Java\bin

>"C:\Program Files\myapp\myapp.exe"

If you dont know what I'm talking about, do nothing or just make a good research before do what I write. Because you can damage your operation system.

Log in or register to post comments