2016-10-06 97 views
0

我是Apache OFBiz的新手。當我嘗試gradlew loadDefault我得到的後續錯誤運行coomand:錯誤運行命令gradlew loadDefault

C:\ISEP\ODSOFT\PL\Repositorio\ofbiz>gradlew loadDefault 
:compileJava 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
:createBaseTestServiceProviderJar 
:processResources 
:classes 
:jar 
:assemble 
:compileTestJava 
:processTestResources UP-TO-DATE 
:testClasses 
:test 
:check 
:gitInfoFooter 
:svnInfoFooter 
:build 
:ofbiz --load-data 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException :ofbiz --load-data 
     at org.apache.ofbiz.base.start.Start.main(Start.java:60) 
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException 
     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) 
     ... 1 more 
:ofbiz --load-data FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':ofbiz --load-data'. 
> Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 1 

任何sugestions可能是什麼?

回答

0

我的問題是,我在Windows 10中的用戶名帳戶有一個空間。 我遵循this教程,並嘗試再次運行命令錯誤已經消失。

注意:因爲這是一個大學的工作,我有拼貼有同樣的問題,並與此同時,問題也消失了。