java.lang.ClassNotFoundException: com.sun.jna.Native


Samebug tips

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.


9 months ago
Expert tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.


7 months ago
Expert tip

Solutions on the web

Solution icon of github
via GitHub by soup11
, 9 months ago
com.sun.jna.Native

Solution icon of sourceforge
com.sun.jna.Native

Solution icon of github
com.sun.jna.Native

Solution icon of stackoverflow
com.sun.jna.Native

Solution icon of stackoverflow
via Stack Overflow by W. V.
, 1 year ago
com.sun.jna.Native

Solution icon of github
via GitHub by ylemoigne
, 1 year ago
com.sun.jna.Native

Solution icon of web
com.sun.jna.Native

Stack trace

java.lang.ClassNotFoundException: com.sun.jna.Native
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
2476 more bugmates