Universal Robots+

UnssuportedClassVersion exception during Activation

Hi there,

I’m having a problem with activating my URCap on a CB3 UR10.

My Cap won’t activate. The Activation.java is called, but not finished due to an error: “java.lang.UnsupportedClassVersionError: com/wecobot/welding/impl/Activator : Unsupported major.minor version 52.0”
Link to a screenshot of the screen with the error: https://ibb.co/j8RwJhK

The CB3 is of March 2018 manufacturing date, so the first thing I did (before installing the cap) was updating the firmware step by step from 3.5 to 3.13. After that, I installed the Cap. The cap shows a yellow triangle on the URCaps screen.
I tried putting a new image on the Cobot, but that didn’t change anything.

The Cap works in my simulator just fine. Another Cap works on the Cobot.

Anyone having ideas on what to do next? Is it possible for the Cobot to have an older version of Java installed? Or is something wrong with my programming?

The CB are running on version 1.6, the major.minor version 52.0 is for java 1.8.

I fixed this problem by changing these lines in the pom.xml to 6 instead of 7/8 and doing a mvn clean install.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.6.0</version>
	<configuration>
		<source>6</source>
		<target>6</target>
	</configuration>
</plugin>