I need to create a plugin for Eclipse, but when I try to test the plugin I get an error message.
I'm using the following eclipse:
Eclipse IDE for Java Developers<br> Version: Oxygen.2 Release
(4.7.2)<br> Build id: 20171218-0600<br> OS: Linux,
v.4.13.0-31-generic, x86_64 / gtk 3.18.9
And also Using the plugin:
Eclipse PDE (Plug-in Development Environment)3.10 luna
And with the following version of java:
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
The error reported and the following:
Unrecognized option: --add-modules = ALL-SYSTEM
Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
This error only happens when I run the codes of a plugin (which I'm doing) I tested with all examples of plugins given and the same error occurred but not with normal programs in java, that works correctly.