Showing results for 
Show  only  | Search instead for 
Did you mean: 

LaunchAnywhere adding file path to command line arguments passed to jar

We use the LaunchAnywhere feature to create executables for many Java applications that take in arguments. When we run the executable created by LaunchAnywhere on the command line along with the arguments we pass in, if the argument we pass in is the same as a file or folder in the directory we are running from, the path to the directory is concatenated to the beginning of the argument before passed to our application.

For example, we have a java program that takes in a String as an argument for the attribute -f. We have LaunchAnywhere create an exectuable called TestProgram.exe that gets put down in "C:/Program Files/My Program". The directory "C:/Program Files/My Program"" has a folder in it called "Test". So, if we try to run "TestProgram.exe -f Test" from the command line in, what gets passed to the Java program is "C:/Program Files/My Program/Test" instead of just the string "Test". Is there a setting in LaunchAnywhere to prevent this?
Labels (1)
0 Kudos
2 Replies
Flexera beginner

Needed this

Thanks for the info i needed this badly as i wasnt sure of this. Many thanks to this thread.
0 Kudos

Awesome Help

Thankyou for this help. I have no idea about this. how to do and what to do. :confused: this helps me in my java work. 🙂 woohoooo!!! :cool:
0 Kudos