Cannot install apache-ofbiz-16.11.03 on windows 10

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Cannot install apache-ofbiz-16.11.03 on windows 10

Christian Vetterli
Hello all,
I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
 
What I did for example is:
OFBiz to C:\apache-ofbiz-16.11.03
Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program Files\Java\jre1.8.0_151
 
I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
All I am getting is:
 
C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault
:clean
:cleanAnt
:cleanCatalina
:cleanData
:cleanDownloads
:cleanEclipseClasspath UP-TO-DATE
:cleanEclipseJdt UP-TO-DATE
:cleanEclipseProject UP-TO-DATE
:cleanEclipse UP-TO-DATE
:cleanFooterFiles
:cleanGradle
:cleanIndexes
:cleanLogs
:cleanOutput
:cleanTempfiles
:cleanUploads
:cleanXtra
:cleanAll
:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
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:335)
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_151\bin\java.exe'' finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
Total time: 2 mins 54.909 secs
 
C:\apache-ofbiz-16.11.03>
 
It seems that there might be a problem with windows 10.
Does someone have a solution?
Thanks a lot.
Greetings from Switzerland,
Christian
Reply | Threaded
Open this post in threaded view
|

RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
Hi Christian,

Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?

https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/

Follow the instructions in the above to set:

JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151
OFBIZ_HOME = C:\apache-ofbiz-16.11.03

Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.

Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.

Then try recompiling.

-Tim


-----Original Message-----
From: Christian Vetterli [mailto:[hidden email]]
Sent: Friday, December 22, 2017 8:59 AM
To: [hidden email]
Subject: Cannot install apache-ofbiz-16.11.03 on windows 10

Hello all,
I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
 
What I did for example is:
OFBiz to C:\apache-ofbiz-16.11.03
Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program Files\Java\jre1.8.0_151
 
I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
All I am getting is:
 
C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
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:335)
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_151\bin\java.exe''
> finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
Total time: 2 mins 54.909 secs
 
C:\apache-ofbiz-16.11.03>
 
It seems that there might be a problem with windows 10.
Does someone have a solution?
Thanks a lot.
Greetings from Switzerland,
Christian
Reply | Threaded
Open this post in threaded view
|

RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
That should be:


JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151


OFBIZ_HOME = C:\apache-ofbiz-16.11.03


The list engine mangled my email.

-Tim

-----Original Message-----
From: Boyden, Timothy [mailto:[hidden email]]
Sent: Friday, December 22, 2017 11:25 AM
To: [hidden email]
Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Hi Christian,

Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?

https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/

Follow the instructions in the above to set:

JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME = C:\apache-ofbiz-16.11.03

Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.

Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.

Then try recompiling.

-Tim


-----Original Message-----
From: Christian Vetterli [mailto:[hidden email]]
Sent: Friday, December 22, 2017 8:59 AM
To: [hidden email]
Subject: Cannot install apache-ofbiz-16.11.03 on windows 10

Hello all,
I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
 
What I did for example is:
OFBiz to C:\apache-ofbiz-16.11.03
Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program Files\Java\jre1.8.0_151
 
I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
All I am getting is:
 
C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
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:335)
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_151\bin\java.exe''
> finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
Total time: 2 mins 54.909 secs
 
C:\apache-ofbiz-16.11.03>
 
It seems that there might be a problem with windows 10.
Does someone have a solution?
Thanks a lot.
Greetings from Switzerland,
Christian
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Jacques Le Roux
Administrator
In reply to this post by Boyden, Timothy
Hi Tim,

Why do you define OFBIZ_HOME?

Jacques


Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :

> Hi Christian,
>
> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>
> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
>
> Follow the instructions in the above to set:
>
> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151
> OFBIZ_HOME = C:\apache-ofbiz-16.11.03
>
> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>
> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>
> Then try recompiling.
>
> -Tim
>
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Friday, December 22, 2017 8:59 AM
> To: [hidden email]
> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hello all,
> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>  
> What I did for example is:
> OFBiz to C:\apache-ofbiz-16.11.03
> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program Files\Java\jre1.8.0_151
>  
> I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
> All I am getting is:
>  
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
>  
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
> 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:335)
> 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_151\bin\java.exe''
>> finished with non-zero exit value 1
>  
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  
> BUILD FAILED
>  
> Total time: 2 mins 54.909 secs
>  
> C:\apache-ofbiz-16.11.03>
>  
> It seems that there might be a problem with windows 10.
> Does someone have a solution?
> Thanks a lot.
> Greetings from Switzerland,
> Christian

Reply | Threaded
Open this post in threaded view
|

RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.

-Tim

-----Original Message-----
From: Jacques Le Roux [mailto:[hidden email]]
Sent: Friday, December 22, 2017 12:04 PM
To: [hidden email]
Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Hi Tim,

Why do you define OFBIZ_HOME?

Jacques


Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :

> Hi Christian,
>
> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>
> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
>
> Follow the instructions in the above to set:
>
> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
> C:\apache-ofbiz-16.11.03
>
> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>
> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>
> Then try recompiling.
>
> -Tim
>
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Friday, December 22, 2017 8:59 AM
> To: [hidden email]
> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hello all,
> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>  
> What I did for example is:
> OFBiz to C:\apache-ofbiz-16.11.03
> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
> Files\Java\jre1.8.0_151
>  
> I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
> All I am getting is:
>  
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
> :cleanAll :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
>  
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
> 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:335)
> 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_151\bin\java.exe''
>> finished with non-zero exit value 1
>  
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  
> BUILD FAILED
>  
> Total time: 2 mins 54.909 secs
>  
> C:\apache-ofbiz-16.11.03>
>  
> It seems that there might be a problem with windows 10.
> Does someone have a solution?
> Thanks a lot.
> Greetings from Switzerland,
> Christian

Reply | Threaded
Open this post in threaded view
|

RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
List of docs that reference OFBIZ_HOME:

https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME

-Tim

-----Original Message-----
From: Boyden, Timothy [mailto:[hidden email]]
Sent: Friday, December 22, 2017 12:42 PM
To: [hidden email]
Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10

I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.

-Tim

-----Original Message-----
From: Jacques Le Roux [mailto:[hidden email]]
Sent: Friday, December 22, 2017 12:04 PM
To: [hidden email]
Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Hi Tim,

Why do you define OFBIZ_HOME?

Jacques


Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :

> Hi Christian,
>
> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>
> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
>
> Follow the instructions in the above to set:
>
> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
> C:\apache-ofbiz-16.11.03
>
> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>
> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>
> Then try recompiling.
>
> -Tim
>
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Friday, December 22, 2017 8:59 AM
> To: [hidden email]
> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hello all,
> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>  
> What I did for example is:
> OFBiz to C:\apache-ofbiz-16.11.03
> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
> Files\Java\jre1.8.0_151
>  
> I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
> All I am getting is:
>  
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
> :cleanAll :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
>  
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
> 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:335)
> 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_151\bin\java.exe''
>> finished with non-zero exit value 1
>  
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  
> BUILD FAILED
>  
> Total time: 2 mins 54.909 secs
>  
> C:\apache-ofbiz-16.11.03>
>  
> It seems that there might be a problem with windows 10.
> Does someone have a solution?
> Thanks a lot.
> Greetings from Switzerland,
> Christian

Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Jacques Le Roux
Administrator
I see actually you don't need it OOTB.

Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz

In rare specific cases, mostly in few bash scripts, it's used as an environment variable.

Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message

Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
finished with non-zero exit value 1

Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?

But maybe there is a confusion we can't see (I use Windows 7)

I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion

HTH

Jacques


Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :

> List of docs that reference OFBIZ_HOME:
>
> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME
>
> -Tim
>
> -----Original Message-----
> From: Boyden, Timothy [mailto:[hidden email]]
> Sent: Friday, December 22, 2017 12:42 PM
> To: [hidden email]
> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>
> -Tim
>
> -----Original Message-----
> From: Jacques Le Roux [mailto:[hidden email]]
> Sent: Friday, December 22, 2017 12:04 PM
> To: [hidden email]
> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hi Tim,
>
> Why do you define OFBIZ_HOME?
>
> Jacques
>
>
> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>> Hi Christian,
>>
>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>
>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
>>
>> Follow the instructions in the above to set:
>>
>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>> C:\apache-ofbiz-16.11.03
>>
>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>
>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>
>> Then try recompiling.
>>
>> -Tim
>>
>>
>> -----Original Message-----
>> From: Christian Vetterli [mailto:[hidden email]]
>> Sent: Friday, December 22, 2017 8:59 AM
>> To: [hidden email]
>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>
>> Hello all,
>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>    
>> What I did for example is:
>> OFBiz to C:\apache-ofbiz-16.11.03
>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>> Files\Java\jre1.8.0_151
>>    
>> I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
>> All I am getting is:
>>    
>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>> :cleanAll :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> :processResources
>> :classes
>> :jar
>> :assemble
>> :compileTestJava
>> :processTestResources UP-TO-DATE
>> :testClasses
>> :test
>> :check
>> :build
>> :ofbiz --load-data
>>    
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/cli/ParseException
>> 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:335)
>> 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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>    
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>    
>> BUILD FAILED
>>    
>> Total time: 2 mins 54.909 secs
>>    
>> C:\apache-ofbiz-16.11.03>
>>    
>> It seems that there might be a problem with windows 10.
>> Does someone have a solution?
>> Thanks a lot.
>> Greetings from Switzerland,
>> Christian

Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Jacques Le Roux
Administrator
Forgot to say that we can see

:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

that's why I believe Gradle found the JDK.

But then why Gradle can't find the Apache Commons ParseException class :-\

which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'

Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...

Jacques


Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :

> I see actually you don't need it OOTB.
>
> Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz
>
> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>
> Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message
>
> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
> finished with non-zero exit value 1
>
> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>
> But maybe there is a confusion we can't see (I use Windows 7)
>
> I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion
>
> HTH
>
> Jacques
>
>
> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>> List of docs that reference OFBIZ_HOME:
>>
>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME
>>
>> -Tim
>>
>> -----Original Message-----
>> From: Boyden, Timothy [mailto:[hidden email]]
>> Sent: Friday, December 22, 2017 12:42 PM
>> To: [hidden email]
>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>
>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>
>> -Tim
>>
>> -----Original Message-----
>> From: Jacques Le Roux [mailto:[hidden email]]
>> Sent: Friday, December 22, 2017 12:04 PM
>> To: [hidden email]
>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>
>> Hi Tim,
>>
>> Why do you define OFBIZ_HOME?
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>> Hi Christian,
>>>
>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>
>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/
>>>
>>> Follow the instructions in the above to set:
>>>
>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>> C:\apache-ofbiz-16.11.03
>>>
>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>
>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>
>>> Then try recompiling.
>>>
>>> -Tim
>>>
>>>
>>> -----Original Message-----
>>> From: Christian Vetterli [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 8:59 AM
>>> To: [hidden email]
>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> Hello all,
>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All
>>> currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>    What I did for example is:
>>> OFBiz to C:\apache-ofbiz-16.11.03
>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>> Files\Java\jre1.8.0_151
>>>    I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition,
>>> I tried the latest version of Java.
>>> All I am getting is:
>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>>> :cleanAll :compileJava
>>> Note: Some input files use unchecked or unsafe operations.
>>> Note: Recompile with -Xlint:unchecked for details.
>>> :processResources
>>> :classes
>>> :jar
>>> :assemble
>>> :compileTestJava
>>> :processTestResources UP-TO-DATE
>>> :testClasses
>>> :test
>>> :check
>>> :build
>>> :ofbiz --load-data
>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/commons/cli/ParseException
>>> 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:335)
>>> 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_151\bin\java.exe''
>>>> finished with non-zero exit value 1
>>>    * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>    BUILD FAILED
>>>    Total time: 2 mins 54.909 secs
>>>    C:\apache-ofbiz-16.11.03>
>>>    It seems that there might be a problem with windows 10.
>>> Does someone have a solution?
>>> Thanks a lot.
>>> Greetings from Switzerland,
>>> Christian
>
>

Reply | Threaded
Open this post in threaded view
|

Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Christian Vetterli
Thank you Jacques for your hint (deleting JRE, running --stacktrace).
I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
OFBiz is still at the same location  C:\apache-ofbiz-16.11.03
I received the following message:
C:\>cd apache-ofbiz-16.11.03
 
C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
 
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
 
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
 
C:\apache-ofbiz-16.11.03>
 
Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
C:\apache-ofbiz-16.11.03
and
C:\Program Files\Java\jdk1.8.0_151
C:\Program Files\Java\jre1.8.0_151
 
Then I ran
gradlew cleanAll loadDefault
 
The message was
: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_151\bin\java.exe'' finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
I ran
gradlew cleanAll loadDefault –stacktrace
 
C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
:clean
:cleanAnt
:cleanCatalina
:cleanData
:cleanDownloads
:cleanEclipseClasspath UP-TO-DATE
:cleanEclipseJdt UP-TO-DATE
:cleanEclipseProject UP-TO-DATE
:cleanEclipse UP-TO-DATE
:cleanFooterFiles
:cleanGradle
:cleanIndexes
:cleanLogs
:cleanOutput
:cleanTempfiles
:cleanUploads
:cleanXtra
:cleanAll
:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
        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:335)
        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_151\bin\java.exe'' finished with non-zero exit value 1
 
* Try:
Run with --info or --debug option to get more log output.
 
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
        at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
        at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
        at org.gradle.internal.Factories$1.create(Factories.java:22)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
        at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with non-zero exit value 1
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
        at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
        at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
        ... 60 more
 
 
BUILD FAILED
 
Total time: 3 mins 49.412 secs
 
C:\apache-ofbiz-16.11.03>
 
 
Any suggestions?

Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
Von: "Jacques Le Roux" <[hidden email]>
An: [hidden email]
Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
Forgot to say that we can see

:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

that's why I believe Gradle found the JDK.

But then why Gradle can't find the Apache Commons ParseException class :-\

which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'

Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...

Jacques


Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :

> I see actually you don't need it OOTB.
>
> Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz
>
> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>
> Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message
>
> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
> finished with non-zero exit value 1
>
> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>
> But maybe there is a confusion we can't see (I use Windows 7)
>
> I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion
>
> HTH
>
> Jacques
>
>
> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>> List of docs that reference OFBIZ_HOME:
>>
>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME
>>
>> -Tim
>>
>> -----Original Message-----
>> From: Boyden, Timothy [mailto:[hidden email]]
>> Sent: Friday, December 22, 2017 12:42 PM
>> To: [hidden email]
>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>
>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>
>> -Tim
>>
>> -----Original Message-----
>> From: Jacques Le Roux [mailto:[hidden email]]
>> Sent: Friday, December 22, 2017 12:04 PM
>> To: [hidden email]
>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>
>> Hi Tim,
>>
>> Why do you define OFBIZ_HOME?
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>> Hi Christian,
>>>
>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>
>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]
>>>
>>> Follow the instructions in the above to set:
>>>
>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>> C:\apache-ofbiz-16.11.03
>>>
>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>
>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>
>>> Then try recompiling.
>>>
>>> -Tim
>>>
>>>
>>> -----Original Message-----
>>> From: Christian Vetterli [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 8:59 AM
>>> To: [hidden email]
>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> Hello all,
>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All
>>> currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>    What I did for example is:
>>> OFBiz to C:\apache-ofbiz-16.11.03
>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>> Files\Java\jre1.8.0_151
>>>    I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition,
>>> I tried the latest version of Java.
>>> All I am getting is:
>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>>> :cleanAll :compileJava
>>> Note: Some input files use unchecked or unsafe operations.
>>> Note: Recompile with -Xlint:unchecked for details.
>>> :processResources
>>> :classes
>>> :jar
>>> :assemble
>>> :compileTestJava
>>> :processTestResources UP-TO-DATE
>>> :testClasses
>>> :test
>>> :check
>>> :build
>>> :ofbiz --load-data
>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/commons/cli/ParseException
>>> 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:335)
>>> 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_151\bin\java.exe''
>>>> finished with non-zero exit value 1
>>>    * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>    BUILD FAILED
>>>    Total time: 2 mins 54.909 secs
>>>    C:\apache-ofbiz-16.11.03>
>>>    It seems that there might be a problem with windows 10.
>>> Does someone have a solution?
>>> Thanks a lot.
>>> Greetings from Switzerland,
>>> Christian
>
>
 
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Michael Brohl-3
Hi Christian,

there is no need to uninstall Java/OFbiz when there is just a missing
JAVA_HOME environment variable. Just point this variable to the correct
Java home directory.

What does "echo %JAVA_HOME%" and "java -version" say on the command line?

OFBIZ_HOME is not needed at all, the Gradle build detects everything on
its own.

I recommend reading the README.md in the project's root folder. It
describes every step you need to run OFBiz.

NoClassDefFoundError: It seems that you don't have the necessary
dependencies installed on your system.

Please notice that the library dependencies are (intentionally) not
delivered together with the release. They should be automatically
downloaded by the Gradle build which can take some time for the initial
build. You will need an internet connection to do this.

If your Gradle cache is messy, please consider removing the contents in
the .gradle folder in your user home directory and execute "gradlew
cleanAll loadDefault ofbiz" again. You should see a lot of additional
libaries be downloaded during the build which may take a while.

Hope this helps,

Regards,

Michael Brohl
ecomify GmbH
www.ecomify.de

Am 23.12.17 um 21:25 schrieb Christian Vetterli:

> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03
> I received the following message:
> C:\>cd apache-ofbiz-16.11.03
>  
> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>  
> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>  
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation.
>  
> C:\apache-ofbiz-16.11.03>
>  
> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
> C:\apache-ofbiz-16.11.03
> and
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
>  
> Then I ran
> gradlew cleanAll loadDefault
>  
> The message was
> :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_151\bin\java.exe'' finished with non-zero exit value 1
>  
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  
> BUILD FAILED
>  
> I ran
> gradlew cleanAll loadDefault –stacktrace
>  
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
> :clean
> :cleanAnt
> :cleanCatalina
> :cleanData
> :cleanDownloads
> :cleanEclipseClasspath UP-TO-DATE
> :cleanEclipseJdt UP-TO-DATE
> :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE
> :cleanFooterFiles
> :cleanGradle
> :cleanIndexes
> :cleanLogs
> :cleanOutput
> :cleanTempfiles
> :cleanUploads
> :cleanXtra
> :cleanAll
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
>          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:335)
>          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_151\bin\java.exe'' finished with non-zero exit value 1
>  
> * Try:
> Run with --info or --debug option to get more log output.
>  
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
>          at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>          at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
>          at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
>          at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>          at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
>          at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
>          at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
>          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
>          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
>          at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
>          at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>          at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
>          at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
>          at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
>          at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
>          at org.gradle.internal.Factories$1.create(Factories.java:22)
>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
>          at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
>          at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
>          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
>          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
>          at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
>          at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
>          at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
>          at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
>          at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
>          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
>          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
>          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
>          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
>          at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>          at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>          at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>          at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
>          at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
>          at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
>          at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
>          at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
>          at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
>          at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
>          at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
>          at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
>          at org.gradle.launcher.Main.doAction(Main.java:33)
>          at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>          at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
>          at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
>          at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>          at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
>          at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>          at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
> Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with non-zero exit value 1
>          at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
>          at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
>          at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>          at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
>          at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
>          at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
>          ... 60 more
>  
>  
> BUILD FAILED
>  
> Total time: 3 mins 49.412 secs
>  
> C:\apache-ofbiz-16.11.03>
>  
>  
> Any suggestions?
>
> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
> Von: "Jacques Le Roux" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> Forgot to say that we can see
>
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> that's why I believe Gradle found the JDK.
>
> But then why Gradle can't find the Apache Commons ParseException class :-\
>
> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>
> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>
> Jacques
>
>
> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>> I see actually you don't need it OOTB.
>>
>> Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz
>>
>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>
>> Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message
>>
>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>> finished with non-zero exit value 1
>>
>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>
>> But maybe there is a confusion we can't see (I use Windows 7)
>>
>> I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion
>>
>> HTH
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>> List of docs that reference OFBIZ_HOME:
>>>
>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Boyden, Timothy [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:42 PM
>>> To: [hidden email]
>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Jacques Le Roux [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:04 PM
>>> To: [hidden email]
>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> Hi Tim,
>>>
>>> Why do you define OFBIZ_HOME?
>>>
>>> Jacques
>>>
>>>
>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>> Hi Christian,
>>>>
>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>
>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]
>>>>
>>>> Follow the instructions in the above to set:
>>>>
>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>> C:\apache-ofbiz-16.11.03
>>>>
>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>
>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>
>>>> Then try recompiling.
>>>>
>>>> -Tim
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>> To: [hidden email]
>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hello all,
>>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All
>>>> currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>     What I did for example is:
>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>> Files\Java\jre1.8.0_151
>>>>     I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition,
>>>> I tried the latest version of Java.
>>>> All I am getting is:
>>>>     C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>>>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>>>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>>>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>>>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>>>> :cleanAll :compileJava
>>>> Note: Some input files use unchecked or unsafe operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> :processResources
>>>> :classes
>>>> :jar
>>>> :assemble
>>>> :compileTestJava
>>>> :processTestResources UP-TO-DATE
>>>> :testClasses
>>>> :test
>>>> :check
>>>> :build
>>>> :ofbiz --load-data
>>>>     Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> org/apache/commons/cli/ParseException
>>>> 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:335)
>>>> 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_151\bin\java.exe''
>>>>> finished with non-zero exit value 1
>>>>     * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>     BUILD FAILED
>>>>     Total time: 2 mins 54.909 secs
>>>>     C:\apache-ofbiz-16.11.03>
>>>>     It seems that there might be a problem with windows 10.
>>>> Does someone have a solution?
>>>> Thanks a lot.
>>>> Greetings from Switzerland,
>>>> Christian
>>
>  


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Christian Vetterli
Hi Michael,
Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
First, get Java JDK.
So, I got Java and saved it to
C:\Program Files\Java\jdk1.8.0_151
C:\Program Files\Java\jre1.8.0_151
Second, get the latest OFBiz version.
I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip the very first link to download the latest version.
I saved it to
C:\apache-ofbiz-16.11.03
Then I ran the following command line
gradlew cleanAll loadDefault
I have tried
gradlew loadDefault ofbiz previously with the same result.
And as Jacques suggested
-- stacktrace
 
I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
 
That is all I did. No additional moving around, no programming – nothing.
I have no clue what I could have done wrong.
 
I am grateful for your help.
Thanks a lot.
Christian

 

Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
Von: "Michael Brohl" <[hidden email]>
An: [hidden email]
Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
Hi Christian,

there is no need to uninstall Java/OFbiz when there is just a missing
JAVA_HOME environment variable. Just point this variable to the correct
Java home directory.

What does "echo %JAVA_HOME%" and "java -version" say on the command line?

OFBIZ_HOME is not needed at all, the Gradle build detects everything on
its own.

I recommend reading the README.md in the project's root folder. It
describes every step you need to run OFBiz.

NoClassDefFoundError: It seems that you don't have the necessary
dependencies installed on your system.

Please notice that the library dependencies are (intentionally) not
delivered together with the release. They should be automatically
downloaded by the Gradle build which can take some time for the initial
build. You will need an internet connection to do this.

If your Gradle cache is messy, please consider removing the contents in
the .gradle folder in your user home directory and execute "gradlew
cleanAll loadDefault ofbiz" again. You should see a lot of additional
libaries be downloaded during the build which may take a while.

Hope this helps,

Regards,

Michael Brohl
ecomify GmbH
www.ecomify.de[http://www.ecomify.de]

Am 23.12.17 um 21:25 schrieb Christian Vetterli:

> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03
> I received the following message:
> C:\>cd apache-ofbiz-16.11.03
>
> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>
> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation.
>
> C:\apache-ofbiz-16.11.03>
>
> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
> C:\apache-ofbiz-16.11.03
> and
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
>
> Then I ran
> gradlew cleanAll loadDefault
>
> The message was
> :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_151\bin\java.exe'' finished with non-zero exit value 1
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>
> BUILD FAILED
>
> I ran
> gradlew cleanAll loadDefault –stacktrace
>
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
> :clean
> :cleanAnt
> :cleanCatalina
> :cleanData
> :cleanDownloads
> :cleanEclipseClasspath UP-TO-DATE
> :cleanEclipseJdt UP-TO-DATE
> :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE
> :cleanFooterFiles
> :cleanGradle
> :cleanIndexes
> :cleanLogs
> :cleanOutput
> :cleanTempfiles
> :cleanUploads
> :cleanXtra
> :cleanAll
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
>         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:335)
>         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_151\bin\java.exe'' finished with non-zero exit value 1
>
> * Try:
> Run with --info or --debug option to get more log output.
>
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
>         at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>         at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
>         at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
>         at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>         at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
>         at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
>         at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
>         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
>         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
>         at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>         at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
>         at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
>         at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
>         at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
>         at org.gradle.internal.Factories$1.create(Factories.java:22)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
>         at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
>         at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
>         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
>         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
>         at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
>         at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
>         at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
>         at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
>         at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
>         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
>         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
>         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
>         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
>         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>         at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>         at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
>         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
>         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
>         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
>         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
>         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
>         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
>         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
>         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
>         at org.gradle.launcher.Main.doAction(Main.java:33)
>         at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>         at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
>         at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>         at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
>         at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>         at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
> Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with non-zero exit value 1
>         at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
>         at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
>         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>         at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
>         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
>         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
>         ... 60 more
>
>
> BUILD FAILED
>
> Total time: 3 mins 49.412 secs
>
> C:\apache-ofbiz-16.11.03>
>
>
> Any suggestions?
>
> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
> Von: "Jacques Le Roux" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> Forgot to say that we can see
>
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> that's why I believe Gradle found the JDK.
>
> But then why Gradle can't find the Apache Commons ParseException class :-\
>
> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>
> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>
> Jacques
>
>
> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>> I see actually you don't need it OOTB.
>>
>> Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz
>>
>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>
>> Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message
>>
>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>> finished with non-zero exit value 1
>>
>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>
>> But maybe there is a confusion we can't see (I use Windows 7)
>>
>> I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion
>>
>> HTH
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>> List of docs that reference OFBIZ_HOME:
>>>
>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME]
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Boyden, Timothy [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:42 PM
>>> To: [hidden email]
>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Jacques Le Roux [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:04 PM
>>> To: [hidden email]
>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> Hi Tim,
>>>
>>> Why do you define OFBIZ_HOME?
>>>
>>> Jacques
>>>
>>>
>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>> Hi Christian,
>>>>
>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>
>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]
>>>>
>>>> Follow the instructions in the above to set:
>>>>
>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>> C:\apache-ofbiz-16.11.03
>>>>
>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>
>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>
>>>> Then try recompiling.
>>>>
>>>> -Tim
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>> To: [hidden email]
>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hello all,
>>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All
>>>> currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>    What I did for example is:
>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>> Files\Java\jre1.8.0_151
>>>>    I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition,
>>>> I tried the latest version of Java.
>>>> All I am getting is:
>>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>>>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>>>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>>>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>>>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>>>> :cleanAll :compileJava
>>>> Note: Some input files use unchecked or unsafe operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> :processResources
>>>> :classes
>>>> :jar
>>>> :assemble
>>>> :compileTestJava
>>>> :processTestResources UP-TO-DATE
>>>> :testClasses
>>>> :test
>>>> :check
>>>> :build
>>>> :ofbiz --load-data
>>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> org/apache/commons/cli/ParseException
>>>> 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:335)
>>>> 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_151\bin\java.exe''
>>>>> finished with non-zero exit value 1
>>>>    * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>    BUILD FAILED
>>>>    Total time: 2 mins 54.909 secs
>>>>    C:\apache-ofbiz-16.11.03>
>>>>    It seems that there might be a problem with windows 10.
>>>> Does someone have a solution?
>>>> Thanks a lot.
>>>> Greetings from Switzerland,
>>>> Christian
>>
>

 
Reply | Threaded
Open this post in threaded view
|

