Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse error 'UseStringDeduplication'

I installed a fresh Ubuntu 16.04 VM, Oracle JDK 7, and downloaded the latest Eclipse. But I am getting this error when I try to start Eclipse:

Unrecognized VM option 'UseStringDeduplication'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Why am I getting this error on a fresh install? And is it a bad idea to remove that VM option?

like image 995
Mike S Avatar asked Jul 25 '16 17:07

Mike S


3 Answers

Latest version of Eclipse (Neon) requires Java 8 runtime, and the Eclipse website obnoxiously neglects to mention it anywhere from the homepage to the download link for Eclipse, not even a version warning at runtime for Eclipse.

like image 167
Mike S Avatar answered Nov 19 '22 19:11

Mike S


Same error for me in Kubuntu 14.04, eclipse Neon, I Removed -XX:+UseStringDeduplication from .ini file, it works for me

like image 28
jonathan Avatar answered Nov 19 '22 18:11

jonathan


I know, i'm little to late to the party. I got this issue lately on my Mac. I updated my eclipse (from Mars to Oxygen) all of the sudden i couldn't start my old project. First i thought, this must have something to do with the new eclipse, which wasn't all wrong. Because eclipse.ini file of Oxygen expected java-1.8.

I updated my java to latest (jdk1.8.0_152.jdk), but the problem remained, than i removed these parameters from the eclipse.ini, still was the same, i checked the "Run Configurations" and basically removed the same parameters from the arguments list. Now my projects seem to work just fine. I also needed to restore the platform, since Oxygen use e.4-platform.

  1. Remove these parameters from eclipse.ini file
  2. Select the project and go to "Run As"->"Run Configurations..."-> "Arguments" check the old configurations under "VM arguments" (it can be a product in case of an RCP-project)
  3. removed the VM-option(s)(actually, they can be more) not recognized and "Apply"-> "Run".
like image 1
Boris N. Avatar answered Nov 19 '22 17:11

Boris N.