Results 1 to 8 of 8
  1. #1
    Doctor Cactus is offline Member
    Join Date
    Oct 2008
    Posts
    63
    Rep Power
    0

    Default Running a jar after it's installed

    Hi, when I install my Java application onto my PC, the jar won't execute. It will run before I install all the files onto my PC. It says unable to access C:\Program Files, basically the directory the app is installed in. What could be wrong?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Doctor Cactus is offline Member
    Join Date
    Oct 2008
    Posts
    63
    Rep Power
    0

    Default Reply

    Yes, it says Java Virtual Machine Launcher as the heading of the dialog box, and then it has a red X and says Unable to access jarfile C:\Program.



    The strange thing is, I tried running the jar file after it's installed on another PC and it runs correctly. But, I can't figure out why it runs correctly on my PC before being placed in an installation package and won't run afterwards.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    Doctor Cactus is offline Member
    Join Date
    Oct 2008
    Posts
    63
    Rep Power
    0

    Default

    Yes, I have a single jar file. First, I tried to run it in Windows Explorer by double clicking on the jar file and that gave the error above. I tried running the jar file through the command prompt and it runs correctly.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    So that means arguments are not passing correctly. Which JRE version you have installed in your machine?

  7. #7
    Doctor Cactus is offline Member
    Join Date
    Oct 2008
    Posts
    63
    Rep Power
    0

    Default

    The version is 1.6

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Installed Certificate List
    By mwalstra in forum Advanced Java
    Replies: 0
    Last Post: 12-09-2008, 12:53 PM
  2. Need Java Script Installed
    By billaaa777 in forum Jobs Offered
    Replies: 0
    Last Post: 09-04-2008, 04:37 PM
  3. Replies: 0
    Last Post: 07-30-2008, 11:25 AM
  4. Getting Installed Look And Feels
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:45 PM
  5. cannot find a JVM installed
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-29-2007, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •