Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

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

Gnu/Linux, QuickFix, Technical | 2 comments

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.

Related Articles

Related