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

在使用sprng boot加elasticsearch的时候遇到

    java.lang.ClassNotFoundException: com.sun.jna.Native,百度之后要我导入

<dependency>
  <groupId>com.sun.jna</groupId>
  <artifactId>jna</artifactId>
  <version>3.0.9</version>
</dependency>无奈只有引入,但是结果并不美好,还是报同样的错,我最终决定去google,google出来的是导入

<dependency>    <groupId>net.java.dev.jna</groupId>    <artifactId>jna</artifactId>    <version>4.1.0</version></dependency>我又把这个加到pom文件,一次成功,还是google强大啊,需要之后遇到此问题的童鞋们减少弯路,直接导入该配置到pom文件即可,希望能帮助到大家
时间: 2024-11-12 21:39:59

java.lang.ClassNotFoundException: com.sun.jna.Native的相关文章

java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGCodec

这两天都快被这个错误整疯了!!!最近在写java项目的时候需要用到 [java] view plain copy import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder; 这两个类来把图片写入磁盘.注意:这两个类可是处在系统自带的jre里的rt.jar包里 [java] view plain copy FileOutputStream out = new FileOut

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

<!-- 导入java ee jar 包 -->        <dependency>            <groupId>javax</groupId>            <artifactId>javaee-api</artifactId>            <version>6.0</version>            <scope>provided</scope>

Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity

1.错误描写叙述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:41:17 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 usi

java.lang.ClassNotFoundException: org.jaxen.JaxenException

java.lang.ClassNotFoundException: org.jaxen.util.FollowingSiblingAxisIterator 具体错误信息 严重: Servlet.service() for servlet [springmvc] in context with path [/xinghe-platform-web] threw exception [Handler processing failed; nested exception is java.lang.N

actor运行报错:java.lang.ClassNotFoundException

object SimpleAkkaTest { def main(args: Array[String]) { val system = ActorSystem.create("system") val work =system.actorOf(Props[Worker],"worker-1") work ! 1 } } class Worker extends Actor { override def receive = { case 1=> println

Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWo

1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 14:19:28 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using

java.lang.ClassNotFoundException: Cannot find class: User

org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### The error may exist in dao/UserMapper.xml ### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeExc

Mybatis异常:java.lang.ClassNotFoundException: org.mybatis.spring.SqlSessionFactoryBean

问题描述: 一月 15, 2014 3:43:13 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh信息: Refreshing org[email protected]a530461: startup date [Wed Jan 15 15:43:13 CST 2014]; root of context hierarchy一月 15, 2014 3:43:13 下午 org.spr

java.lang.ClassNotFoundException与java.lang.NoClassDefFoundError的区别

java.lang.ClassNotFoundException与java.lang.NoClassDefFoundError的区别 以前一直没有注意过这个问题,前两天机缘巧合上网查了一下,然后自己测试验证了一下.虽然网上说法很多,但是关于NoClassDefFoundError并没有给出一个样例,所以一直无法理解,索性自己验证了一下,收获还不少. ClassNotFoundException ClassNotFoundException这个错误,比较常见也好理解. 原因:就是找不到指定的cla