RE: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
Christian,

The first step after unpacking the OFBiz zip file, is to run "gradlew" by itself. That downloads all of the libraries and does an initial build of OFBiz.

Then you would run the "gradlew loadDefault" to load the data into default Derby database.

Then you would run "gradlew ofbiz" to run the application.

-Tim

-----Original Message-----
From: Christian Vetterli [mailto:[hidden email]]
Sent: Sunday, December 24, 2017 8:18 AM
To: [hidden email]
Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Hi Michael,
Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
First, get Java JDK.
So, I got Java and saved it to
C:\Program Files\Java\jdk1.8.0_151
C:\Program Files\Java\jre1.8.0_151
Second, get the latest OFBiz version.
I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip the very first link to download the latest version.
I saved it to
C:\apache-ofbiz-16.11.03
Then I ran the following command line
gradlew cleanAll loadDefault
I have tried
gradlew loadDefault ofbiz previously with the same result.
And as Jacques suggested
-- stacktrace
 
I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
 
That is all I did. No additional moving around, no programming – nothing.
I have no clue what I could have done wrong.
 
I am grateful for your help.
Thanks a lot.
Christian

 

Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
Von: "Michael Brohl" <[hidden email]>
An: [hidden email]
Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Christian,

there is no need to uninstall Java/OFbiz when there is just a missing JAVA_HOME environment variable. Just point this variable to the correct Java home directory.

What does "echo %JAVA_HOME%" and "java -version" say on the command line?

OFBIZ_HOME is not needed at all, the Gradle build detects everything on its own.

I recommend reading the README.md in the project's root folder. It describes every step you need to run OFBiz.

NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system.

Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this.

If your Gradle cache is messy, please consider removing the contents in the .gradle folder in your user home directory and execute "gradlew cleanAll loadDefault ofbiz" again. You should see a lot of additional libaries be downloaded during the build which may take a while.

Hope this helps,

Regards,

Michael Brohl
ecomify GmbH
www.ecomify.de[http://www.ecomify.de]

Am 23.12.17 um 21:25 schrieb Christian Vetterli:

> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03 I
> received the following message:
> C:\>cd apache-ofbiz-16.11.03
>
> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>
> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation.
>
> C:\apache-ofbiz-16.11.03>
>
> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
> C:\apache-ofbiz-16.11.03
> and
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
>
> Then I ran
> gradlew cleanAll loadDefault
>
> The message was
> :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_151\bin\java.exe''
>> finished with non-zero exit value 1
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>
> BUILD FAILED
>
> I ran
> gradlew cleanAll loadDefault –stacktrace
>
> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
> :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads
> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput
> :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
>         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:335)
>         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_151\bin\java.exe''
>> finished with non-zero exit value 1
>
> * Try:
> Run with --info or --debug option to get more log output.
>
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
> cuteActions(ExecuteActionsTaskExecuter.java:69)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
> cute(ExecuteActionsTaskExecuter.java:46)
>         at
> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecu
> ter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>         at
> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execu
> te(SkipUpToDateTaskExecuter.java:68)
>         at
> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute
> (ValidatingTaskExecuter.java:58)
>         at
> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecut
> er.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>         at
> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.
> execute(SkipTaskWithNoActionsExecuter.java:52)
>         at
> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute
> (SkipOnlyIfTaskExecuter.java:53)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.
> execute(ExecuteAtMostOnceTaskExecuter.java:43)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTas
> kWorker.execute(DefaultTaskGraphExecuter.java:203)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTas
> kWorker.execute(DefaultTaskGraphExecuter.java:185)
>         at
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWo
> rker.processTask(AbstractTaskPlanExecutor.java:66)
>         at
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWo
> rker.run(AbstractTaskPlanExecutor.java:50)
>         at
> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Default
> TaskPlanExecutor.java:25)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defaul
> tTaskGraphExecuter.java:110)
>         at
> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskE
> xecutionAction.java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
> .java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecu
> ter.java:23)
>         at
> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecut
> er.java:43)
>         at
> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExe
> cutionAction.java:32)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
> .java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
> .java:30)
>         at
> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLau
> ncher.java:154)
>         at org.gradle.internal.Factories$1.create(Factories.java:22)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
> BuildOperationExecutor.java:90)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
> BuildOperationExecutor.java:52)
>         at
> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultG
> radleLauncher.java:151)
>         at
> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGrad
> leLauncher.java:32)
>         at
> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradle
> Launcher.java:99)
>         at
> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradle
> Launcher.java:93)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
> BuildOperationExecutor.java:90)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
> BuildOperationExecutor.java:62)
>         at
> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleL
> auncher.java:93)
>         at
> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaunc
> her.java:82)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCont
> roller.run(InProcessBuildActionExecuter.java:94)
>         at
> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exec
> uteBuildActionRunner.java:28)
>         at
> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildAc
> tionRunner.java:35)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProces
> sBuildActionExecuter.java:43)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProces
> sBuildActionExecuter.java:28)
>         at
> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Continu
> ousBuildActionExecuter.java:81)
>         at
> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Continu
> ousBuildActionExecuter.java:46)
>         at
> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exec
> ute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>         at
> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exec
> ute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>         at
> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>         at
> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java
> :173)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.e
> xecute(CommandLineActionFactory.java:241)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.e
> xecute(CommandLineActionFactory.java:214)
>         at
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntim
> eValidationAction.java:35)
>         at
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntim
> eValidationAction.java:24)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(C
> ommandLineActionFactory.java:207)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(C
> ommandLineActionFactory.java:169)
>         at
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRepo
> rtingAction.java:33)
>         at
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRepo
> rtingAction.java:22)
>         at org.gradle.launcher.Main.doAction(Main.java:33)
>         at
> org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>         at
> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootst
> rap.java:55)
>         at
> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.ja
> va:36)
>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>         at
> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.jav
> a:30)
>         at
> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>         at
> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
> Caused by: org.gradle.process.internal.ExecException: Process 'command
> 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with
> non-zero exit value 1
>         at
> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNor
> malExitValue(DefaultExecHandle.java:367)
>         at
> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaE
> xecAction.java:31)
>         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>         at
> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
> ctory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.jav
> a:228)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
> 221)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
> 210)
>         at
> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstrac
> tTask.java:585)
>         at
> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstrac
> tTask.java:568)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
> cuteAction(ExecuteActionsTaskExecuter.java:80)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
> cuteActions(ExecuteActionsTaskExecuter.java:61)
>         ... 60 more
>
>
> BUILD FAILED
>
> Total time: 3 mins 49.412 secs
>
> C:\apache-ofbiz-16.11.03>
>
>
> Any suggestions?
>
> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
> Von: "Jacques Le Roux" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Forgot
> to say that we can see
>
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> that's why I believe Gradle found the JDK.
>
> But then why Gradle can't find the Apache Commons ParseException class
> :-\
>
> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>
> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>
> Jacques
>
>
> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>> I see actually you don't need it OOTB.
>>
>> Most of the time simply it's simply a shortcut to name the directory
>> where you have installed OFBiz
>>
>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>
>> Also for Christian the problem can't be the definition of JAVA_HOME
>> since he gets Gradle to run and got this message
>>
>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>> finished with non-zero exit value 1
>>
>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>
>> But maybe there is a confusion we can't see (I use Windows 7)
>>
>> I'd try to uninstall the JRE and have only the JDK installed to avoid
>> any confusion
>>
>> HTH
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>> List of docs that reference OFBIZ_HOME:
>>>
>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&
>>> spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/con
>>> fluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString
>>> =OFBIZ_HOME]
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Boyden, Timothy [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:42 PM
>>> To: [hidden email]
>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>
>>> -Tim
>>>
>>> -----Original Message-----
>>> From: Jacques Le Roux [mailto:[hidden email]]
>>> Sent: Friday, December 22, 2017 12:04 PM
>>> To: [hidden email]
>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>
>>> Hi Tim,
>>>
>>> Why do you define OFBIZ_HOME?
>>>
>>> Jacques
>>>
>>>
>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>> Hi Christian,
>>>>
>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>
>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[htt
>>>> ps://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][https
>>>> ://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://
>>>> www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]
>>>>
>>>> Follow the instructions in the above to set:
>>>>
>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>> C:\apache-ofbiz-16.11.03
>>>>
>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>
>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>
>>>> Then try recompiling.
>>>>
>>>> -Tim
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>> To: [hidden email]
>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hello all,
>>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried
>>>> any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>    What I did for example is:
>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>> Files\Java\jre1.8.0_151
>>>>    I used the commands gradlew cleanAll loadDefault or gradlew
>>>> loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
>>>> All I am getting is:
>>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean
>>>> :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>>>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>>>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>>>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs
>>>> :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll
>>>> :compileJava
>>>> Note: Some input files use unchecked or unsafe operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> :processResources
>>>> :classes
>>>> :jar
>>>> :assemble
>>>> :compileTestJava
>>>> :processTestResources UP-TO-DATE
>>>> :testClasses
>>>> :test
>>>> :check
>>>> :build
>>>> :ofbiz --load-data
>>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> org/apache/commons/cli/ParseException
>>>> 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:335)
>>>> 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_151\bin\java.exe''
>>>>> finished with non-zero exit value 1
>>>>    * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>    BUILD FAILED
>>>>    Total time: 2 mins 54.909 secs
>>>>    C:\apache-ofbiz-16.11.03>
>>>>    It seems that there might be a problem with windows 10.
>>>> Does someone have a solution?
>>>> Thanks a lot.
>>>> Greetings from Switzerland,
>>>> Christian
>>
>

 
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Michael Brohl-3
You also run the tasks all in one, Gradle executes all necessary dependend tasks by itself.

No need to run them one-by-one.

--
Michael Brohl
Geschäftsführer

Fon   +49 521 448 157-91
Fax   +49 521 448 157-99
Mobil +49 160 3664918

Company and Management Headquarters:
ecomify GmbH, Gustav-Winkler-Straße 22, 33699 Bielefeld, Deutschland
Fon: +49 521 448157-90, Fax: +49 521 448157-99, www.ecomify.de

Court Registration: Amtsgericht Bielefeld HRB 41683
Chief Executive Officer: Martin Becker, Michael Brohl

