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 223359 - NoClassDefFoundError: Could not initialize class com.sun.jna.Native
Summary: NoClassDefFoundError: Could not initialize class com.sun.jna.Native
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 03:29 UTC by Exceptions Reporter
Modified: 2012-12-06 13:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196167


Attachments
stacktrace (3.23 KB, text/plain)
2012-12-06 03:29 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-12-06 03:29:33 UTC
This bug was originally marked as duplicate of bug 212938, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: OpenJDK Zero VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_24-b24
OS: Linux

User Comments:
GUEST: Clicked PHP Applications under Demos & Tutorials

GUEST: When I initialize NetBeans the problem occurred.




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
   at org.netbeans.modules.masterfs.watcher.linux.LinuxNotifier.<init>(LinuxNotifier.java:103)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at java.lang.Class.newInstance0(Class.java:372)
Comment 1 Exceptions Reporter 2012-12-06 03:29:35 UTC
Created attachment 128928 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-12-06 07:21:42 UTC
Caused by 
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.masterfs.Installer
java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied
	at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:762)
	at com.sun.jna.Native.loadNativeLibrary(Native.java:697)
	at com.sun.jna.Native.<clinit>(Native.java:127)
	at org.netbeans.modules.masterfs.watcher.linux.LinuxNotifier.<init>(LinuxNotifier.java:103)


I thought we don't need to create any temporary files anymore!? Don't we extract them during build time and then just use them?
Comment 3 Stanislav Aubrecht 2012-12-06 13:43:59 UTC
We don't provide binaries for ARM architecture so JNA falls back to extracting its binaries from JAR.

Reporter, please try running NetBeans with -J-Djava.io.tmpdir=$HOME cmdline switch and reopen if you can still reproduce the problem, thanks.