Jar File Not Opening on a Mac

Can not open .jar File on Macbook

I have solved the problem. I do not have to click on "open", I have to click on Import. After I need to check the "Existing Project into Workspace" under "General". Then I can select the Jar-File as a Archive file and can open it.

Mac OS unable to run .Jar file

in terminal, do an

ls -l MyProject.jar

You'll see something like:

-rw-r--r-- 1 youruser yourgroup 1024 Apr 24 15:41 MyProject.jar

The -rw-r--r-- part is the file permissions where an "r" means readable, "w" means writable, and an "x" would mean executable, but as you can see there isn't one there. Without going into the long explanation, use the chmod command to make the file executable by doing

chmod 755 MyProject.jar

Afterwards, use the same ls command and you should see -rwxr-xr-x in the permissions field. The file is now executable (by anyone) and should launch if you click in in Finder.

Can't open a .jar file on my mac

I guess you are trying to run the jsoup library as a standalone application assuming it to be an executable jar. All indicates that the jar file you are using is NOT an executable jar hence it wont work.

jsoup.jar is supposed to be used as a java library and you will need to write java code to be able to use the HTML parsing capabilities.

Jar file not running on mac

Looks like you are getting a NullPointerException behind the scenes. InvocationTargetException is just a wrapper for an exception that's thrown within a dynamic invocation.

If I saw your code, I could have helped you more.



Related Topics



Leave a reply



Submit