Skip to content

jnigen doesn't generate using JDK version 19. #683

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

Open
HosseinYousefi opened this issue Feb 3, 2023 · 9 comments
Open

jnigen doesn't generate using JDK version 19. #683

HosseinYousefi opened this issue Feb 3, 2023 · 9 comments
Labels
package:jni package:jnigen type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@HosseinYousefi
Copy link
Member

          I changed the version of my JDK from 19 to 17 (just like yours) and it finally worked ! Thanks again

_Originally posted by @blackgerman in #682

@mahesh-hegde
Copy link
Contributor

We want to get a gradle log here. Maybe we should write stdout and stderr of commands to a temporary log file on failure.

@mahesh-hegde mahesh-hegde added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Mar 23, 2023
@seifibrahim32
Copy link

seifibrahim32 commented Apr 25, 2023

@HosseinYousefi @mahesh-hegde , I use JDK-19 , and it works , are you sure it doesn't work on your device.?

If you use JDK-19 remove the java folder from the Program Files - for Windows and reinstall the JDK again, so you can compile any java file , and run with java command without .java extension file to be put . e.g. :
java class_name
instead of:
java class_name.java

@mahesh-hegde
Copy link
Contributor

If you use JDK-19 remove the java folder from the Program Files ..

We all know how to install java. We are not in stone age to manually add remove folders in windows, we use package managers.

The issue is related to gradle.

@seifibrahim32
Copy link

seifibrahim32 commented Apr 26, 2023

If you use JDK-19 remove the java folder from the Program Files ..

We all know how to install java. We are not in stone age to manually add remove folders in windows, we use package managers.

The issue is related to gradle.

😂 , what is the problem of gradle - is the issue related to performance not generation file because while generation process with me it works .

@seifibrahim32
Copy link

seifibrahim32 commented Apr 26, 2023

But mahesh , when I tried using delete and reinstall the java worked to be honest , i found the same issue and I found on Google search engine these small issues, the only solution I found is this.

And it worked , sometime Java folder at Program Files doesnt remove the old cached folders when someome upgrades the version , the test was on Windows.

@mahesh-hegde
Copy link
Contributor

Do you mean the gradle examples worked?

@seifibrahim32
Copy link

Do you mean the gradle examples worked?

Fortunately it worked, I may assist you into that maybe through meeting

@mahesh-hegde
Copy link
Contributor

Good to hear. However the person in linked issue had a problem. It would be good to find out what it was.

I and Hossein are working on different issues, so haven't got the time to check this yet.

@seifibrahim32
Copy link

seifibrahim32 commented Apr 27, 2023

The point is gradle version which supports JDK 19 is 7.6.0+, so maybe Android Studio he has it doesnt support , so he should either change distributionUrl to 7.6 gradle and synchronize it using Sync Now or Find Android Studio Flamingo , i think they added maximum JDK 19 support default while searching on Medium articles.

Also, Project Settings on Android Studio allows you to install Gradle 7.6 without distributionUrl itself .

@HosseinYousefi HosseinYousefi transferred this issue from dart-archive/jnigen Nov 17, 2023
@HosseinYousefi HosseinYousefi moved this to Backlog in JNIgen tracker Apr 11, 2024
@HosseinYousefi HosseinYousefi added this to the JNI / JNIgen 0.15.0 milestone May 22, 2024
@HosseinYousefi HosseinYousefi moved this from Backlog to Todo in JNIgen tracker May 22, 2024
@HosseinYousefi HosseinYousefi self-assigned this May 22, 2024
@HosseinYousefi HosseinYousefi removed this from the JNI / JNIgen 0.14.0 milestone Oct 23, 2024
@HosseinYousefi HosseinYousefi moved this from Todo to Backlog in JNIgen tracker Oct 23, 2024
@HosseinYousefi HosseinYousefi removed their assignment Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:jni package:jnigen type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
Status: Backlog
Development

No branches or pull requests

3 participants