Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
Info |
---|
There is no way to edit eclipse.ini when Eclipse is installed via snap. A workaround is to pass |
Eclipse will perform terribly unless you give it a few GB of memory (RAM).
In the installation folder, find eclipse.ini
. Possible locations include /usr/lib/eclipse
, /opt/eclipse
, C:\Eclipse
, and C:\ProgramData\Eclipse
.
Ensure is contains the following JVM options:
Code Block |
---|
-Xms512m -Xmx2g |
...
Troubleshooting
General troubleshooting steps for Eclipse are:
- Project > Rebuild
- Project > Clean...
- Gradle > Refresh Gradle Project
- File > Restart
- Create a new workspace
Adding and removing projects from workspace
It might be best to delete projects in Eclipse before deleting them on disk. Else your workspace might get corrupted if you try to delete from the File Explorer.
NoClassDefFoundError
Sometimes Eclipse will "forget" part of it's classpath. Recommended solution: Refresh Gradle Project
Code Block |
---|
Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/martiansoftware/jsap/JSAPException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: com.martiansoftware.jsap.JSAPException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more |
See also
TODO: How to run Gradle tasks with custom options
...