Fixing Eclipse: Unrecognized VM option ‘MaxPermSize=256m’

Having trouble getting eclipse loaded on your  linux machines?

Try the following troubleshooting methods to get that sorted.

First to understand the complete issue, run the eclipse command on your terminal as follows:

$ eclipse
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Unrecognized VM option ‘MaxPermSize=256m’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Now, you know that the application is not able to identify the parameter related to Java MaxPermSize. These parameters are loaded via eclipse.ini file which is easy to find it under program files in Windows. But to find this on your linux machine, you should know where eclipse has its installation directory and find .ini under that.

I found the installation directory of eclipse by running the command dpkg -L eclipse-pde
to find it under /usr/lib/eclipse. Commented the lines containing MaxPermSize option to get eclipse working.

Let me know if you find it working for yourself.

Published by

Omshivaprakash

Gnu/Linux Enthusiast, Kannadiga, Wikipedian, Amateur photographer, trekker and more

2 thoughts on “Fixing Eclipse: Unrecognized VM option ‘MaxPermSize=256m’”

Leave a Reply

Your email address will not be published. Required fields are marked *