> Am 24.12.2017 um 14:26 schrieb Boyden, Timothy <[hidden email]>:
>
> Christian,
>
> The first step after unpacking the OFBiz zip file, is to run "gradlew" by itself. That downloads all of the libraries and does an initial build of OFBiz.
>
> Then you would run the "gradlew loadDefault" to load the data into default Derby database.
>
> Then you would run "gradlew ofbiz" to run the application.
>
> -Tim
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Sunday, December 24, 2017 8:18 AM
> To: [hidden email]
> Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hi Michael,
> Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
> First, get Java JDK.
> So, I got Java and saved it to
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
> Second, get the latest OFBiz version.
> I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip the very first link to download the latest version.
> I saved it to
> C:\apache-ofbiz-16.11.03
> Then I ran the following command line
> gradlew cleanAll loadDefault
> I have tried
> gradlew loadDefault ofbiz previously with the same result.
> And as Jacques suggested
> -- stacktrace
>  
> I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
>  
> That is all I did. No additional moving around, no programming – nothing.
> I have no clue what I could have done wrong.
>  
> I am grateful for your help.
> Thanks a lot.
> Christian
>
>  
>
> Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
> Von: "Michael Brohl" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Christian,
>
> there is no need to uninstall Java/OFbiz when there is just a missing JAVA_HOME environment variable. Just point this variable to the correct Java home directory.
>
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>
> OFBIZ_HOME is not needed at all, the Gradle build detects everything on its own.
>
> I recommend reading the README.md in the project's root folder. It describes every step you need to run OFBiz.
>
> NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system.
>
> Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this.
>
> If your Gradle cache is messy, please consider removing the contents in the .gradle folder in your user home directory and execute "gradlew cleanAll loadDefault ofbiz" again. You should see a lot of additional libaries be downloaded during the build which may take a while.
>
> Hope this helps,
>
> Regards,
>
> Michael Brohl
> ecomify GmbH
> www.ecomify.de[http://www.ecomify.de]
>
>> Am 23.12.17 um 21:25 schrieb Christian Vetterli:
>> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
>> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
>> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03 I
>> received the following message:
>> C:\>cd apache-ofbiz-16.11.03
>>
>> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>>
>> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>>
>> Please set the JAVA_HOME variable in your environment to match the
>> location of your Java installation.
>>
>> C:\apache-ofbiz-16.11.03>
>>
>> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
>> C:\apache-ofbiz-16.11.03
>> and
>> C:\Program Files\Java\jdk1.8.0_151
>> C:\Program Files\Java\jre1.8.0_151
>>
>> Then I ran
>> gradlew cleanAll loadDefault
>>
>> The message was
>> :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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>
>> BUILD FAILED
>>
>> I ran
>> gradlew cleanAll loadDefault –stacktrace
>>
>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
>> :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput
>> :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> :processResources
>> :classes
>> :jar
>> :assemble
>> :compileTestJava
>> :processTestResources UP-TO-DATE
>> :testClasses
>> :test
>> :check
>> :build
>> :ofbiz --load-data
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/cli/ParseException
>>         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:335)
>>         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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --info or --debug option to get more log output.
>>
>> * Exception is:
>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
>> cuteActions(ExecuteActionsTaskExecuter.java:69)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
>> cute(ExecuteActionsTaskExecuter.java:46)
>>         at
>> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecu
>> ter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execu
>> te(SkipUpToDateTaskExecuter.java:68)
>>         at
>> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute
>> (ValidatingTaskExecuter.java:58)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecut
>> er.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.
>> execute(SkipTaskWithNoActionsExecuter.java:52)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute
>> (SkipOnlyIfTaskExecuter.java:53)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.
>> execute(ExecuteAtMostOnceTaskExecuter.java:43)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTas
>> kWorker.execute(DefaultTaskGraphExecuter.java:203)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTas
>> kWorker.execute(DefaultTaskGraphExecuter.java:185)
>>         at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWo
>> rker.processTask(AbstractTaskPlanExecutor.java:66)
>>         at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWo
>> rker.run(AbstractTaskPlanExecutor.java:50)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Default
>> TaskPlanExecutor.java:25)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defaul
>> tTaskGraphExecuter.java:110)
>>         at
>> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskE
>> xecutionAction.java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
>> .java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecu
>> ter.java:23)
>>         at
>> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecut
>> er.java:43)
>>         at
>> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExe
>> cutionAction.java:32)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
>> .java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter
>> .java:30)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLau
>> ncher.java:154)
>>         at org.gradle.internal.Factories$1.create(Factories.java:22)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
>> BuildOperationExecutor.java:90)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
>> BuildOperationExecutor.java:52)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultG
>> radleLauncher.java:151)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGrad
>> leLauncher.java:32)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradle
>> Launcher.java:99)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradle
>> Launcher.java:93)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
>> BuildOperationExecutor.java:90)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Default
>> BuildOperationExecutor.java:62)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleL
>> auncher.java:93)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaunc
>> her.java:82)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCont
>> roller.run(InProcessBuildActionExecuter.java:94)
>>         at
>> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exec
>> uteBuildActionRunner.java:28)
>>         at
>> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildAc
>> tionRunner.java:35)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProces
>> sBuildActionExecuter.java:43)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProces
>> sBuildActionExecuter.java:28)
>>         at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Continu
>> ousBuildActionExecuter.java:81)
>>         at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Continu
>> ousBuildActionExecuter.java:46)
>>         at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exec
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>>         at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exec
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>>         at
>> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>>         at
>> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java
>> :173)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.e
>> xecute(CommandLineActionFactory.java:241)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.e
>> xecute(CommandLineActionFactory.java:214)
>>         at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntim
>> eValidationAction.java:35)
>>         at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntim
>> eValidationAction.java:24)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(C
>> ommandLineActionFactory.java:207)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(C
>> ommandLineActionFactory.java:169)
>>         at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRepo
>> rtingAction.java:33)
>>         at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRepo
>> rtingAction.java:22)
>>         at org.gradle.launcher.Main.doAction(Main.java:33)
>>         at
>> org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>>         at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootst
>> rap.java:55)
>>         at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.ja
>> va:36)
>>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>>         at
>> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.jav
>> a:30)
>>         at
>> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>>         at
>> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>> Caused by: org.gradle.process.internal.ExecException: Process 'command
>> 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with
>> non-zero exit value 1
>>         at
>> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNor
>> malExitValue(DefaultExecHandle.java:367)
>>         at
>> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaE
>> xecAction.java:31)
>>         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>>         at
>> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
>> ctory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.jav
>> a:228)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 221)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFa
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 210)
>>         at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstrac
>> tTask.java:585)
>>         at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstrac
>> tTask.java:568)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
>> cuteAction(ExecuteActionsTaskExecuter.java:80)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exe
>> cuteActions(ExecuteActionsTaskExecuter.java:61)
>>         ... 60 more
>>
>>
>> BUILD FAILED
>>
>> Total time: 3 mins 49.412 secs
>>
>> C:\apache-ofbiz-16.11.03>
>>
>>
>> Any suggestions?
>>
>> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
>> Von: "Jacques Le Roux" <[hidden email]>
>> An: [hidden email]
>> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Forgot
>> to say that we can see
>>
>> :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>>
>> that's why I believe Gradle found the JDK.
>>
>> But then why Gradle can't find the Apache Commons ParseException class
>> :-\
>>
>> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>>
>> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>>
>> Jacques
>>
>>
>>> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>>> I see actually you don't need it OOTB.
>>>
>>> Most of the time simply it's simply a shortcut to name the directory
>>> where you have installed OFBiz
>>>
>>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>>
>>> Also for Christian the problem can't be the definition of JAVA_HOME
>>> since he gets Gradle to run and got this message
>>>
>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>>
>>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>>
>>> But maybe there is a confusion we can't see (I use Windows 7)
>>>
>>> I'd try to uninstall the JRE and have only the JDK installed to avoid
>>> any confusion
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>>> List of docs that reference OFBIZ_HOME:
>>>>
>>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&
>>>> spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/con
>>>> fluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString
>>>> =OFBIZ_HOME]
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Boyden, Timothy [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:42 PM
>>>> To: [hidden email]
>>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:04 PM
>>>> To: [hidden email]
>>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hi Tim,
>>>>
>>>> Why do you define OFBIZ_HOME?
>>>>
>>>> Jacques
>>>>
>>>>
>>>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>>> Hi Christian,
>>>>>
>>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>>
>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[htt
>>>>> ps://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][https
>>>>> ://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://
>>>>> www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]
>>>>>
>>>>> Follow the instructions in the above to set:
>>>>>
>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>>> C:\apache-ofbiz-16.11.03
>>>>>
>>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>>
>>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>>
>>>>> Then try recompiling.
>>>>>
>>>>> -Tim
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>>> To: [hidden email]
>>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>>
>>>>> Hello all,
>>>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried
>>>>> any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>>    What I did for example is:
>>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>>> Files\Java\jre1.8.0_151
>>>>>    I used the commands gradlew cleanAll loadDefault or gradlew
>>>>> loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
>>>>> All I am getting is:
>>>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean
>>>>> :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>>>>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>>>>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>>>>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs
>>>>> :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll
>>>>> :compileJava
>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>> :processResources
>>>>> :classes
>>>>> :jar
>>>>> :assemble
>>>>> :compileTestJava
>>>>> :processTestResources UP-TO-DATE
>>>>> :testClasses
>>>>> :test
>>>>> :check
>>>>> :build
>>>>> :ofbiz --load-data
>>>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org/apache/commons/cli/ParseException
>>>>> 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:335)
>>>>> 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_151\bin\java.exe''
>>>>>> finished with non-zero exit value 1
>>>>>    * Try:
>>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>>    BUILD FAILED
>>>>>    Total time: 2 mins 54.909 secs
>>>>>    C:\apache-ofbiz-16.11.03>
>>>>>    It seems that there might be a problem with windows 10.
>>>>> Does someone have a solution?
>>>>> Thanks a lot.
>>>>> Greetings from Switzerland,
>>>>> Christian
>>>
>>
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Michael Brohl-3
In reply to this post by Christian Vetterli
Christian,

can you provide the output of the two commands I provided in my last
message?

Does your JAV_HOME point to the JDK (the JRE is not sufficient)?

Did you unpack the release zip in the folder and did you cd to the OFBiz
root folder where the README is located? These steps where not mentioned
in your description.

Do you see the dependency jars downloading during the first build? If
not, have you cleared the .gradle folder as I suggested?

It's pretty straight forward to download an run OFBiz OOTB so there must
be something on your side.

Regards,

Michael


Am 24.12.17 um 14:17 schrieb Christian Vetterli:

> Hi Michael,
> Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
> First, get Java JDK.
> So, I got Java and saved it to
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
> Second, get the latest OFBiz version.
> I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip the very first link to download the latest version.
> I saved it to
> C:\apache-ofbiz-16.11.03
> Then I ran the following command line
> gradlew cleanAll loadDefault
> I have tried
> gradlew loadDefault ofbiz previously with the same result.
> And as Jacques suggested
> -- stacktrace
>  
> I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
>  
> That is all I did. No additional moving around, no programming – nothing.
> I have no clue what I could have done wrong.
>  
> I am grateful for your help.
> Thanks a lot.
> Christian
>
>  
>
> Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
> Von: "Michael Brohl" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> Hi Christian,
>
> there is no need to uninstall Java/OFbiz when there is just a missing
> JAVA_HOME environment variable. Just point this variable to the correct
> Java home directory.
>
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>
> OFBIZ_HOME is not needed at all, the Gradle build detects everything on
> its own.
>
> I recommend reading the README.md in the project's root folder. It
> describes every step you need to run OFBiz.
>
> NoClassDefFoundError: It seems that you don't have the necessary
> dependencies installed on your system.
>
> Please notice that the library dependencies are (intentionally) not
> delivered together with the release. They should be automatically
> downloaded by the Gradle build which can take some time for the initial
> build. You will need an internet connection to do this.
>
> If your Gradle cache is messy, please consider removing the contents in
> the .gradle folder in your user home directory and execute "gradlew
> cleanAll loadDefault ofbiz" again. You should see a lot of additional
> libaries be downloaded during the build which may take a while.
>
> Hope this helps,
>
> Regards,
>
> Michael Brohl
> ecomify GmbH
> www.ecomify.de[http://www.ecomify.de]
>
> Am 23.12.17 um 21:25 schrieb Christian Vetterli:
>> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
>> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
>> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03
>> I received the following message:
>> C:\>cd apache-ofbiz-16.11.03
>>
>> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>>
>> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>>
>> Please set the JAVA_HOME variable in your environment to match the
>> location of your Java installation.
>>
>> C:\apache-ofbiz-16.11.03>
>>
>> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
>> C:\apache-ofbiz-16.11.03
>> and
>> C:\Program Files\Java\jdk1.8.0_151
>> C:\Program Files\Java\jre1.8.0_151
>>
>> Then I ran
>> gradlew cleanAll loadDefault
>>
>> The message was
>> :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_151\bin\java.exe'' finished with non-zero exit value 1
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>
>> BUILD FAILED
>>
>> I ran
>> gradlew cleanAll loadDefault –stacktrace
>>
>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
>> :clean
>> :cleanAnt
>> :cleanCatalina
>> :cleanData
>> :cleanDownloads
>> :cleanEclipseClasspath UP-TO-DATE
>> :cleanEclipseJdt UP-TO-DATE
>> :cleanEclipseProject UP-TO-DATE
>> :cleanEclipse UP-TO-DATE
>> :cleanFooterFiles
>> :cleanGradle
>> :cleanIndexes
>> :cleanLogs
>> :cleanOutput
>> :cleanTempfiles
>> :cleanUploads
>> :cleanXtra
>> :cleanAll
>> :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> :processResources
>> :classes
>> :jar
>> :assemble
>> :compileTestJava
>> :processTestResources UP-TO-DATE
>> :testClasses
>> :test
>> :check
>> :build
>> :ofbiz --load-data
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
>>          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:335)
>>          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_151\bin\java.exe'' finished with non-zero exit value 1
>> * Try:
>> Run with --info or --debug option to get more log output.
>>
>> * Exception is:
>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
>>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
>>          at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>>          at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
>>          at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
>>          at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>>          at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
>>          at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
>>          at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
>>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
>>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
>>          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
>>          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
>>          at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
>>          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
>>          at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
>>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>>          at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
>>          at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
>>          at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
>>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>>          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
>>          at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
>>          at org.gradle.internal.Factories$1.create(Factories.java:22)
>>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
>>          at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
>>          at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
>>          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
>>          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
>>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>>          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
>>          at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
>>          at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
>>          at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
>>          at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
>>          at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
>>          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
>>          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
>>          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
>>          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
>>          at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>>          at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>>          at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>>          at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
>>          at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
>>          at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
>>          at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
>>          at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
>>          at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
>>          at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
>>          at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
>>          at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
>>          at org.gradle.launcher.Main.doAction(Main.java:33)
>>          at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>>          at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
>>          at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
>>          at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>>          at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
>>          at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>>          at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>> Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished with non-zero exit value 1
>>          at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
>>          at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
>>          at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>>          at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
>>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
>>          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
>>          at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
>>          at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
>>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
>>          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
>>          ... 60 more
>>
>>
>> BUILD FAILED
>>
>> Total time: 3 mins 49.412 secs
>>
>> C:\apache-ofbiz-16.11.03>
>>
>>
>> Any suggestions?
>>
>> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
>> Von: "Jacques Le Roux" <[hidden email]>
>> An: [hidden email]
>> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>> Forgot to say that we can see
>>
>> :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>>
>> that's why I believe Gradle found the JDK.
>>
>> But then why Gradle can't find the Apache Commons ParseException class :-\
>>
>> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>>
>> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>>
>> Jacques
>>
>>
>> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>>> I see actually you don't need it OOTB.
>>>
>>> Most of the time simply it's simply a shortcut to name the directory where you have installed OFBiz
>>>
>>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>>
>>> Also for Christian the problem can't be the definition of JAVA_HOME since he gets Gradle to run and got this message
>>>
>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>>
>>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>>
>>> But maybe there is a confusion we can't see (I use Windows 7)
>>>
>>> I'd try to uninstall the JRE and have only the JDK installed to avoid any confusion
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>>> List of docs that reference OFBIZ_HOME:
>>>>
>>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryString=OFBIZ_HOME]
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Boyden, Timothy [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:42 PM
>>>> To: [hidden email]
>>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:04 PM
>>>> To: [hidden email]
>>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hi Tim,
>>>>
>>>> Why do you define OFBIZ_HOME?
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>>> Hi Christian,
>>>>>
>>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>>
>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]
>>>>>
>>>>> Follow the instructions in the above to set:
>>>>>
>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>>> C:\apache-ofbiz-16.11.03
>>>>>
>>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>>
>>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>>
>>>>> Then try recompiling.
>>>>>
>>>>> -Tim
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>>> To: [hidden email]
>>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>>
>>>>> Hello all,
>>>>> I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All
>>>>> currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>>     What I did for example is:
>>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>>> Files\Java\jre1.8.0_151
>>>>>     I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition,
>>>>> I tried the latest version of Java.
>>>>> All I am getting is:
>>>>>     C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean :cleanAnt
>>>>> :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath
>>>>> UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE
>>>>> :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes
>>>>> :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra
>>>>> :cleanAll :compileJava
>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>> :processResources
>>>>> :classes
>>>>> :jar
>>>>> :assemble
>>>>> :compileTestJava
>>>>> :processTestResources UP-TO-DATE
>>>>> :testClasses
>>>>> :test
>>>>> :check
>>>>> :build
>>>>> :ofbiz --load-data
>>>>>     Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org/apache/commons/cli/ParseException
>>>>> 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:335)
>>>>> 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_151\bin\java.exe''
>>>>>> finished with non-zero exit value 1
>>>>>     * Try:
>>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>>     BUILD FAILED
>>>>>     Total time: 2 mins 54.909 secs
>>>>>     C:\apache-ofbiz-16.11.03>
>>>>>     It seems that there might be a problem with windows 10.
>>>>> Does someone have a solution?
>>>>> Thanks a lot.
>>>>> Greetings from Switzerland,
>>>>> Christian
>  


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Boyden, Timothy
In reply to this post by Michael Brohl-3
That should be how it works, but I have run into weird issues like Christian has, when I don't run them individually. I had the best luck following the directions listed in the Technical Documentation version of the "Quick & Easy" setup instructions (https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide#DemoandTestSetupGuide-Quick&EasySetup), which list the steps separately.

-Tim

-----Original Message-----
From: Michael Brohl [mailto:[hidden email]]
Sent: Sunday, December 24, 2017 8:37 AM
To: [hidden email]
Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

You also run the tasks all in one, Gradle executes all necessary dependend tasks by itself.

No need to run them one-by-one.

--
Michael Brohl
Geschäftsführer

Fon   +49 521 448 157-91
Fax   +49 521 448 157-99
Mobil +49 160 3664918

Company and Management Headquarters:
ecomify GmbH, Gustav-Winkler-Straße 22, 33699 Bielefeld, Deutschland
Fon: +49 521 448157-90, Fax: +49 521 448157-99, www.ecomify.de

Court Registration: Amtsgericht Bielefeld HRB 41683 Chief Executive Officer: Martin Becker, Michael Brohl

> Am 24.12.2017 um 14:26 schrieb Boyden, Timothy <[hidden email]>:
>
> Christian,
>
> The first step after unpacking the OFBiz zip file, is to run "gradlew" by itself. That downloads all of the libraries and does an initial build of OFBiz.
>
> Then you would run the "gradlew loadDefault" to load the data into default Derby database.
>
> Then you would run "gradlew ofbiz" to run the application.
>
> -Tim
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Sunday, December 24, 2017 8:18 AM
> To: [hidden email]
> Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hi Michael,
> Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
> First, get Java JDK.
> So, I got Java and saved it to
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
> Second, get the latest OFBiz version.
> I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip the very first link to download the latest version.
> I saved it to
> C:\apache-ofbiz-16.11.03
> Then I ran the following command line
> gradlew cleanAll loadDefault
> I have tried
> gradlew loadDefault ofbiz previously with the same result.
> And as Jacques suggested
> -- stacktrace
>  
> I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
>  
> That is all I did. No additional moving around, no programming – nothing.
> I have no clue what I could have done wrong.
>  
> I am grateful for your help.
> Thanks a lot.
> Christian
>
>  
>
> Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
> Von: "Michael Brohl" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi
> Christian,
>
> there is no need to uninstall Java/OFbiz when there is just a missing JAVA_HOME environment variable. Just point this variable to the correct Java home directory.
>
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>
> OFBIZ_HOME is not needed at all, the Gradle build detects everything on its own.
>
> I recommend reading the README.md in the project's root folder. It describes every step you need to run OFBiz.
>
> NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system.
>
> Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this.
>
> If your Gradle cache is messy, please consider removing the contents in the .gradle folder in your user home directory and execute "gradlew cleanAll loadDefault ofbiz" again. You should see a lot of additional libaries be downloaded during the build which may take a while.
>
> Hope this helps,
>
> Regards,
>
> Michael Brohl
> ecomify GmbH
> www.ecomify.de[http://www.ecomify.de]
>
>> Am 23.12.17 um 21:25 schrieb Christian Vetterli:
>> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
>> I uninstalled java  JRE and left C:\Program Files\Java\jdk1.8.0_151
>> OFBiz is still at the same location  C:\apache-ofbiz-16.11.03 I
>> received the following message:
>> C:\>cd apache-ofbiz-16.11.03
>>
>> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>>
>> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>>
>> Please set the JAVA_HOME variable in your environment to match the
>> location of your Java installation.
>>
>> C:\apache-ofbiz-16.11.03>
>>
>> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
>> C:\apache-ofbiz-16.11.03
>> and
>> C:\Program Files\Java\jdk1.8.0_151
>> C:\Program Files\Java\jre1.8.0_151
>>
>> Then I ran
>> gradlew cleanAll loadDefault
>>
>> The message was
>> :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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>
>> BUILD FAILED
>>
>> I ran
>> gradlew cleanAll loadDefault –stacktrace
>>
>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
>> :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput
>> :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> :processResources
>> :classes
>> :jar
>> :assemble
>> :compileTestJava
>> :processTestResources UP-TO-DATE
>> :testClasses
>> :test
>> :check
>> :build
>> :ofbiz --load-data
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/cli/ParseException
>>         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:335)
>>         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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --info or --debug option to get more log output.
>>
>> * Exception is:
>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteActions(ExecuteActionsTaskExecuter.java:69)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cute(ExecuteActionsTaskExecuter.java:46)
>>         at
>> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec
>> u
>> ter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
>> u
>> te(SkipUpToDateTaskExecuter.java:68)
>>         at
>> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
>> e
>> (ValidatingTaskExecuter.java:58)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
>> t
>> er.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.
>> execute(SkipTaskWithNoActionsExecuter.java:52)
>>         at
>> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
>> e
>> (SkipOnlyIfTaskExecuter.java:53)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.
>> execute(ExecuteAtMostOnceTaskExecuter.java:43)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
>> s
>> kWorker.execute(DefaultTaskGraphExecuter.java:203)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
>> s
>> kWorker.execute(DefaultTaskGraphExecuter.java:185)
>>         at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
>> o
>> rker.processTask(AbstractTaskPlanExecutor.java:66)
>>         at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
>> o
>> rker.run(AbstractTaskPlanExecutor.java:50)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul
>> t
>> TaskPlanExecutor.java:25)
>>         at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau
>> l
>> tTaskGraphExecuter.java:110)
>>         at
>> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
>> E
>> xecutionAction.java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExec
>> u
>> ter.java:23)
>>         at
>> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecu
>> t
>> er.java:43)
>>         at
>> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
>> e
>> cutionAction.java:32)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:37)
>>         at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:30)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLa
>> u
>> ncher.java:154)
>>         at org.gradle.internal.Factories$1.create(Factories.java:22)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:90)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:52)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
>> G
>> radleLauncher.java:151)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
>> d
>> leLauncher.java:32)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
>> e
>> Launcher.java:99)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
>> e
>> Launcher.java:93)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:90)
>>         at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:62)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
>> L
>> auncher.java:93)
>>         at
>> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
>> c
>> her.java:82)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
>> t
>> roller.run(InProcessBuildActionExecuter.java:94)
>>         at
>> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
>> c
>> uteBuildActionRunner.java:28)
>>         at
>> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
>> c
>> tionRunner.java:35)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
>> s
>> sBuildActionExecuter.java:43)
>>         at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
>> s
>> sBuildActionExecuter.java:28)
>>         at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
>> u
>> ousBuildActionExecuter.java:81)
>>         at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
>> u
>> ousBuildActionExecuter.java:46)
>>         at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
>> c
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>>         at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
>> c
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>>         at
>> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>>         at
>> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
>> a
>> :173)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
>> e
>> xecute(CommandLineActionFactory.java:241)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
>> e
>> xecute(CommandLineActionFactory.java:214)
>>         at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
>> m
>> eValidationAction.java:35)
>>         at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
>> m
>> eValidationAction.java:24)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
>> C
>> ommandLineActionFactory.java:207)
>>         at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
>> C
>> ommandLineActionFactory.java:169)
>>         at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
>> o
>> rtingAction.java:33)
>>         at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
>> o
>> rtingAction.java:22)
>>         at org.gradle.launcher.Main.doAction(Main.java:33)
>>         at
>> org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>>         at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
>> t
>> rap.java:55)
>>         at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
>> a
>> va:36)
>>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>>         at
>> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
>> v
>> a:30)
>>         at
>> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>>         at
>> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>> Caused by: org.gradle.process.internal.ExecException: Process
>> 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished
>> with non-zero exit value 1
>>         at
>> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNo
>> r
>> malExitValue(DefaultExecHandle.java:367)
>>         at
>> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJava
>> E
>> xecAction.java:31)
>>         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>>         at
>> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.ja
>> v
>> a:228)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 221)
>>         at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 210)
>>         at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
>> c
>> tTask.java:585)
>>         at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
>> c
>> tTask.java:568)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteAction(ExecuteActionsTaskExecuter.java:80)
>>         at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteActions(ExecuteActionsTaskExecuter.java:61)
>>         ... 60 more
>>
>>
>> BUILD FAILED
>>
>> Total time: 3 mins 49.412 secs
>>
>> C:\apache-ofbiz-16.11.03>
>>
>>
>> Any suggestions?
>>
>> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
>> Von: "Jacques Le Roux" <[hidden email]>
>> An: [hidden email]
>> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>> Forgot to say that we can see
>>
>> :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>>
>> that's why I believe Gradle found the JDK.
>>
>> But then why Gradle can't find the Apache Commons ParseException
>> class :-\
>>
>> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95):  compile 'commons-cli:commons-cli:1.3.1'
>>
>> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>>
>> Jacques
>>
>>
>>> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>>> I see actually you don't need it OOTB.
>>>
>>> Most of the time simply it's simply a shortcut to name the directory
>>> where you have installed OFBiz
>>>
>>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>>
>>> Also for Christian the problem can't be the definition of JAVA_HOME
>>> since he gets Gradle to run and got this message
>>>
>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>>
>>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>>
>>> But maybe there is a confusion we can't see (I use Windows 7)
>>>
>>> I'd try to uninstall the JRE and have only the JDK installed to
>>> avoid any confusion
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>>> List of docs that reference OFBIZ_HOME:
>>>>
>>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ
>>>> &
>>>> spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/co
>>>> n
>>>> fluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryStrin
>>>> g
>>>> =OFBIZ_HOME]
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Boyden, Timothy [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:42 PM
>>>> To: [hidden email]
>>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:04 PM
>>>> To: [hidden email]
>>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hi Tim,
>>>>
>>>> Why do you define OFBIZ_HOME?
>>>>
>>>> Jacques
>>>>
>>>>
>>>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>>> Hi Christian,
>>>>>
>>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>>
>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[ht
>>>>> t
>>>>> ps://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][http
>>>>> s
>>>>> ://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https:/
>>>>> / www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]
>>>>>
>>>>> Follow the instructions in the above to set:
>>>>>
>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>>> C:\apache-ofbiz-16.11.03
>>>>>
>>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>>
>>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>>
>>>>> Then try recompiling.
>>>>>
>>>>> -Tim
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>>> To: [hidden email]
>>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>>
>>>>> Hello all,
>>>>> I do not get OFBiz istalled on my Windows 10 computer. I have
>>>>> tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>>    What I did for example is:
>>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>>> Files\Java\jre1.8.0_151
>>>>>    I used the commands gradlew cleanAll loadDefault or gradlew
>>>>> loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
>>>>> All I am getting is:
>>>>>    C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean
>>>>> :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>>>>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>>>>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>>>>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs
>>>>> :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll
>>>>> :compileJava
>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>> :processResources
>>>>> :classes
>>>>> :jar
>>>>> :assemble
>>>>> :compileTestJava
>>>>> :processTestResources UP-TO-DATE
>>>>> :testClasses
>>>>> :test
>>>>> :check
>>>>> :build
>>>>> :ofbiz --load-data
>>>>>    Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org/apache/commons/cli/ParseException
>>>>> 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:335)
>>>>> 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_151\bin\java.exe''
>>>>>> finished with non-zero exit value 1
>>>>>    * Try:
>>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>>    BUILD FAILED
>>>>>    Total time: 2 mins 54.909 secs
>>>>>    C:\apache-ofbiz-16.11.03>
>>>>>    It seems that there might be a problem with windows 10.
>>>>> Does someone have a solution?
>>>>> Thanks a lot.
>>>>> Greetings from Switzerland,
>>>>> Christian
>>>
>>
>
>  
Reply | Threaded
Open this post in threaded view
|

Aw: RE: Cannot install apache-ofbiz-16.11.03 on windows 10

Christian Vetterli
Hi Tim and Michael,
Thank you for your input.
I tried Tim’s suggestion.
Firstly, just to be sure I uninstalled apache-ofbiz-16.11.03 and load a fresh one. I unzipped it to
C:\apache-ofbiz-16.11.03
and started the command
gradlew
It was successful
C:\apache-ofbiz-16.11.03>gradlew
:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
 
BUILD SUCCESSFUL
 
Total time: 2 mins 29.11 secs
 
Then, I ran
gradlew loadDefault
 
It failed. The following output came.
C:\apache-ofbiz-16.11.03>gradlew loadDefault
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:assemble UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build UP-TO-DATE
: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:335)
        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_151\bin\java.exe'' finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
Total time: 23.005 secs
 
I stopped here.
 
To Michaels questions.

“can you provide the output of the two commands I provided in my last
message?

Does your JAV_HOME point to the JDK (the JRE is not sufficient)?

Did you unpack the release zip in the folder and did you cd to the OFBiz
root folder where the README is located? These steps where not mentioned
in your description.

Do you see the dependency jars downloading during the first build? If
not, have you cleared the .gradle folder as I suggested?

It's pretty straight forward to download an run OFBiz OOTB so there must
be something on your side.”
 
