cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sayunara
Level 3

how to run the jar??

i have a jar file that contain manifest file

e.g:
in native java language i run like this:


java -mx512m -jar app.jar


manifest (in app.jar) value

Main-Class: app1
Class-Path: jpedalSTD.jar iText-2.0.8.jar security.jar


but How to a launch in installanywhere? how to set the arguments?

thxx..
Labels (1)
0 Kudos
(6) Replies
qqqqqq
Level 7

If you want t run the jar file
use execute command action
or execute batch script action
0 Kudos
sayunara
Level 3

u mean like this


CMD /C "$USER_INSTALL_DIR$$\$xyz.exe arg1"


i saw u posted. but how to find "EXECUTE COMMAND"?
is that look like DOS command (on Windows)?
0 Kudos
qqqqqq
Level 7

using execute command action ..u can run any dos/windows command
its in advanced designer -> add action..
Is this what u wanted ? :confused:
0 Kudos
sayunara
Level 3

i have got "EXECUTE COMMAND"

so at EXECUTE COMMAND i just put


CMD /C "$USER_INSTALL_DIR$$\ -mx512m -jar"


or


CMD /C "$USER_INSTALL_DIR$$\$java -mx512m -jar app.jar


and who execute "EXECUTE COMMAND", is the shortcut that i make or the launcher? and where i must put "EXECUTE COMMAND" in "User Install Folder" or "Shortcut Destination folder"?

sorry i just today use installanywhere
0 Kudos
qqqqqq
Level 7

CMD /C "$JAVADIR$\java.exe -mx512m -jar"
Just this... its same as command prompt in windows
so u need java.exe to run the jar

it should be placed in installation folder.
0 Kudos
pv7721
Level 20

sayunara wrote:
i have got "EXECUTE COMMAND"

so at EXECUTE COMMAND i just put


CMD /C "$USER_INSTALL_DIR$$\ -mx512m -jar"


or


CMD /C "$USER_INSTALL_DIR$$\$java -mx512m -jar app.jar


and who execute "EXECUTE COMMAND", is the shortcut that i make or the launcher? and where i must put "EXECUTE COMMAND" in "User Install Folder" or "Shortcut Destination folder"?

sorry i just today use installanywhere


I strongly recommend you to start by reading the manual, the LaunchAnywhere chapter, in order to understand how InstallAnwyhere creates these wrappers for launching the jar files.
0 Kudos