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
New: Run-Command (Dec 2, 2024), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec!, Please donate today
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
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
-------------------------------------------------------------------------------
You can use our Java Portable Launcher to run JAR files using a portable install of Java. It was just released today.
Sometimes, the impossible can become possible, if you're awesome!
What a coincidence!
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate