Java build start failing oraclejdk7

java

#1

Having the really same code (Grails 2.2.4 application) I receive error while building the app using grails war command. It was fine while ago but now I receive strange error:

| Error Compilation error: startup failed:
Compile error during compilation with javac.
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._dnsns.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._localedata.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunec.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._zipfs.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._dnsns.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._localedata.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunec.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
error: error reading /usr/lib/jvm/jdk1.7.0/jre/lib/ext/._zipfs.jar; error in opening zip file
12 errors

It looks like something happened with oraclejdk7 I am using in my circleci.yml. When I switched to openjdk7 the build was fine.

I found only these issues which might be related:

Do you know how to overcome this issue?


#2

I’m having the same issue; ever found the cause/solution?


#3

Can you share a build link or error output please?


#4

You can check this build: https://circleci.com/gh/Hacker-Peers/DependencyExecutorService/47


#5

I’d like to add that using openjdk7 isn’t an option for me because I get a certificate error publishing to Coveralls.io (see build https://circleci.com/gh/Hacker-Peers/DependencyExecutorService/49).

For now I decided to compile using oraclejdk8, but forcing source and target jdk version to JDK7 … not ideal, but better than nothing :-/


#6