This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256166

Summary: ClassNotFoundException: org.jcodings.Encoding
Product: web Reporter: Ruthless
Component: YAMLAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: jasny, tetrode
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 220757
Attachments: stacktrace
Contents of jcodings.jar
stacktrace (v8.1)

Description Ruthless 2015-10-25 10:45:59 UTC
This issue was reported manually by Ruthless.
It already has 1 duplicates 


Build: NetBeans IDE 8.0.2 (Build 20150619-debian-8.0.2)
VM: OpenJDK 64-Bit Server VM, 24.85-b03, OpenJDK Runtime Environment, 1.7.0_85-b01
OS: Linux

User Comments:
Ruthless: Program was frozen and suddenly asked me if I want to report a problem.




Stacktrace: 
java.lang.ClassNotFoundException: org.jcodings.Encoding
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(AccessController.java:0)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Comment 1 Ruthless 2015-10-25 10:46:01 UTC
Created attachment 156967 [details]
stacktrace
Comment 2 jasny 2016-05-04 19:04:09 UTC
Created attachment 159539 [details]
Contents of jcodings.jar
Comment 3 jasny 2016-05-04 19:08:39 UTC
Created attachment 159540 [details]
stacktrace (v8.1)
Comment 4 jasny 2016-05-04 19:18:05 UTC
Explicitly prepending `jcodings.jar` to the classpath by running `netbeans --cp:p /usr/share/java/jcodings.jar` solved the problem./

Workaround for others with this issue:

- Edit `netbeans.conf` (on Ubuntu 16.04 `/etc/netbeans.conf`)
- Add the `--cp:p /usr/share/java/jcodings.jar` to `netbeans_default_options`
Comment 5 tetrode 2016-07-13 09:35:58 UTC
Solved my issue too, thanks
Comment 6 tetrode 2016-07-13 09:38:09 UTC
*** Bug 262793 has been marked as a duplicate of this bug. ***