Library compiled succesfully but some packages are missing.
-
I found this packages here
https://github.com/mlohbihler/varioussero-warp package also refers to
lohbihler.scheduler from
https://github.com/mlohbihler/sero-schedulerbut 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
-
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.
-
-
download from: https://github.com/infiniteautomation/BACnet4J
-
Open Project Directory from Eclipse. Project BACnet4J-master Is now opened.
-
Open POM, check dependencies: Dependencies:
- sero-scheduler
- sero-warp
- commons-lang3
- jssc: 2.8.0
- slf4j-api
- junit
- mockito-core
-
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.
-
-
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.