Build Failure in Apache Ofbiz in windows 10

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

Build Failure in Apache Ofbiz in windows 10

Thilina Prasad
I try to configure and build Apche ofBiz latest version on my windows 10
machine. when i run gradlew cleanAll loadDefault command it gave below
exception. I try to resolve it but I didn't found a way. Is there any way
to solve this please let me know.

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$1.run(URLClassLoader.java:372)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 1 more
:ofbiz --load-data FAILED

Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure in Apache Ofbiz in windows 10

Deepak Dixit-4
Hi Thilina Prasad,

Your email has been moderated, Please subscribe to the mailing list
[hidden email]

Thanks & Regards
--
Deepak Dixit


On Wed, Aug 8, 2018 at 5:57 PM, Thilina Prasad <[hidden email]>
wrote:

> I try to configure and build Apche ofBiz latest version on my windows 10
> machine. when i run gradlew cleanAll loadDefault command it gave below
> exception. I try to resolve it but I didn't found a way. Is there any way
> to solve this please let me know.
>
> 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$1.run(URLClassLoader.java:372)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 1 more
> :ofbiz --load-data FAILED
>
> Thank you!
>
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure in Apache Ofbiz in windows 10

Madhi Krishnan
In reply to this post by Thilina Prasad
Might be the problem with dependencies...
Try to refresh the dependences...

Type..
gradlew build --refresh dependencies

On Wed 8 Aug, 2018, 6:12 PM Thilina Prasad, <[hidden email]>
wrote:

> I try to configure and build Apche ofBiz latest version on my windows 10
> machine. when i run gradlew cleanAll loadDefault command it gave below
> exception. I try to resolve it but I didn't found a way. Is there any way
> to solve this please let me know.
>
> 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$1.run(URLClassLoader.java:372)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 1 more
> :ofbiz --load-data FAILED
>
> Thank you!
>
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure in Apache Ofbiz in windows 10

Sanjeev Gupta
In reply to this post by Thilina Prasad
Your windows 10 profile path may have a space; try removing the space OR
create another profile with no spaces.
eg "C:\Users\sanjeev gupta" : not work



-----
Rgds
Sanjeev Gupta
www.digitalwebadvisors.com
--
Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-Dev-f165671.html
Rgds
Sanjeev Gupta
www.digitalwebadvisors.com