Community Forums
Results 1 to 3 of 3

Thread: LaunchAnywhere adding file path to command line arguments passed to jar

  1. #1
    Join Date
    May 2018
    Posts
    1

    Unhappy 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 TestProgram.java 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?

  2. #2
    Join Date
    Aug 2018
    Posts
    1

    Needed this

    Thanks for the info i needed this badly as i wasnt sure of this. Many thanks to this thread.
    Last edited by ShaneP; 08-21-2018 at 09:48 AM.

  3. #3
    Join Date
    Sep 2018
    Posts
    3

    Thumbs up Awesome Help

    Thankyou for this help. I have no idea about this. how to do and what to do. this helps me in my java work. woohoooo!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •