Opening a project file with a jar file?

Discussion in 'Software' started by Finalchrono, Apr 1, 2010.

  1. Finalchrono

    Finalchrono Private E-2

    If you have a program(as a jar) that makes a project with a unique extension, and you want to be able to open the project file with the jar file, how would you do that?
     
  2. PC-XT

    PC-XT Master Sergeant

    You need to associate the extension to a file type, which points to, say,
    "C:\JRE1.6\bin\javaw.exe" -jar program.jar %*
    or, if that doesn't work,
    "C:\Program Files\Java\j2re1.4.2_04\bin\java.exe" -jar "%1" %*
    which also opens a command window, but seems to take parameters better.
    You would replace program.jar with your program, and the path to javaw or java would differ on different installations. I got those 2 examples from this page:
    http://stackoverflow.com/questions/394616/running-jar-file-in-windows
    which also has instructions on how to do this.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds