• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Library compiled succesfully but some packages are missing.

    BACnet4J general discussion
    2
    4
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Milo
      last edited by

      I found this packages here
      https://github.com/mlohbihler/various

      sero-warp package also refers to
      lohbihler.scheduler from
      https://github.com/mlohbihler/sero-scheduler

      but I'm unable to compile them, I can see that they are gradle projects but the compiler returns and error: (I'm using Eclipse)

      "A problem occurred evaluating root project 'sero-warp'.

      Could not get unknown property 'bintrayUser' for object of type com.jfrog.bintray.gradle.BintrayExtension."

      When I try to call initialize on LocalDevice I get exception:

      "java.lang.NoClassDefFoundError: lohbihler/warp/WarpScheduledExecutorService"

      I'm pretty new to Java. Did I miss something? Can you provide binaries of my missing packages.

      Milo

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by

        Milo,

        BACnet4J can be compiled using Maven OR Gradle. I use Maven and have no problems as the pom references our Maven repository at maven.mangoatuomation.net.

        You have 2 options. If you are using Maven in the project that requires BACnet4J then you can review the pom in the git repo here:

        https://github.com/infiniteautomation/BACnet4J/blob/master/pom.xml

        That should show you how to include all the necessary libraries (note the repository and pluginRepository configuration)

        The other option is to download what you need directly from the bintray and maven.mangoautomation.net repositories online.

        1 Reply Last reply Reply Quote 0
        • M
          Milo
          last edited by

          1. download from: https://github.com/infiniteautomation/BACnet4J

          2. Open Project Directory from Eclipse. Project BACnet4J-master Is now opened.

          3. Open POM, check dependencies: Dependencies:

            • sero-scheduler
            • sero-warp
            • commons-lang3
            • jssc: 2.8.0
            • slf4j-api
            • junit
            • mockito-core
          4. Right-click Project->Run As->(m2)BAcnet4j-master, Goals: clean install->Run

          Build process doesn't show any of the external dependencies being built or included.

          When trying to compile basic app:

          Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

          Did I miss something during during building? As I said, Java,eclipse maven... is still pretty new environment for me.

          1 Reply Last reply Reply Quote 0
          • M
            Milo
            last edited by

            I manually downloaded all the missing jars from the repo you provided and it seems to be working now apart from

            SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

            But I get no exceptions when calling

            dev.initialize();

            Thanks for the help.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post