Issue
After making an installer to my app, I can make it associate with a file extension, which is great, but I can't figure out how can I detect the path of the file that my program was opened with. Any help is appreciated!
Solution
For anyone having this problem, the file path is the first argument in getParameters().getRaw()
Javadoc description of the function.
Retrieves a read-only list of the raw arguments. This list may be empty, but is never null. In the case of a standalone application, it is the ordered list of arguments specified on the command line. For named parameters, each <name,value> pair is represented as a single argument of the form: "--name=value".
Thanks, James_D!
Answered By - MrBakbuki
Answer Checked By - Katrina (JavaFixing Volunteer)