Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

cannot build with gradle on fresh installed computer #8

Open
Bilal-S opened this issue May 4, 2021 · 1 comment
Open

cannot build with gradle on fresh installed computer #8

Bilal-S opened this issue May 4, 2021 · 1 comment

Comments

@Bilal-S
Copy link

Bilal-S commented May 4, 2021

Receiving this error on running ./gradlew clean build command in plain vanilla java example
Env:

  • Ubuntu 20.04
  • opendJDK 11
import org.graphqlize.java.GraphQLResolver;
                          ^
  bad class file: /home/user/.gradle/caches/modules-2/files-2.1/org.graphqlize/graphqlize-java/0.1.0-alpha20/5abcf1eb56546b988aeff61fe2ea87d357a7cc36/graphqlize-java-0.1.0-alpha20.jar(/org/graphqlize/java/GraphQLResolver.class)
    class file has wrong version 59.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
/home/user/code/graphqlize-demo/java/vanilla/src/main/java/Program.java:9: error: cannot access GraphQLizeResolver
import org.graphqlize.java.GraphQLizeResolver;
                          ^
  bad class file: /home/user/.gradle/caches/modules-2/files-2.1/org.graphqlize/graphqlize-java/0.1.0-alpha20/5abcf1eb56546b988aeff61fe2ea87d357a7cc36/graphqlize-java-0.1.0-alpha20.jar(/org/graphqlize/java/GraphQLizeResolver.class)
    class file has wrong version 59.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
/home/user/code/graphqlize-demo/java/vanilla/src/main/java/Program.java:30: error: cannot find symbol
    GraphQLResolver graphQLResolver = new GraphQLizeResolver(dataSource);
    ^
  symbol:   class GraphQLResolver
  location: class Program
/home/user/code/graphqlize-demo/java/vanilla/src/main/java/Program.java:30: error: cannot find symbol
    GraphQLResolver graphQLResolver = new GraphQLizeResolver(dataSource);
                                          ^
  symbol:   class GraphQLizeResolver
  location: class Program
4 errors
@tamizhvendan
Copy link
Contributor

Sorry @Bilal-S for the delayed reply.

It looks like a JDK specific issue.

Due to my current situation, I won't be able to fix this. If you send me an MR with the fix, I am open to review and merge.

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

2 participants