My answers:
Yes, I always did unzip OFBiz to the c drive, where also is the README location.
I do not know what you mean with “Does your JAV_HOME point to the JDK (the JRE is not sufficient)?”. I did not do anything else than loading Java and OFBiz (unpacked) to the known locations and ran the commands.
Sadly again, I do not have an answer to “Do you see the dependency jars downloading during the first build? If not, have you cleared the .gradle folder as I suggested?”
I hope that the above outputs will answer your question.
To your last statement:
“It's pretty straight forward to download an run OFBiz OOTB so there must
be something on your side.” I truly hope so. Since it is so simple, just let me know what I possibly could do wrong.
Thank you for your help.
Christian

 

Gesendet: Sonntag, 24. Dezember 2017 um 14:52 Uhr
Von: "Boyden, Timothy" <[hidden email]>
An: "[hidden email]" <[hidden email]>
Betreff: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
That should be how it works, but I have run into weird issues like Christian has, when I don't run them individually. I had the best luck following the directions listed in the Technical Documentation version of the "Quick & Easy" setup instructions (https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide#DemoandTestSetupGuide-Quick&EasySetup), which list the steps separately.

-Tim

-----Original Message-----
From: Michael Brohl [mailto:[hidden email]]
Sent: Sunday, December 24, 2017 8:37 AM
To: [hidden email]
Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

You also run the tasks all in one, Gradle executes all necessary dependend tasks by itself.

No need to run them one-by-one.

--
Michael Brohl
Geschäftsführer

Fon +49 521 448 157-91
Fax +49 521 448 157-99
Mobil +49 160 3664918

