Hi guys,
I am trying to run a jar file which is under /home/paddywang/Downloads
I have installed java on my machine, so I tried to use command
java -jar theFile.jar
But I got "the Unable to access jarfile" .
Please help!
Thanks
Hi guys,
I am trying to run a jar file which is under /home/paddywang/Downloads
I have installed java on my machine, so I tried to use command
java -jar theFile.jar
But I got "the Unable to access jarfile" .
Please help!
Thanks
just troubleshooting here.
did you set the permission so the file can run as a program?
XKCDCode:int getRandomNumber() return 4; //Chosen by dice roll //Guaranteed to be random.
I am quite new to Linux. How to set permission so I can run the jar file as a program?
it sounds like you are in the wrong directory when you execute the command, or that the jar file is not where you think it is. try ls from the shell to see the file listing. also you can try sudo chmod +x yourjar.jar to give it execution permission to the file.
Thanks a lot. It is working now.
Bookmarks