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

Jabel for using java 11 project library in java 8 project. #185

Open
313hemant313 opened this issue Feb 13, 2024 · 1 comment
Open

Jabel for using java 11 project library in java 8 project. #185

313hemant313 opened this issue Feb 13, 2024 · 1 comment

Comments

@313hemant313
Copy link

313hemant313 commented Feb 13, 2024

Able to generate a Jar with the pom changes mentioned in the readme, but when trying to add this dependency in Java8 project then getting below error on file classes of java11Project lib.

Error:
XYZ.class uses preview features of Java SE 11 (use --enable-preview)

Also just wanted to confirm that while doing package or install of Java11Lib which jdk should i use ? jdk 8 or jdk 11 ?

Got this error when using jdk8 in both the projects:

class file has wrong version 55.65535, should be 52.0

UPDATE

Had to remove some code like List.of, but got it working with var keywords.

Can someone please confirm how to know which code needs to be changed ?

@313hemant313
Copy link
Author

@bsideup Can you please guide.

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

1 participant