On 1/30/19 2:33 AM, Ondrej Tomcik wrote: > Hello, > > Use following scons command > Doublecheck if you have gradle installed and JAVA_HOME is set: > > Try: > scons TARGET_TRANSPORT=IP BUILD_JAVA=yes > JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 WITH_CLOUD=yes WITH_TCP=yes > TEST=0 BUILD_SAMPLE=OFF > > Regards > > Ondrej Tomcik :: KISTLER :: measure, analyze, inovate > > From: iotivity-dev@lists.iotivity.org <iotivity-dev@lists.iotivity.org> On > Behalf Of yonggu ha > Sent: Mittwoch, 30. Januar 2019 06:46 > To: iotivity-dev@lists.iotivity.org > Subject: [dev] Hi. I have troubling building with JAVA Option > > > Hello. Everyone. > > I have question. I'd like to ask you because there's no solution elsewhere. > Recently, I am also preparing to develop Java applications using iotivity. > It's not Android. > > > > in iovitivity source, i use scons like below > > > > scons TARGET_TRANSPORT=IP SECURED=0 BUILD_JAVA=ON > > when the build OcfLightServer.java file, > > java.util.zip.Zipexception: duplicate entry: org/ > > > > However, the following error occurs: > > Google recommends that you modify the file for Android. > > In the case of Java, Google doesn't know how.
But android is using Java, so there should be no difference. > I'm use java version 1.8. Not sure if the build options help or not. Just for informational purposes, here are the builds the Jenkins CI system does, and those builds are passing. (Note it builds twice, once in development mode, once in release mode). $ EXEC_MODE=False ./auto_build.py linux_secured_with_java *********** Build for linux with Java support and secured ************ Would run : scons VERBOSE=1 RELEASE=false SECURED=1 ERROR_ON_WARN=1 BUILD_JAVA=1 TARGET_TRANSPORT=IP *********** Build for linux with Java support and secured ************ Would run : scons VERBOSE=1 RELEASE=true SECURED=1 ERROR_ON_WARN=1 BUILD_JAVA=1 TARGET_TRANSPORT=IP ===================== done ===================== $ EXEC_MODE=False ./auto_build.py linux_unsecured_with_java *********** Build for linux with Java support ************ Would run : scons VERBOSE=1 RELEASE=false ERROR_ON_WARN=1 BUILD_JAVA=1 TARGET_TRANSPORT=IP *********** Build for linux with Java support ************ Would run : scons VERBOSE=1 RELEASE=true ERROR_ON_WARN=1 BUILD_JAVA=1 TARGET_TRANSPORT=IP ===================== done ===================== -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10155): https://lists.iotivity.org/g/iotivity-dev/message/10155 Mute This Topic: https://lists.iotivity.org/mt/29591502/21656 Group Owner: iotivity-dev+ow...@lists.iotivity.org Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-