Unresolved supertypes errors


I ran into a build error while packing my code with maven on a different computer setup. My maven project works fine on one linux box, but on the other one it fails with this error:

[ERROR] Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class java.lang.AutoClosable, unresolved supertypes: Object
    class com.mycompany.ProviderObjIdentity, unresolved supertypes: Object

I don’t know where to start debugging this problem. There are no differences in the code for the projects, but I guess the two developers are using different JDKs. Maybe different versions of maven. Definitely different flavors of linux.

EDIT: I’d be happy to provide any additional information, I just don’t know what would be helpful.

this dev guy’s setup is busted:

Kotlin: 1.0.4
sles SUSE Linux Enterprise Server 11 (x86_64)
Linux 3.0.76-0.11-default

mvn -version

 Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 06:51:28-0700)
 Maven home: /home/devguy1/apache-maven-3.0.5
 Java version: 1.7.0, vendor: IBM Corporation
 Java home: /usr/lib64/jvm/java-1.7.0-ibm-1.7.0/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: "linux", version: "3.0.76-0.11-default", arch: "amd64", family: "unix"


I would say that the classpath is not set up correctly. In other words, some part of the IBM Jdk could not be found, or the system is mixing different jdk/sdk versions. Most likely it is a configuration problem on the system. Some Linux distributions do some really weird tricks with directory installations that may also be less than helpful.


Thanks, that helps point me in some direction. I’ve never dealt with compiler issues in Java before :wink:


related to KT-14437 ?