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?
New: Kanri (Oct 9, '24), Platform 29.5.3 (Jun 27, '24)
1,100+ portable packages, 1.1 billion downloads
No Ads November!, Please donate today
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!
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.
Can you extract the JAR from the EXE using something like 7-Zip?
Sometimes, the impossible can become possible, if you're awesome!
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.