IDE build errors

I’m having problems getting a fresh IDE setup to build. I think the problem is a mix up between Java 8 and Java 11 in Eclipse. I have a program that requires java 11 and so I have both 8 and 11 installed on my machine and use update-java-alternatives to switch between the two.

If I go to ~/openhab-2-5-x/git/openhab-distro and do an mvn clean install, it builds without errors but if I start eclipse and than do a Project->Clean… Clean all projects with Build Automatically projects, I get errors.

Unable to get bundle symbolic name for org.openhab.demo.app

The reason that I think it has something to do with the java version is that if I try to launch app.bndrun I get this in the console:

app.bndrun [OSGi Framework] /usr/lib/vm/java-1.11.0.openjdk-amd64/bin/java (Fen 29, 2020, 4:23.19 PM)
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package jdk.internal.jrtfs in both module java.base and module jrt.fs

Where is that java-1.11 reference coming from?
The binding that I want to work on builds OK but I need to debug it.
Steve

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.