- A+
具体报错如下:
[类文件的搜索路径: C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar:C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar,C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar,E:\project\cjread_workspace\cjread_workspace\wk-core\target\classes,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-web\1.3.0.RELEASE\spring-boot-starter-web-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter\1.3.0.RELEASE\spring-boot-starter-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot\1.3.0.RELEASE\spring-boot-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.3.0.RELEASE\spring-boot-autoconfigure-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.3.0.RELEASE\spring-boot-starter-logging-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\ch\qos\logback\logback-classic\1.1.3\logback-classic-1.1.3.jar,C:\Users\Administrator\.m2\repository\ch\qos\logback\logback-core\1.1.3\logback-core-1.1.3.jar,C:\Users\Administrator\.m2\repository\org\slf4j\jul-to-slf4j\1.7.13\jul-to-slf4j-1.7.13.jar,C:\Users\Administrator\.m2\repository\org\slf4j\log4j-over-slf4j\1.7.13\log4j-over-slf4j-1.7.13.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.3.0.RELEASE\spring-boot-starter-tomcat-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.28\tomcat-embed-core-8.0.28.jar,C:\Users\Administrator\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.28\tomcat-embed-el-8.0.28.jar,C:\Users\Administrator\.m2\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.28\tomcat-embed-logging-juli-8.0.28.jar,C:\Users\Administrator\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.28\tomcat-embed-websocket-8.0.28.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-validation\1.3.0.RELEASE\spring-boot-starter-validation-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\hibernate\hibernate-validator\5.2.2.Final\hibernate-validator-5.2.2.Final.jar,C:\Users\Administrator\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar,C:\Users\Administrator\.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar,C:\Users\Administrator\.m2\repository\com\fasterxml\classmate\1.1.0\classmate-1.1.0.jar,C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.6.3\jackson-databind-2.6.3.jar,C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.3\jackson-annotations-2.6.3.jar,C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.6.3\jackson-core-2.6.3.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-web\4.2.3.RELEASE\spring-web-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-webmvc\4.2.3.RELEASE\spring-webmvc-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-expression\4.2.3.RELEASE\spring-expression-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\apache\commons\commons-lang3\3.0\commons-lang3-3.0.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-aop\1.3.0.RELEASE\spring-boot-starter-aop-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-aop\4.2.3.RELEASE\spring-aop-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar,C:\Users\Administrator\.m2\repository\org\aspectj\aspectjweaver\1.8.7\aspectjweaver-1.8.7.jar,C:\Users\Administrator\.m2\repository\org\springframework\boot\spring-boot-starter-freemarker\1.3.0.RELEASE\spring-boot-starter-freemarker-1.3.0.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\freemarker\freemarker\2.3.23\freemarker-2.3.23.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-context-support\4.2.3.RELEASE\spring-context-support-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\net\sf\ehcache\ehcache\2.8.5\ehcache-2.8.5.jar,C:\Users\Administrator\.m2\repository\org\slf4j\slf4j-api\1.7.13\slf4j-api-1.7.13.jar,C:\Users\Administrator\.m2\repository\com\google\guava\guava\14.0.1\guava-14.0.1.jar,C:\Users\Administrator\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar,C:\Users\Administrator\.m2\repository\org\ocpsoft\prettytime\prettytime\4.0.0.Final\prettytime-4.0.0.Final.jar,C:\Users\Administrator\.m2\repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar,C:\Users\Administrator\.m2\repository\com\alibaba\fastjson\1.2.4\fastjson-1.2.4.jar,C:\Users\Administrator\.m2\repository\com\alibaba\druid\1.0.26\druid-1.0.26.jar,C:\Program Files\Java\jdk1.8.0_181\jre\..\lib\jconsole.jar,C:\Program Files\Java\jdk1.8.0_181\jre\..\lib\tools.jar,C:\Users\Administrator\.m2\repository\org\mybatis\mybatis\3.3.1\mybatis-3.3.1.jar,C:\Users\Administrator\.m2\repository\org\mybatis\mybatis-spring\1.2.4\mybatis-spring-1.2.4.jar,C:\Users\Administrator\.m2\repository\com\github\pagehelper\pagehelper\4.1.1\pagehelper-4.1.1.jar,C:\Users\Administrator\.m2\repository\com\github\jsqlparser\jsqlparser\0.9.4\jsqlparser-0.9.4.jar,C:\Users\Administrator\.m2\repository\tk\mybatis\mapper\3.3.7\mapper-3.3.7.jar,C:\Users\Administrator\.m2\repository\javax\persistence\persistence-api\1.0\persistence-api-1.0.jar,C:\Users\Administrator\.m2\repository\mysql\mysql-connector-java\5.1.26\mysql-connector-java-5.1.26.jar,C:\Users\Administrator\.m2\repository\org\springframework\data\spring-data-jpa\1.9.1.RELEASE\spring-data-jpa-1.9.1.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\data\spring-data-commons\1.11.1.RELEASE\spring-data-commons-1.11.1.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-orm\4.2.3.RELEASE\spring-orm-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-jdbc\4.2.3.RELEASE\spring-jdbc-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-context\4.2.3.RELEASE\spring-context-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-tx\4.2.3.RELEASE\spring-tx-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-beans\4.2.3.RELEASE\spring-beans-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\springframework\spring-core\4.2.3.RELEASE\spring-core-4.2.3.RELEASE.jar,C:\Users\Administrator\.m2\repository\org\aspectj\aspectjrt\1.8.7\aspectjrt-1.8.7.jar,C:\Users\Administrator\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.13\jcl-over-slf4j-1.7.13.jar,C:\Users\Administrator\.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar,C:\Users\Administrator\.m2\repository\org\jdom\jdom\1.1.3\jdom-1.1.3.jar,C:\Users\Administrator\.m2\repository\com\mylib\QRCode\1.0\QRCode-1.0.jar,C:\Users\Administrator\.m2\repository\com\mylib\AXMLPrinter2\1.0\AXMLPrinter2-1.0.jar,C:\Users\Administrator\.m2\repository\org\apache\httpcomponents\httpclient\4.5.1\httpclient-4.5.1.jar,C:\Users\Administrator\.m2\repository\org\apache\httpcomponents\httpcore\4.4.4\httpcore-4.4.4.jar,C:\Users\Administrator\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar,C:\Users\Administrator\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar,C:\Users\Administrator\.m2\repository\org\jsoup\jsoup\1.7.2\jsoup-1.7.2.jar,C:\Users\Administrator\.m2\repository\net\sourceforge\cssparser\cssparser\0.9.18\cssparser-0.9.18.jar,C:\Users\Administrator\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar,C:\Users\Administrator\.m2\repository\org\apache\poi\poi\3.9\poi-3.9.jar,C:\Users\Administrator\.m2\repository\org\apache\poi\poi-ooxml\3.5-FINAL\poi-ooxml-3.5-FINAL.jar,C:\Users\Administrator\.m2\repository\org\apache\poi\ooxml-schemas\1.0\ooxml-schemas-1.0.jar,C:\Users\Administrator\.m2\repository\org\apache\xmlbeans\xmlbeans\2.3.0\xmlbeans-2.3.0.jar,C:\Users\Administrator\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar,C:\Users\Administrator\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar,C:\Users\Administrator\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar,C:\Users\Administrator\.m2\repository\javax\mail\mail\1.4.7\mail-1.4.7.jar,C:\Users\Administrator\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar,C:\Users\Administrator\.m2\repository\com\mylib\taobao-sdk-java-auto_1455552377940\20160607\taobao-sdk-java-auto_1455552377940-20160607.jar,C:\Users\Administrator\.m2\repository\org\apache\pdfbox\pdfbox\2.0.6\pdfbox-2.0.6.jar,C:\Users\Administrator\.m2\repository\org\apache\pdfbox\fontbox\2.0.6\fontbox-2.0.6.jar,C:\Users\Administrator\.m2\repository\com\github\jai-imageio\jai-imageio-core\1.3.1\jai-imageio-core-1.3.1.jar,C:\Users\Administrator\.m2\repository\com\github\jai-imageio\jai-imageio-jpeg2000\1.3.0\jai-imageio-jpeg2000-1.3.0.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-analyzers-common\5.5.2\lucene-analyzers-common-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-queryparser\5.5.2\lucene-queryparser-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-queries\5.5.2\lucene-queries-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-sandbox\5.5.2\lucene-sandbox-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-core\5.5.2\lucene-core-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-highlighter\5.5.2\lucene-highlighter-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-join\5.5.2\lucene-join-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-memory\5.5.2\lucene-memory-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-analyzers\3.6.2\lucene-analyzers-3.6.2.jar,C:\Users\Administrator\.m2\repository\org\apache\lucene\lucene-analyzers-smartcn\5.5.2\lucene-analyzers-smartcn-5.5.2.jar,C:\Users\Administrator\.m2\repository\org\htmlparser\htmlparser\2.1\htmlparser-2.1.jar,C:\Users\Administrator\.m2\repository\org\htmlparser\htmlparser\2.1\sax-2.0.1.jar,C:\Users\Administrator\.m2\repository\org\htmlparser\htmlparser\2.1\htmllexer-2.1.jar,C:\Users\Administrator\.m2\repository\org\htmlparser\htmllexer\2.1\htmllexer-2.1.jar,C:\Users\Administrator\.m2\repository\com\hankcs\hanlp\portable-1.1.5\hanlp-portable-1.1.5.jar,.]
致命错误: 在类路径或引导类路径中找不到程序包 java.lang
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
这个是接手以前的一个老项目的源码,用maven install后就不停的报这个错,网上有人说把pom里的<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>这句注释起来就好了,我试了下,把这句注释起来虽然不会报这个错,但是会报另外一个错,如下:
程序包com.sun.image.codec.jpeg不存在
然后再查这个错,解决方法居然是让我加上上面那句我刚刚注释掉的那行。。。无语中。。
最后发现原来是这行里冒号:的影响,在linux系统中,环境变量是用:来连接的,而在windows中是用分号;来连接的。。说明原来这份代码是跑在linux下的,现在我们要在windows环境下跑的话只用改成;就行了。