#16
  1. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    java -version
    will give its version
  2. #17
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    Microsoft Windows [Versión 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

    C:\Users\Carlos>java -version
    java version "1.7.0_04"
    Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
    Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)

    C:\Users\Carlos>
  4. #18
  5. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    Can you look in the registry for the commandline used with a jar file to see what the path to the java exe file it uses? Here's what mine looks like:
    "C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1 " %*
    Last edited by NormR; May 1st, 2012 at 11:35 AM.
  6. #19
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    C:\Users\Carlos\Documents\NetBeansProjects\Test folder
    that is the path of my file.

    Edit: sorry I am worst than I thought I was
  8. #20
  9. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    Did you look in the registry and see the command line for eecuting jarfiles?
  10. #21
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    Okay, I am in regedit, what should I do now?
  12. #22
  13. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    find the entry for .jar files and then the entry that is referred to from that entry.
    What is the command line used to execute jar files?
  14. #23
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0

    there is no jar. there is only JAR. maybe that is the problem, also, is that of nokia think alright, why do I have a nokia thing over there. There is this jarfile, but I guess the error is the registry, cause it is not like you said
  16. #24
  17. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    Many products change the registy when they are installed and destroy what was there before the installation.
    Look further on in the registry for an entry that has the word jar in it. Mine has an entry named: jarfile. Look in that entry for a command line like I posted but with a path for your OS.
    Also look at the entry in the Datos area that you posted. What command line is there?
  18. #25
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    okay, I catcht it, the command line in my jarfile is
    "C:\Programs File\Java\jre1.7.0\bin\javaw.exe" -jar "%1" %*

    and the .JAR doesn't seems to have a command line
  20. #26
  21. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    If the Nokia stuff does not correctly use .jar files, and you are a brave person, changing the registry could damage your system,
    you could change the Datos value for the .jar entry to refer to the jarfile entry.

    Export the .jar entry with the Export command before changing it in case you need to restore it.
  22. #27
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    I already exported the .JAR (with capslock)
  24. #28
  25. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    ... How can I change the Datos value?
  26. #29
  27. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348
    Right click on the line and select Modify
  28. #30
  29. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    22
    Rep Power
    0
    Sorry for being late, well this is what I did:
    I copy the command line of jarfile and paste it on .JAR
    "C:\Program Files\Java\jre1.7.0\bin\javaw.exe" -jar "%1" %*
    And It still don't work, did I did something wrong?

IMN logo majestic logo threadwatch logo seochat tools logo