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?
Printable View
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?
Did you have installed JRE in your PC? Can you show the complete error message you get?
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.
http://www.piccdrop.com/images/1232444481.bmp
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.
Do you have a single jar file, and if so did you try to run that jar file on command prompt?
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.
So that means arguments are not passing correctly. Which JRE version you have installed in your machine?
The version is 1.6
What's the executable application you have test in double click? Check it and see.