Company and Management Headquarters:
ecomify GmbH, Gustav-Winkler-Straße 22, 33699 Bielefeld, Deutschland
Fon: +49 521 448157-90, Fax: +49 521 448157-99, www.ecomify.de[http://www.ecomify.de]

Court Registration: Amtsgericht Bielefeld HRB 41683 Chief Executive Officer: Martin Becker, Michael Brohl

> Am 24.12.2017 um 14:26 schrieb Boyden, Timothy <[hidden email]>:
>
> Christian,
>
> The first step after unpacking the OFBiz zip file, is to run "gradlew" by itself. That downloads all of the libraries and does an initial build of OFBiz.
>
> Then you would run the "gradlew loadDefault" to load the data into default Derby database.
>
> Then you would run "gradlew ofbiz" to run the application.
>
> -Tim
>
> -----Original Message-----
> From: Christian Vetterli [mailto:[hidden email]]
> Sent: Sunday, December 24, 2017 8:18 AM
> To: [hidden email]
> Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> Hi Michael,
> Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward.
> First, get Java JDK.
> So, I got Java and saved it to
> C:\Program Files\Java\jdk1.8.0_151
> C:\Program Files\Java\jre1.8.0_151
> Second, get the latest OFBiz version.
> I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip[https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.03.zip] the very first link to download the latest version.
> I saved it to
> C:\apache-ofbiz-16.11.03
> Then I ran the following command line
> gradlew cleanAll loadDefault
> I have tried
> gradlew loadDefault ofbiz previously with the same result.
> And as Jacques suggested
> -- stacktrace
>
> I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation.
>
> That is all I did. No additional moving around, no programming – nothing.
> I have no clue what I could have done wrong.
>
> I am grateful for your help.
> Thanks a lot.
> Christian
>
>
>
> Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
> Von: "Michael Brohl" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi
> Christian,
>
> there is no need to uninstall Java/OFbiz when there is just a missing JAVA_HOME environment variable. Just point this variable to the correct Java home directory.
>
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>
> OFBIZ_HOME is not needed at all, the Gradle build detects everything on its own.
>
> I recommend reading the README.md in the project's root folder. It describes every step you need to run OFBiz.
>
> NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system.
>
> Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this.
>
> If your Gradle cache is messy, please consider removing the contents in the .gradle folder in your user home directory and execute "gradlew cleanAll loadDefault ofbiz" again. You should see a lot of additional libaries be downloaded during the build which may take a while.
>
> Hope this helps,
>
> Regards,
>
> Michael Brohl
> ecomify GmbH
> www.ecomify.de[http://www.ecomify.de][http://www.ecomify.de[http://www.ecomify.de]]
>
>> Am 23.12.17 um 21:25 schrieb Christian Vetterli:
>> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
>> I uninstalled java JRE and left C:\Program Files\Java\jdk1.8.0_151
>> OFBiz is still at the same location C:\apache-ofbiz-16.11.03 I
>> received the following message:
>> C:\>cd apache-ofbiz-16.11.03
>>
>> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
>>
>> ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
>>
>> Please set the JAVA_HOME variable in your environment to match the
>> location of your Java installation.
>>
>> C:\apache-ofbiz-16.11.03>
>>
>> Next step, I uninstalled Java and OFBiz completely (and just to be sure I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and reinstalled OFBiz 16.11.03 and Java again.
>> C:\apache-ofbiz-16.11.03
>> and
>> C:\Program Files\Java\jdk1.8.0_151
>> C:\Program Files\Java\jre1.8.0_151
>>
>> Then I ran
>> gradlew cleanAll loadDefault
>>
>> The message was
>> :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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>
>> BUILD FAILED
>>
>> I ran
>> gradlew cleanAll loadDefault –stacktrace
>>
>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
>> :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput
>> :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> :processResources
>> :classes
>> :jar
>> :assemble
>> :compileTestJava
>> :processTestResources UP-TO-DATE
>> :testClasses
>> :test
>> :check
>> :build
>> :ofbiz --load-data
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/cli/ParseException
>> 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:335)
>> 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_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>
>> * Try:
>> Run with --info or --debug option to get more log output.
>>
>> * Exception is:
>> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
>> at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteActions(ExecuteActionsTaskExecuter.java:69)
>> at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cute(ExecuteActionsTaskExecuter.java:46)
>> at
>> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec
>> u
>> ter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>> at
>> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
>> u
>> te(SkipUpToDateTaskExecuter.java:68)
>> at
>> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
>> e
>> (ValidatingTaskExecuter.java:58)
>> at
>> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
>> t
>> er.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>> at
>> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.
>> execute(SkipTaskWithNoActionsExecuter.java:52)
>> at
>> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
>> e
>> (SkipOnlyIfTaskExecuter.java:53)
>> at
>> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.
>> execute(ExecuteAtMostOnceTaskExecuter.java:43)
>> at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
>> s
>> kWorker.execute(DefaultTaskGraphExecuter.java:203)
>> at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
>> s
>> kWorker.execute(DefaultTaskGraphExecuter.java:185)
>> at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
>> o
>> rker.processTask(AbstractTaskPlanExecutor.java:66)
>> at
>> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
>> o
>> rker.run(AbstractTaskPlanExecutor.java:50)
>> at
>> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul
>> t
>> TaskPlanExecutor.java:25)
>> at
>> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau
>> l
>> tTaskGraphExecuter.java:110)
>> at
>> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
>> E
>> xecutionAction.java:37)
>> at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:37)
>> at
>> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExec
>> u
>> ter.java:23)
>> at
>> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecu
>> t
>> er.java:43)
>> at
>> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
>> e
>> cutionAction.java:32)
>> at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:37)
>> at
>> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
>> r
>> .java:30)
>> at
>> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLa
>> u
>> ncher.java:154)
>> at org.gradle.internal.Factories$1.create(Factories.java:22)
>> at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:90)
>> at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:52)
>> at
>> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
>> G
>> radleLauncher.java:151)
>> at
>> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
>> d
>> leLauncher.java:32)
>> at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
>> e
>> Launcher.java:99)
>> at
>> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
>> e
>> Launcher.java:93)
>> at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:90)
>> at
>> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
>> t
>> BuildOperationExecutor.java:62)
>> at
>> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
>> L
>> auncher.java:93)
>> at
>> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
>> c
>> her.java:82)
>> at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
>> t
>> roller.run(InProcessBuildActionExecuter.java:94)
>> at
>> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
>> c
>> uteBuildActionRunner.java:28)
>> at
>> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
>> c
>> tionRunner.java:35)
>> at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
>> s
>> sBuildActionExecuter.java:43)
>> at
>> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
>> s
>> sBuildActionExecuter.java:28)
>> at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
>> u
>> ousBuildActionExecuter.java:81)
>> at
>> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
>> u
>> ousBuildActionExecuter.java:46)
>> at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
>> c
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>> at
>> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
>> c
>> ute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>> at
>> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>> at
>> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
>> a
>> :173)
>> at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
>> e
>> xecute(CommandLineActionFactory.java:241)
>> at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
>> e
>> xecute(CommandLineActionFactory.java:214)
>> at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
>> m
>> eValidationAction.java:35)
>> at
>> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
>> m
>> eValidationAction.java:24)
>> at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
>> C
>> ommandLineActionFactory.java:207)
>> at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
>> C
>> ommandLineActionFactory.java:169)
>> at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
>> o
>> rtingAction.java:33)
>> at
>> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
>> o
>> rtingAction.java:22)
>> at org.gradle.launcher.Main.doAction(Main.java:33)
>> at
>> org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>> at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
>> t
>> rap.java:55)
>> at
>> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
>> a
>> va:36)
>> at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>> at
>> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
>> v
>> a:30)
>> at
>> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>> at
>> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>> Caused by: org.gradle.process.internal.ExecException: Process
>> 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished
>> with non-zero exit value 1
>> at
>> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNo
>> r
>> malExitValue(DefaultExecHandle.java:367)
>> at
>> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJava
>> E
>> xecAction.java:31)
>> at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>> at
>> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>> at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.ja
>> v
>> a:228)
>> at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 221)
>> at
>> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
>> a
>> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
>> 210)
>> at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
>> c
>> tTask.java:585)
>> at
>> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
>> c
>> tTask.java:568)
>> at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteAction(ExecuteActionsTaskExecuter.java:80)
>> at
>> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
>> e
>> cuteActions(ExecuteActionsTaskExecuter.java:61)
>> ... 60 more
>>
>>
>> BUILD FAILED
>>
>> Total time: 3 mins 49.412 secs
>>
>> C:\apache-ofbiz-16.11.03>
>>
>>
>> Any suggestions?
>>
>> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
>> Von: "Jacques Le Roux" <[hidden email]>
>> An: [hidden email]
>> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>> Forgot to say that we can see
>>
>> :compileJava
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>>
>> that's why I believe Gradle found the JDK.
>>
>> But then why Gradle can't find the Apache Commons ParseException
>> class :-\
>>
>> which is part commons-cli-1.3.1-sources.jar and declared in build.gradle (line 95): compile 'commons-cli:commons-cli:1.3.1'
>>
>> Please Christian follows Gradle advice: "Run with --stacktrace option to get the stack trace." we may then help you more...
>>
>> Jacques
>>
>>
>>> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
>>> I see actually you don't need it OOTB.
>>>
>>> Most of the time simply it's simply a shortcut to name the directory
>>> where you have installed OFBiz
>>>
>>> In rare specific cases, mostly in few bash scripts, it's used as an environment variable.
>>>
>>> Also for Christian the problem can't be the definition of JAVA_HOME
>>> since he gets Gradle to run and got this message
>>>
>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
>>> finished with non-zero exit value 1
>>>
>>> Which proves Windows knows where the Java JDK is and Gradle uses it, right Christian?
>>>
>>> But maybe there is a confusion we can't see (I use Windows 7)
>>>
>>> I'd try to uninstall the JRE and have only the JDK installed to
>>> avoid any confusion
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
>>>> List of docs that reference OFBIZ_HOME:
>>>>
>>>> https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ[https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBIZ]
>>>> &
>>>> spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.apache.org/co[https://cwiki.apache.org/co]
>>>> n
>>>> fluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryStrin
>>>> g
>>>> =OFBIZ_HOME]
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Boyden, Timothy [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:42 PM
>>>> To: [hidden email]
>>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> I guess it's not needed, but ran across some documents on ofbiz.apache.org that recommend setting it.
>>>>
>>>> -Tim
>>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Friday, December 22, 2017 12:04 PM
>>>> To: [hidden email]
>>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>
>>>> Hi Tim,
>>>>
>>>> Why do you define OFBIZ_HOME?
>>>>
>>>> Jacques
>>>>
>>>>
>>>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
>>>>> Hi Christian,
>>>>>
>>>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME?
>>>>>
>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][ht
>>>>> t
>>>>> ps://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][http
>>>>> s
>>>>> ://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https:/
>>>>> / www.mkyong.com/java/how-to-set-java_home-on-windows-10/[http://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]]
>>>>>
>>>>> Follow the instructions in the above to set:
>>>>>
>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
>>>>> C:\apache-ofbiz-16.11.03
>>>>>
>>>>> Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151.
>>>>>
>>>>> Make sure the application, framework, etc... folders are in the root of C:\apache-ofbiz-16.11.03.
>>>>>
>>>>> Then try recompiling.
>>>>>
>>>>> -Tim
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Christian Vetterli [mailto:[hidden email]]
>>>>> Sent: Friday, December 22, 2017 8:59 AM
>>>>> To: [hidden email]
>>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
>>>>>
>>>>> Hello all,
>>>>> I do not get OFBiz istalled on my Windows 10 computer. I have
>>>>> tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
>>>>> What I did for example is:
>>>>> OFBiz to C:\apache-ofbiz-16.11.03
>>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
>>>>> Files\Java\jre1.8.0_151
>>>>> I used the commands gradlew cleanAll loadDefault or gradlew
>>>>> loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
>>>>> All I am getting is:
>>>>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean
>>>>> :cleanAnt :cleanCatalina :cleanData :cleanDownloads
>>>>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
>>>>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
>>>>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs
>>>>> :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll
>>>>> :compileJava
>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>> :processResources
>>>>> :classes
>>>>> :jar
>>>>> :assemble
>>>>> :compileTestJava
>>>>> :processTestResources UP-TO-DATE
>>>>> :testClasses
>>>>> :test
>>>>> :check
>>>>> :build
>>>>> :ofbiz --load-data
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org/apache/commons/cli/ParseException
>>>>> 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:335)
>>>>> 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_151\bin\java.exe''
>>>>>> finished with non-zero exit value 1
>>>>> * Try:
>>>>> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>>>>> BUILD FAILED
>>>>> Total time: 2 mins 54.909 secs
>>>>> C:\apache-ofbiz-16.11.03>
>>>>> It seems that there might be a problem with windows 10.
>>>>> Does someone have a solution?
>>>>> Thanks a lot.
>>>>> Greetings from Switzerland,
>>>>> Christian
>>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Michael Brohl-3
Hi Christian,

it would be more readable if you answer the questions directly inline in
the cited original message, one-by-one.

I'm still waiting for the answers or actions to the following:

- What does "echo %JAVA_HOME%" and "java -version" say on the command line?

- please delete the .gradle folder inside your user's home directory and
try to run ofbiz again. You should see that Gradle download all
necessary dependencies then. I'm pretty sure that you don't have the
needed dependencies installed.

Thanks,

Michael

Am 25.12.17 um 10:49 schrieb Christian Vetterli:
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?



smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Aw: RE: Cannot install apache-ofbiz-16.11.03 on windows 10

taher
In reply to this post by Christian Vetterli
I am not sure bit I have a suspicion. Does your windows user folder have
spaces like C:\Users\My User?

If yes, this could very well be the problem. To overcome that, try to
change the cache location with the  --gradle-user-home flag or setting the
GRADLE_USER_HOME environment variable. Set it to a new location that does
not have spaces like C:\gradle_cache for example.

The reason spaces are a problem is because the classpath is registered
inside the jar file and does not allow for spaces (a Java thing).

I hope this is helpful, if not sorry for babbling.

On Dec 25, 2017 12:49 PM, "Christian Vetterli" <[hidden email]> wrote:

> Hi Tim and Michael,
> Thank you for your input.
> I tried Tim’s suggestion.
> Firstly, just to be sure I uninstalled apache-ofbiz-16.11.03 and load a
> fresh one. I unzipped it to
> C:\apache-ofbiz-16.11.03
> and started the command
> gradlew
> It was successful
> C:\apache-ofbiz-16.11.03>gradlew
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
>
> BUILD SUCCESSFUL
>
> Total time: 2 mins 29.11 secs
>
> Then, I ran
> gradlew loadDefault
>
> It failed. The following output came.
> C:\apache-ofbiz-16.11.03>gradlew loadDefault
> :compileJava UP-TO-DATE
> :processResources UP-TO-DATE
> :classes UP-TO-DATE
> :jar UP-TO-DATE
> :assemble UP-TO-DATE
> :compileTestJava UP-TO-DATE
> :processTestResources UP-TO-DATE
> :testClasses UP-TO-DATE
> :test UP-TO-DATE
> :check UP-TO-DATE
> :build UP-TO-DATE
> :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:335)
>         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_151\bin\java.exe''
> finished with non-zero exit value 1
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 23.005 secs
>
> I stopped here.
>
> To Michaels questions.
>
> “can you provide the output of the two commands I provided in my last
> message?
>
> Does your JAV_HOME point to the JDK (the JRE is not sufficient)?
>
> Did you unpack the release zip in the folder and did you cd to the OFBiz
> root folder where the README is located? These steps where not mentioned
> in your description.
>
> Do you see the dependency jars downloading during the first build? If
> not, have you cleared the .gradle folder as I suggested?
>
> It's pretty straight forward to download an run OFBiz OOTB so there must
> be something on your side.”
>
> My answers:
> Yes, I always did unzip OFBiz to the c drive, where also is the README
> location.
> I do not know what you mean with “Does your JAV_HOME point to the JDK (the
> JRE is not sufficient)?”. I did not do anything else than loading Java and
> OFBiz (unpacked) to the known locations and ran the commands.
> Sadly again, I do not have an answer to “Do you see the dependency jars
> downloading during the first build? If not, have you cleared the .gradle
> folder as I suggested?”
> I hope that the above outputs will answer your question.
> To your last statement:
> “It's pretty straight forward to download an run OFBiz OOTB so there must
> be something on your side.” I truly hope so. Since it is so simple, just
> let me know what I possibly could do wrong.
> Thank you for your help.
> Christian
>
>
>
> Gesendet: Sonntag, 24. Dezember 2017 um 14:52 Uhr
> Von: "Boyden, Timothy" <[hidden email]>
> An: "[hidden email]" <[hidden email]>
> Betreff: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
> That should be how it works, but I have run into weird issues like
> Christian has, when I don't run them individually. I had the best luck
> following the directions listed in the Technical Documentation version of
> the "Quick & Easy" setup instructions (https://cwiki.apache.org/
> confluence/display/OFBIZ/Demo+and+Test+Setup+Guide#
> DemoandTestSetupGuide-Quick&EasySetup), which list the steps separately.
>
> -Tim
>
> -----Original Message-----
> From: Michael Brohl [mailto:[hidden email]]
> Sent: Sunday, December 24, 2017 8:37 AM
> To: [hidden email]
> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
>
> You also run the tasks all in one, Gradle executes all necessary dependend
> tasks by itself.
>
> No need to run them one-by-one.
>
> --
> Michael Brohl
> Geschäftsführer
>
> Fon +49 521 448 157-91
> Fax +49 521 448 157-99
> Mobil +49 160 3664918
>
> Company and Management Headquarters:
> ecomify GmbH, Gustav-Winkler-Straße 22, 33699 Bielefeld, Deutschland
> Fon: +49 521 448157-90, Fax: +49 521 448157-99, www.ecomify.de[http://www.
> ecomify.de]
>
> Court Registration: Amtsgericht Bielefeld HRB 41683 Chief Executive
> Officer: Martin Becker, Michael Brohl
>
> > Am 24.12.2017 um 14:26 schrieb Boyden, Timothy <
> [hidden email]>:
> >
> > Christian,
> >
> > The first step after unpacking the OFBiz zip file, is to run "gradlew"
> by itself. That downloads all of the libraries and does an initial build of
> OFBiz.
> >
> > Then you would run the "gradlew loadDefault" to load the data into
> default Derby database.
> >
> > Then you would run "gradlew ofbiz" to run the application.
> >
> > -Tim
> >
> > -----Original Message-----
> > From: Christian Vetterli [mailto:[hidden email]]
> > Sent: Sunday, December 24, 2017 8:18 AM
> > To: [hidden email]
> > Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> >
> > Hi Michael,
> > Thank you for your suggestions. I have read the README.md before I
> started. I followed the steps and did nothing else to it. It seems to be
> straight forward.
> > First, get Java JDK.
> > So, I got Java and saved it to
> > C:\Program Files\Java\jdk1.8.0_151
> > C:\Program Files\Java\jre1.8.0_151
> > Second, get the latest OFBiz version.
> > I got from https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-
> 16.11.03.zip[https://www.apache.org/dyn/closer.lua/
> ofbiz/apache-ofbiz-16.11.03.zip] the very first link to download the
> latest version.
> > I saved it to
> > C:\apache-ofbiz-16.11.03
> > Then I ran the following command line
> > gradlew cleanAll loadDefault
> > I have tried
> > gradlew loadDefault ofbiz previously with the same result.
> > And as Jacques suggested
> > -- stacktrace
> >
> > I know that I would not have to uninstall everything to make a new
> attempt. I just wanted to make sure that there is nothing else which could
> mess with the installation.
> >
> > That is all I did. No additional moving around, no programming – nothing.
> > I have no clue what I could have done wrong.
> >
> > I am grateful for your help.
> > Thanks a lot.
> > Christian
> >
> >
> >
> > Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr
> > Von: "Michael Brohl" <[hidden email]>
> > An: [hidden email]
> > Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi
> > Christian,
> >
> > there is no need to uninstall Java/OFbiz when there is just a missing
> JAVA_HOME environment variable. Just point this variable to the correct
> Java home directory.
> >
> > What does "echo %JAVA_HOME%" and "java -version" say on the command line?
> >
> > OFBIZ_HOME is not needed at all, the Gradle build detects everything on
> its own.
> >
> > I recommend reading the README.md in the project's root folder. It
> describes every step you need to run OFBiz.
> >
> > NoClassDefFoundError: It seems that you don't have the necessary
> dependencies installed on your system.
> >
> > Please notice that the library dependencies are (intentionally) not
> delivered together with the release. They should be automatically
> downloaded by the Gradle build which can take some time for the initial
> build. You will need an internet connection to do this.
> >
> > If your Gradle cache is messy, please consider removing the contents in
> the .gradle folder in your user home directory and execute "gradlew
> cleanAll loadDefault ofbiz" again. You should see a lot of additional
> libaries be downloaded during the build which may take a while.
> >
> > Hope this helps,
> >
> > Regards,
> >
> > Michael Brohl
> > ecomify GmbH
> > www.ecomify.de[http://www.ecomify.de][http://www.ecomify.de[
> http://www.ecomify.de]]
> >
> >> Am 23.12.17 um 21:25 schrieb Christian Vetterli:
> >> Thank you Jacques for your hint (deleting JRE, running --stacktrace).
> >> I uninstalled java JRE and left C:\Program Files\Java\jdk1.8.0_151
> >> OFBiz is still at the same location C:\apache-ofbiz-16.11.03 I
> >> received the following message:
> >> C:\>cd apache-ofbiz-16.11.03
> >>
> >> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
> >>
> >> ERROR: JAVA_HOME is not set and no 'java' command could be found in
> your PATH.
> >>
> >> Please set the JAVA_HOME variable in your environment to match the
> >> location of your Java installation.
> >>
> >> C:\apache-ofbiz-16.11.03>
> >>
> >> Next step, I uninstalled Java and OFBiz completely (and just to be sure
> I uninstalled OpenOffice 4.1.2, since I got the Windows Office package) and
> reinstalled OFBiz 16.11.03 and Java again.
> >> C:\apache-ofbiz-16.11.03
> >> and
> >> C:\Program Files\Java\jdk1.8.0_151
> >> C:\Program Files\Java\jre1.8.0_151
> >>
> >> Then I ran
> >> gradlew cleanAll loadDefault
> >>
> >> The message was
> >> :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_151\bin\java.exe''
> >>> finished with non-zero exit value 1
> >>
> >> * Try:
> >> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> >>
> >> BUILD FAILED
> >>
> >> I ran
> >> gradlew cleanAll loadDefault –stacktrace
> >>
> >> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault --stacktrace
> >> :clean :cleanAnt :cleanCatalina :cleanData :cleanDownloads
> >> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
> >> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
> >> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput
> >> :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >> :processResources
> >> :classes
> >> :jar
> >> :assemble
> >> :compileTestJava
> >> :processTestResources UP-TO-DATE
> >> :testClasses
> >> :test
> >> :check
> >> :build
> >> :ofbiz --load-data
> >> Exception in thread "main" java.lang.NoClassDefFoundError:
> >> org/apache/commons/cli/ParseException
> >> 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:335)
> >> 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_151\bin\java.exe''
> >>> finished with non-zero exit value 1
> >>
> >> * Try:
> >> Run with --info or --debug option to get more log output.
> >>
> >> * Exception is:
> >> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':ofbiz --load-data'.
> >> at
> >> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
> >> e
> >> cuteActions(ExecuteActionsTaskExecuter.java:69)
> >> at
> >> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
> >> e
> >> cute(ExecuteActionsTaskExecuter.java:46)
> >> at
> >> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec
> >> u
> >> ter.execute(PostExecutionAnalysisTaskExecuter.java:35)
> >> at
> >> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
> >> u
> >> te(SkipUpToDateTaskExecuter.java:68)
> >> at
> >> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
> >> e
> >> (ValidatingTaskExecuter.java:58)
> >> at
> >> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
> >> t
> >> er.execute(SkipEmptySourceFilesTaskExecuter.java:52)
> >> at
> >> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.
> >> execute(SkipTaskWithNoActionsExecuter.java:52)
> >> at
> >> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
> >> e
> >> (SkipOnlyIfTaskExecuter.java:53)
> >> at
> >> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.
> >> execute(ExecuteAtMostOnceTaskExecuter.java:43)
> >> at
> >> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
> >> s
> >> kWorker.execute(DefaultTaskGraphExecuter.java:203)
> >> at
> >> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
> >> s
> >> kWorker.execute(DefaultTaskGraphExecuter.java:185)
> >> at
> >> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
> >> o
> >> rker.processTask(AbstractTaskPlanExecutor.java:66)
> >> at
> >> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
> >> o
> >> rker.run(AbstractTaskPlanExecutor.java:50)
> >> at
> >> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul
> >> t
> >> TaskPlanExecutor.java:25)
> >> at
> >> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau
> >> l
> >> tTaskGraphExecuter.java:110)
> >> at
> >> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
> >> E
> >> xecutionAction.java:37)
> >> at
> >> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
> >> r
> >> .java:37)
> >> at
> >> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExec
> >> u
> >> ter.java:23)
> >> at
> >> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecu
> >> t
> >> er.java:43)
> >> at
> >> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
> >> e
> >> cutionAction.java:32)
> >> at
> >> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
> >> r
> >> .java:37)
> >> at
> >> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
> >> r
> >> .java:30)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLa
> >> u
> >> ncher.java:154)
> >> at org.gradle.internal.Factories$1.create(Factories.java:22)
> >> at
> >> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
> >> t
> >> BuildOperationExecutor.java:90)
> >> at
> >> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
> >> t
> >> BuildOperationExecutor.java:52)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
> >> G
> >> radleLauncher.java:151)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
> >> d
> >> leLauncher.java:32)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
> >> e
> >> Launcher.java:99)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
> >> e
> >> Launcher.java:93)
> >> at
> >> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
> >> t
> >> BuildOperationExecutor.java:90)
> >> at
> >> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
> >> t
> >> BuildOperationExecutor.java:62)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
> >> L
> >> auncher.java:93)
> >> at
> >> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
> >> c
> >> her.java:82)
> >> at
> >> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
> >> t
> >> roller.run(InProcessBuildActionExecuter.java:94)
> >> at
> >> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
> >> c
> >> uteBuildActionRunner.java:28)
> >> at
> >> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
> >> c
> >> tionRunner.java:35)
> >> at
> >> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
> >> s
> >> sBuildActionExecuter.java:43)
> >> at
> >> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
> >> s
> >> sBuildActionExecuter.java:28)
> >> at
> >> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
> >> u
> >> ousBuildActionExecuter.java:81)
> >> at
> >> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
> >> u
> >> ousBuildActionExecuter.java:46)
> >> at
> >> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
> >> c
> >> ute(DaemonUsageSuggestingBuildActionExecuter.java:51)
> >> at
> >> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
> >> c
> >> ute(DaemonUsageSuggestingBuildActionExecuter.java:28)
> >> at
> >> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
> >> at
> >> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
> >> a
> >> :173)
> >> at
> >> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
> >> e
> >> xecute(CommandLineActionFactory.java:241)
> >> at
> >> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
> >> e
> >> xecute(CommandLineActionFactory.java:214)
> >> at
> >> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
> >> m
> >> eValidationAction.java:35)
> >> at
> >> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
> >> m
> >> eValidationAction.java:24)
> >> at
> >> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
> >> C
> >> ommandLineActionFactory.java:207)
> >> at
> >> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
> >> C
> >> ommandLineActionFactory.java:169)
> >> at
> >> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
> >> o
> >> rtingAction.java:33)
> >> at
> >> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
> >> o
> >> rtingAction.java:22)
> >> at org.gradle.launcher.Main.doAction(Main.java:33)
> >> at
> >> org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
> >> at
> >> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
> >> t
> >> rap.java:55)
> >> at
> >> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
> >> a
> >> va:36)
> >> at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
> >> at
> >> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
> >> v
> >> a:30)
> >> at
> >> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
> >> at
> >> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
> >> Caused by: org.gradle.process.internal.ExecException: Process
> >> 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe'' finished
> >> with non-zero exit value 1
> >> at
> >> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNo
> >> r
> >> malExitValue(DefaultExecHandle.java:367)
> >> at
> >> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJava
> >> E
> >> xecAction.java:31)
> >> at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
> >> at
> >> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
> >> at
> >> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
> >> a
> >> ctory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.ja
> >> v
> >> a:228)
> >> at
> >> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
> >> a
> >> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
> >> 221)
> >> at
> >> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
> >> a
> >> ctory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:
> >> 210)
> >> at
> >> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
> >> c
> >> tTask.java:585)
> >> at
> >> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
> >> c
> >> tTask.java:568)
> >> at
> >> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
> >> e
> >> cuteAction(ExecuteActionsTaskExecuter.java:80)
> >> at
> >> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
> >> e
> >> cuteActions(ExecuteActionsTaskExecuter.java:61)
> >> ... 60 more
> >>
> >>
> >> BUILD FAILED
> >>
> >> Total time: 3 mins 49.412 secs
> >>
> >> C:\apache-ofbiz-16.11.03>
> >>
> >>
> >> Any suggestions?
> >>
> >> Gesendet: Freitag, 22. Dezember 2017 um 20:26 Uhr
> >> Von: "Jacques Le Roux" <[hidden email]>
> >> An: [hidden email]
> >> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> >> Forgot to say that we can see
> >>
> >> :compileJava
> >> Note: Some input files use unchecked or unsafe operations.
> >> Note: Recompile with -Xlint:unchecked for details.
> >>
> >> that's why I believe Gradle found the JDK.
> >>
> >> But then why Gradle can't find the Apache Commons ParseException
> >> class :-\
> >>
> >> which is part commons-cli-1.3.1-sources.jar and declared in
> build.gradle (line 95): compile 'commons-cli:commons-cli:1.3.1'
> >>
> >> Please Christian follows Gradle advice: "Run with --stacktrace option
> to get the stack trace." we may then help you more...
> >>
> >> Jacques
> >>
> >>
> >>> Le 22/12/2017 à 20:11, Jacques Le Roux a écrit :
> >>> I see actually you don't need it OOTB.
> >>>
> >>> Most of the time simply it's simply a shortcut to name the directory
> >>> where you have installed OFBiz
> >>>
> >>> In rare specific cases, mostly in few bash scripts, it's used as an
> environment variable.
> >>>
> >>> Also for Christian the problem can't be the definition of JAVA_HOME
> >>> since he gets Gradle to run and got this message
> >>>
> >>> Process 'command 'C:\Program Files\Java\jdk1.8.0_151\bin\java.exe''
> >>> finished with non-zero exit value 1
> >>>
> >>> Which proves Windows knows where the Java JDK is and Gradle uses it,
> right Christian?
> >>>
> >>> But maybe there is a confusion we can't see (I use Windows 7)
> >>>
> >>> I'd try to uninstall the JRE and have only the JDK installed to
> >>> avoid any confusion
> >>>
> >>> HTH
> >>>
> >>> Jacques
> >>>
> >>>
> >>>> Le 22/12/2017 à 18:43, Boyden, Timothy a écrit :
> >>>> List of docs that reference OFBIZ_HOME:
> >>>>
> >>>> https://cwiki.apache.org/confluence/dosearchsite.
> action?where=OFBIZ[https://cwiki.apache.org/confluence/
> dosearchsite.action?where=OFBIZ]
> >>>> &
> >>>> spaceSearch=true&queryString=OFBIZ_HOME[https://cwiki.
> apache.org/co[https://cwiki.apache.org/co]
> >>>> n
> >>>> fluence/dosearchsite.action?where=OFBIZ&spaceSearch=true&queryStrin
> >>>> g
> >>>> =OFBIZ_HOME]
> >>>>
> >>>> -Tim
> >>>>
> >>>> -----Original Message-----
> >>>> From: Boyden, Timothy [mailto:[hidden email]]
> >>>> Sent: Friday, December 22, 2017 12:42 PM
> >>>> To: [hidden email]
> >>>> Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10
> >>>>
> >>>> I guess it's not needed, but ran across some documents on
> ofbiz.apache.org that recommend setting it.
> >>>>
> >>>> -Tim
> >>>>
> >>>> -----Original Message-----
> >>>> From: Jacques Le Roux [mailto:[hidden email]]
> >>>> Sent: Friday, December 22, 2017 12:04 PM
> >>>> To: [hidden email]
> >>>> Subject: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> >>>>
> >>>> Hi Tim,
> >>>>
> >>>> Why do you define OFBIZ_HOME?
> >>>>
> >>>> Jacques
> >>>>
> >>>>
> >>>>> Le 22/12/2017 à 17:25, Boyden, Timothy a écrit :
> >>>>> Hi Christian,
> >>>>>
> >>>>> Did you try setting environment variables for JAVA_HOME and
> OFBIZ_HOME?
> >>>>>
> >>>>> https://www.mkyong.com/java/how-to-set-java_home-on-
> windows-10/[https://www.mkyong.com/java/how-to-set-
> java_home-on-windows-10/][ht
> >>>>> t
> >>>>> ps://www.mkyong.com/java/how-to-set-java_home-on-windows-10/][http
> >>>>> s
> >>>>> ://www.mkyong.com/java/how-to-set-java_home-on-windows-10/[https:/
> >>>>> / www.mkyong.com/java/how-to-set-java_home-on-windows-10/[
> http://www.mkyong.com/java/how-to-set-java_home-on-windows-10/]]]
> >>>>>
> >>>>> Follow the instructions in the above to set:
> >>>>>
> >>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME =
> >>>>> C:\apache-ofbiz-16.11.03
> >>>>>
> >>>>> Make sure the bin folder is in the root of C:\Program
> Files\Java\jdk1.8.0_151.
> >>>>>
> >>>>> Make sure the application, framework, etc... folders are in the root
> of C:\apache-ofbiz-16.11.03.
> >>>>>
> >>>>> Then try recompiling.
> >>>>>
> >>>>> -Tim
> >>>>>
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: Christian Vetterli [mailto:[hidden email]]
> >>>>> Sent: Friday, December 22, 2017 8:59 AM
> >>>>> To: [hidden email]
> >>>>> Subject: Cannot install apache-ofbiz-16.11.03 on windows 10
> >>>>>
> >>>>> Hello all,
> >>>>> I do not get OFBiz istalled on my Windows 10 computer. I have
> >>>>> tried any combination I could come up with. Different loading
> locations. All currently available Java versions from Oracle. Nothing seem
> to work. I am not a programmer.
> >>>>> What I did for example is:
> >>>>> OFBiz to C:\apache-ofbiz-16.11.03
> >>>>> Java to C:\Program Files\Java\jdk1.8.0_151 and C:\Program
> >>>>> Files\Java\jre1.8.0_151
> >>>>> I used the commands gradlew cleanAll loadDefault or gradlew
> >>>>> loadDefault ofbiz and I tried to change locations for OFBiz and
> Java. In addition, I tried the latest version of Java.
> >>>>> All I am getting is:
> >>>>> C:\apache-ofbiz-16.11.03>gradlew cleanAll loadDefault :clean
> >>>>> :cleanAnt :cleanCatalina :cleanData :cleanDownloads
> >>>>> :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE
> >>>>> :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE
> >>>>> :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs
> >>>>> :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll
> >>>>> :compileJava
> >>>>> Note: Some input files use unchecked or unsafe operations.
> >>>>> Note: Recompile with -Xlint:unchecked for details.
> >>>>> :processResources
> >>>>> :classes
> >>>>> :jar
> >>>>> :assemble
> >>>>> :compileTestJava
> >>>>> :processTestResources UP-TO-DATE
> >>>>> :testClasses
> >>>>> :test
> >>>>> :check
> >>>>> :build
> >>>>> :ofbiz --load-data
> >>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
> >>>>> org/apache/commons/cli/ParseException
> >>>>> 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:335)
> >>>>> 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_151\bin\java.exe''
> >>>>>> finished with non-zero exit value 1
> >>>>> * Try:
> >>>>> Run with --stacktrace option to get the stack trace. Run with --info
> or --debug option to get more log output.
> >>>>> BUILD FAILED
> >>>>> Total time: 2 mins 54.909 secs
> >>>>> C:\apache-ofbiz-16.11.03>
> >>>>> It seems that there might be a problem with windows 10.
> >>>>> Does someone have a solution?
> >>>>> Thanks a lot.
> >>>>> Greetings from Switzerland,
> >>>>> Christian
> >>>
> >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Christian Vetterli
In reply to this post by Michael Brohl-3
Hi Michael,
I am not a programmer.
"- What does "echo %JAVA_HOME%" and "java -version" say on the command line?"
Tell me please what to do to give you an answer to the above question.
I deleted .gradle from the apache-ofbiz-16.11.03 folder.
The follwoing I got.
 

C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
        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:335)
        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_151\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 37.606 secs
C:\apache-ofbiz-16.11.03>
 
Christian
 

Gesendet: Montag, 25. Dezember 2017 um 10:58 Uhr
Von: "Michael Brohl" <[hidden email]>
An: [hidden email]
Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
Hi Christian,

it would be more readable if you answer the questions directly inline in
the cited original message, one-by-one.

I'm still waiting for the answers or actions to the following:

- What does "echo %JAVA_HOME%" and "java -version" say on the command line?

- please delete the .gradle folder inside your user's home directory and
try to run ofbiz again. You should see that Gradle download all
necessary dependencies then. I'm pretty sure that you don't have the
needed dependencies installed.

Thanks,

Michael

Am 25.12.17 um 10:49 schrieb Christian Vetterli:
> What does "echo %JAVA_HOME%" and "java -version" say on the command line?

 
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install apache-ofbiz-16.11.03 on windows 10

Michael Brohl-3
Hi Christian,

please open your command line / terminal, I think it is "cmd" on
Windows? I'm not sure because I'm on Mac for a few years now...

There you type "echo %JAVA_HOME%" and copy the output to your answer.

Then you type "java -version" and copy the output to your answer.

You should not delete the .gradle folder inside the OFBiz directory but
delete the .gradle folder in your user's home directory.

Please notice Taher's advise. If your user's home directory contains
spaces, this might be the problem why Gradle cannot download/save the
dependencies.

Regards,

Michael


Am 25.12.17 um 11:36 schrieb Christian Vetterli:

> Hi Michael,
> I am not a programmer.
> "- What does "echo %JAVA_HOME%" and "java -version" say on the command line?"
> Tell me please what to do to give you an answer to the above question.
> I deleted .gradle from the apache-ofbiz-16.11.03 folder.
> The follwoing I got.
>  
>
> C:\apache-ofbiz-16.11.03>gradlew loadDefault ofbiz
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :processResources
> :classes
> :jar
> :assemble
> :compileTestJava
> :processTestResources UP-TO-DATE
> :testClasses
> :test
> :check
> :build
> :ofbiz --load-data
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
>          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:335)
>          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_151\bin\java.exe'' finished with non-zero exit value 1
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> BUILD FAILED
> Total time: 2 mins 37.606 secs
> C:\apache-ofbiz-16.11.03>
>  
> Christian
>  
>
> Gesendet: Montag, 25. Dezember 2017 um 10:58 Uhr
> Von: "Michael Brohl" <[hidden email]>
> An: [hidden email]
> Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10
> Hi Christian,
>
> it would be more readable if you answer the questions directly inline in
> the cited original message, one-by-one.
>
> I'm still waiting for the answers or actions to the following:
>
> - What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>
> - please delete the .gradle folder inside your user's home directory and
> try to run ofbiz again. You should see that Gradle download all
> necessary dependencies then. I'm pretty sure that you don't have the
> needed dependencies installed.
>
> Thanks,
>
> Michael
>
> Am 25.12.17 um 10:49 schrieb Christian Vetterli:
>> What does "echo %JAVA_HOME%" and "java -version" say on the command line?
>  


smime.p7s (5K) Download Attachment
12