Page 3 of 3 First 123
  • Jump to page:
    #31
  1. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    The .jar entry should refer to another entry like jarfile. See post #24. The Datos shown in post #23 should be jarfile instead of the Nokia.... stuff.
    The jarfile entry is where the commandline goes.
  2. #32
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    Okay, I write jarfile in the Datos of .JAR put the program and didn't work, then I put jarfile and his Datos was Executable Jar File so I copy in the Datos of .JAR to see if it work but it didn't :/
  4. #33
  5. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    The .jar entry should refer to the jarfile entry.
    The jarfile entry should have the commandline to execute the java program using the -jar option.

    Export both those entries and post their contents here.
  6. #34
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    .JAR name(Predeterminado) type REG_SZ Datos jarfile
    jarfile commandline name(Predeterminado) type REG_SZ Datos "C:\Program Files\Java\jre1.7.0\bin\javaw.exe" -jar "%1" %*
  8. #35
  9. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    How did you create what you just posted? Here is what I get when I export a registry entry. It's written to a text file with the extension .reg:
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\jarfile]
    @="Executable Jar File"

    [HKEY_CLASSES_ROOT\jarfile\shell]

    [HKEY_CLASSES_ROOT\jarfile\shell\open]

    [HKEY_CLASSES_ROOT\jarfile\shell\open\command]
    @="\"C:\\Program Files\\Java\\jre6\\bin\\javaw.exe\" -jar \"%1\" %*"
  10. #36
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    I just copy what I saw in the registry, because If I export it I can't paste it here, how do I do to copy as you do it and paste it?
  12. #37
  13. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    Right click on the .reg file and select Edit.
    Or rename the .reg file by adding .txt to the end of the full filename.
  14. #38
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    This is what I have on jarfile:
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\jarfile]
    @="Executable Jar File"

    [HKEY_CLASSES_ROOT\jarfile\shell]

    [HKEY_CLASSES_ROOT\jarfile\shell\open]

    [HKEY_CLASSES_ROOT\jarfile\shell\open\command]
    @="\"C:\\Program Files\\Java\\jre1.7.0\\bin\\javaw.exe\" -jar \"%1\" %*"

    This is on my past .JAR
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.JAR]
    @="Nokia SuiteApplicationInstaller_JAR"

    Now this is what I have on JAR.
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.JAR]
    @="jarfile"
  16. #39
  17. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    The only difference I see is the case of jar vs JAR. Windows is not case sensitive.
    Is the path to the javaw.exe file correct?

    My .jar entry:


    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.jar]
    @="jarfile"
  18. #40
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    would formatting the computer work?
  20. #41
  21. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    347
    I have no idea what to try next.
    If the path to the javaw.exe command is correct, then it looks like it should work.
  22. #42
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    9
    Rep Power
    0
    hello MrChearlie,


    Please Open a command prompt window,then change the folder with the swingDemo.jar file and enter this command:

    java -jar swingDemo.jar

    then copy the contents showing there on the upper left corner then select edit and then copy.
    paste

  24. #43
  25. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    Where is that swingDemo and how do I change to it?
Page 3 of 3 First 123
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo