Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

cant build #1

Open
delanym opened this issue Apr 28, 2023 · 4 comments
Open

cant build #1

delanym opened this issue Apr 28, 2023 · 4 comments
Assignees

Comments

@delanym
Copy link

delanym commented Apr 28, 2023

hi there. Why cant I build this?

/git/ubiq-fpe-java master ❯ echo $JAVA_HOME
/usr/lib/jvm/java-20-openjdk-amd64

/git/ubiq-fpe-java master ❯ java --version
openjdk 20-ea 2023-03-21                                                                                                                                                                                                                                  
OpenJDK Runtime Environment (build 20-ea+17-Ubuntu-2)                                                                                                                                                                                                     
OpenJDK 64-Bit Server VM (build 20-ea+17-Ubuntu-2, mixed mode, sharing)                                                 

/git/ubiq-fpe-java master ❯ ./gradlew                                                                                                                                                                             delany.middleton@traderoot.com 10:31:53 
                                                                                                                                                                                                                                                          
FAILURE: Build failed with an exception.                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                          
* Where:                                                                                                                                                                                                                                                  
Settings file '/git/ubiq-fpe-java/settings.gradle'                                                                                                                                                                                                        
                                                                                                                                                                                                                                                          
* What went wrong:                                                                                                                                                                                                                                        
Could not compile settings file '/git/ubiq-fpe-java/settings.gradle'.                                                                                                                                                                                     
> startup failed:                                                                                                                                                                                                                                         
  General error during semantic analysis: Unsupported class file major version 64                                                                                                                                                                         
                                                                                                                                                                                                                                                          
  java.lang.IllegalArgumentException: Unsupported class file major version 64                                                                                                                                                                             
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:196)                                                   
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:177)                                               
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:163)                                                                                                                                                                                   
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:284)                                                 
        at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
@garyschneir garyschneir self-assigned this Apr 28, 2023
@garyschneir
Copy link
Contributor

Let me investigate. Is there a specific reason you need to compile file files? Our jar files are available in maven and sonatype

@garyschneir
Copy link
Contributor

@delanym Looks to be a java version compatibility issue. The 64 in the message Unsupported class file major version 64 refers to Java 20, which you are using. I tried various java versions and our library compiles on java versions 11 - 15.

To determine why Java versions 16 or higher are not working properly, I need to do more research and investigate further.

Do you have the ability to downgrade your java environment to Java 11 - 15 ?

@delanym
Copy link
Author

delanym commented Apr 28, 2023

Ok strange, its building on 11. I started off on 17. Usually those messages mean the JDK can't handle the project, not the other way around.

I was having trouble with the JAR and wanted to make sure your unit tests run.

@ifreshwater
Copy link

@delanym Thank you for trying out our library! We are adding an issue to our backlog to investigate porting our library to Java 17, as Java 11 is ending LTS support soon. Let us know if we can help you with anything else.

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

No branches or pull requests

3 participants