Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to add arguments to a file without creating a shortcut to it in windows? Specifically windows XP, Vista, and 7? If so, how would you do it?

I'm not talking about using a batch file, or something like that. I mean I have an executable jar, and I'd like it to pass the Swing application some arguments but it seems like my users would have to create a shortcut to do that. I would like to avoid this if possible.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Unless the options/parameters are hard-coded, you'd need some way to pass them on to the application during start-up. If you have the Java source you can obviously edit it as needed, but if you simply have an executable JAR (executable provided JRE is installed, of course), then there's no possible way I can think of to embed arguments in the file itself.

share|improve this answer
    
Sadface :( Thanks for the answer though. –  Jazzepi Sep 12 '12 at 18:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.