wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Error: "annotation.PreDestroy not present" with java 9.0 #69

Closed drazde closed 6 years ago

drazde commented 6 years ago

I have this error when I try to execute restclient

An exception was caught and reported. Message: java.lang.ClassNotFoundException: javax.annotation.PreDestroy
java.lang.TypeNotPresentException: Type javax.annotation.PreDestroy not present
subwiz commented 6 years ago

I need to change the build script to support 9. Let me look into it.

subwiz commented 6 years ago

I was able to modify build scripts a bit and build for Java 10. Uploaded the build here. The commits I made are breaking the Mac build. Will be fixing it later.

drazde commented 6 years ago

Now I have this error: SO: Windows 10

java -jar restclient-ui-fat-3.6.2-SNAPSHOT.jar
Errore: LinkageError durante il caricamento della classe principale org.wiztools.restclient.ui.Main
        java.lang.UnsupportedClassVersionError: org/wiztools/restclient/ui/Main has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 53.0
subwiz commented 6 years ago

Can you upgrade to Java 10?

drazde commented 6 years ago

Ok, I'm sorry with Java 10 works...