#774 Trying to compile NHaystack (ax branch) from source produces errors

Victor Smolinski Thu 2 Jan 2020

Hi I am using the latest version of Niagara 3.8, to build modules on my local machine, I cloned the nhaystack ax branch and tried to build it, but it throws  a couple of errors that make me thing I need to use a different version of Niagara AX, just not sure which one would be the optimal one, below is the build console output.
Any guidance is greatly appreciated, thanks.

Loading [C:\Niagara\Niagara-3.8.401\lib\devkit.properties]
Loading [C:\Niagara\Niagara-3.8.401\lib\local.devkit.properties]
Loading [C:\Niagara\Niagara-3.8.401\lib\devkit-win32.properties]
Loading [C:\Niagara\Niagara-3.8.401\lib\local.devkit-win32.properties]
Parsing [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\build.xml]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\collection]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\alarm]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\history]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\history\learn]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\point]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\point\learn]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\driver\worker]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\res]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\server]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\site]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\util]
Delete [C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar\nhaystack\worker]
Resolved [alarm -> C:\Niagara\Niagara-3.8.401\modules\alarm.jar]
Resolved [baja -> C:\Niagara\Niagara-3.8.401\modules\baja.jar]
Resolved [bajaui -> C:\Niagara\Niagara-3.8.401\modules\bajaui.jar]
Resolved [bql -> C:\Niagara\Niagara-3.8.401\modules\bql.jar]
Resolved [concurrent -> C:\Niagara\Niagara-3.8.401\modules\concurrent.jar]
Resolved [control -> C:\Niagara\Niagara-3.8.401\modules\control.jar]
Resolved [driver -> C:\Niagara\Niagara-3.8.401\modules\driver.jar]
Resolved [file -> C:\Niagara\Niagara-3.8.401\modules\file.jar]
Resolved [fox -> C:\Niagara\Niagara-3.8.401\modules\fox.jar]
Resolved [gx -> C:\Niagara\Niagara-3.8.401\modules\gx.jar]
Resolved [history -> C:\Niagara\Niagara-3.8.401\modules\history.jar]
Resolved [net -> C:\Niagara\Niagara-3.8.401\modules\net.jar]
Resolved [schedule -> C:\Niagara\Niagara-3.8.401\modules\schedule.jar]
Resolved [web -> C:\Niagara\Niagara-3.8.401\modules\web.jar]
Resolved [workbench -> C:\Niagara\Niagara-3.8.401\modules\workbench.jar]
Java Compile [nhaystack]
Java Compile [nhaystack.collection]
Java Compile [nhaystack.driver]
C:/Users/VICTOR~1/eclipse-workspace/nhaystack/src/nhaystack/driver/BNHaystackServer.java:529:31:529:34: Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "javax.net.ssl" in: 
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\activation-102.jar
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\classes.zip
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\jdbc.jar
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\jnet.jar
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\mail-14.jar
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\prsnlqnx.jar
                C:\Niagara\Niagara-3.8.401\lib\editions\j2me\tridium-activation-1.0.jar
                C:\Niagara\Niagara-3.8.401\modules\alarm.jar
                C:\Niagara\Niagara-3.8.401\modules\baja.jar
                C:\Niagara\Niagara-3.8.401\modules\bajaui.jar
                C:\Niagara\Niagara-3.8.401\modules\bql.jar
                C:\Niagara\Niagara-3.8.401\modules\concurrent.jar
                C:\Niagara\Niagara-3.8.401\modules\control.jar
                C:\Niagara\Niagara-3.8.401\modules\driver.jar
                C:\Niagara\Niagara-3.8.401\modules\file.jar
                C:\Niagara\Niagara-3.8.401\modules\fox.jar
                C:\Niagara\Niagara-3.8.401\modules\gx.jar
                C:\Niagara\Niagara-3.8.401\modules\history.jar
                C:\Niagara\Niagara-3.8.401\modules\net.jar
                C:\Niagara\Niagara-3.8.401\modules\schedule.jar
                C:\Niagara\Niagara-3.8.401\modules\web.jar
                C:\Niagara\Niagara-3.8.401\modules\workbench.jar
                C:\Niagara\Niagara-3.8.401\bin\nre.jar
                C:\Niagara\Niagara-3.8.401\bin\cryptoCore.jar
                C:\Users\VICTOR~1\eclipse-workspace\nhaystack\ext\haystack.jar
                C:\Users\VICTOR~1\eclipse-workspace\nhaystack\src
                C:\Users\VICTOR~1\eclipse-workspace\nhaystack\libJar
                .

C:/Users/VICTOR~1/eclipse-workspace/nhaystack/src/nhaystack/driver/BNHaystackServer.java:529:31:529:34: Semantic Error: Type "javax.net.ssl.SSLSocketFactory" was not found.
C:/Users/VICTOR~1/eclipse-workspace/nhaystack/src/nhaystack/server/BNHaystackServlet.java:137:36:137:43: Semantic Error: The class file "HServlet.class" in "C:\Users\VICTOR~1\eclipse-workspace\nhaystack\ext\haystack.jar\org\projecthaystack\server" has an invalid format (bad string annotation constant).
C:/Users/VICTOR~1/eclipse-workspace/nhaystack/src/nhaystack/server/BNHaystackServlet.java:161:19:161:26: Semantic Error: Type "HServlet" was not found.
FATAL: Cannot compile package: nhaystack.driver
---

Richard McElhinney Fri 3 Jan 2020

Hi Victor,

That looks like an issue with trying to compile the module using a J2ME directive but the module uses Java SE code and libraries.

I've contacted you offline about this and will follow up with you shortly.

Cheers, Richard

Victor Smolinski Fri 3 Jan 2020

thanks Richard.

Login or Signup to reply.