Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: java/util/HashMap$Entry #7

Closed
sjackman opened this issue Jun 11, 2014 · 11 comments
Closed

NoClassDefFoundError: java/util/HashMap$Entry #7

sjackman opened this issue Jun 11, 2014 · 11 comments

Comments

@sjackman
Copy link

./nextflow http://goo.gl/ngf8dL
N E X T F L O W  ~  version 0.8.1
ERROR: java.lang.NoClassDefFoundError: java/util/HashMap$Entry -- See the file '.nextflow.log' for more error details
@sjackman
Copy link
Author

.nextflow.log gist

@pditommaso
Copy link
Member

This looks something related to a not compatible Java version.

Could please paste the result of "java -version" command. Also, is the JAVA_HOME variable defined in your system? If so double check that it points to the same version of java on you PATH, or "unset" it and to launch it again.

@sjackman
Copy link
Author

I installed java using Homebrew-cask brew cask install java. JAVA_HOME is not set.

~ ❯❯❯ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
~ ❯❯❯ echo $JAVA_HOME

@pditommaso
Copy link
Member

I think homebrew install OpenJDK instead of Oracle JDK. I never tested with the first, it could be the problem. Unfortunatly I can't investigate it before next week. Anyway I will let you know as soon as possible. Thanks for reporting the issue.

@sjackman
Copy link
Author

Homebrew-cask installs the Oracle JDK. No rush. I'm looking forward to trying out nextflow. It looks very interesting as a replacement for make.

@pditommaso
Copy link
Member

I see, what does it return the command "/usr/libexec/java_home -V" ?

@pditommaso
Copy link
Member

Anyway, it looks there's still some odd incompatibility with Java 8. If you want to start to play with it you may want to downgrade to Java 7

http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp

@sjackman
Copy link
Author

/usr/libexec/java_home -V
Matching Java Virtual Machines (3):
    1.8.0_05, x86_64:   "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
    1.6.0_65-b14-462, x86_64:   "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-462, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home

@pditommaso
Copy link
Member

The problem was due to a (private) API change in Java 8 as described here
https://groups.google.com/d/msg/groovy-user/MeHXv6fz15o/mkrB4VjXGJsJ

I've just uploaded a fixed version (0.8.2) that solve the issue.

Happy hacking.

@sjackman
Copy link
Author

sjackman commented Jul 6, 2014

Thanks, Paolo. It works.

@pditommaso
Copy link
Member

Thanks to you for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants