Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

[java] Version requirement #535

Open
turon opened this issue Mar 27, 2020 · 1 comment
Open

[java] Version requirement #535

turon opened this issue Mar 27, 2020 · 1 comment

Comments

@turon
Copy link
Contributor

turon commented Mar 27, 2020

When building openweave-core using the Project Linking instructions the following error appears if jdk 12 is used:

Making all in device-manager/java
  JAVAC   
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
make[3]: *** [WeaveDeviceManager.jar.classes.stamp] Error 2
make[2]: *** [all-recursive] Error 1

It seems Java 11 is required, though that is not made clear on the build instruction page.

@turon
Copy link
Contributor Author

turon commented Mar 27, 2020

Another potential work-around for this is:

diff --git a/src/device-manager/java/Makefile.am b/src/device-manager/java/Makefile.am
index f3f1be5b..618564de 100644
--- a/src/device-manager/java/Makefile.am
+++ b/src/device-manager/java/Makefile.am
@@ -112,7 +112,7 @@ WeaveDeviceManager_jar_JAVA_SRCS                   =        \
     nl/Weave/DataManagement/ResourceIdentifier.java         \
     $(NULL)
 
-WeaveDeviceManager_jar_JFLAGS                      = -source 6 -target 6
+WeaveDeviceManager_jar_JFLAGS                      = -source 7 -target 1.7
 
 WeaveDeviceManager_jar_JAVA_MAIN_CLASS             = nl.Weave.DeviceManager.TestMain

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant