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

[low priority] Correct java version? #1

Open
harold opened this issue Aug 30, 2023 · 4 comments
Open

[low priority] Correct java version? #1

harold opened this issue Aug 30, 2023 · 4 comments

Comments

@harold
Copy link

harold commented Aug 30, 2023

I tried to run it, but I don't think I have the right java version:

harold@freeside:~/src/raylib-clj [main]$ lein repl
Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Subprocess failed (exit code: 1)

What version of java works for you, and how did you install it? (I'm on linux)

@rutenkolk
Copy link
Owner

rutenkolk commented Aug 30, 2023

i am currently using java 19. I'm on windows and installed it via scoop.

~ $ .\scoop\apps\openjdk19\current\bin\java --version
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-44)
OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)

Note that to run it, I currently have the shared library of raylib v4.6-dev located on the top directory (it's not checked in).

I compiled via mingw32-make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_43 RAYLIB_LIBTYPE=SHARED

I see you are using leinigen. I had to make sure leinigen was using the correct version of java.
Since I'm lazy I just put it globally in the .lein/profiles.clj for now.

{:user {:java-cmd "path-to-java19/bin/java"}}

@harold
Copy link
Author

harold commented Aug 31, 2023

Makes sense! I'm sure that will help windows people.

Seems like a cool project - hope you make lots of cool games.

@harold harold closed this as completed Aug 31, 2023
@rutenkolk
Copy link
Owner

I want this to also work on linux and ideally mac as well at some point, but this repo isn't even a week old, so I'll need some time.

@rutenkolk
Copy link
Owner

I'll reopen this, so I won't forget to test this on multiple platforms and different java versions

@rutenkolk rutenkolk reopened this Sep 1, 2023
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