SpaceFX icon indicating copy to clipboard operation
SpaceFX copied to clipboard

How do I build this on mac?

Open cschneider opened this issue 6 years ago • 4 comments

I tried to use the build-app.sh but got some errors. One is: build_app.sh: line 69: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/jlink: No such file or directory

I got the directory but it does not contain jlink. Does this not work on java 8? Can I build/run the game without creating a native package? I am more interested in the javafx aspects.

cschneider avatar Jan 29 '20 09:01 cschneider

jlink was introduced with JDK 9: https://docs.oracle.com/javase/9/tools/jlink.htm

Does this not work on java 8?

Nope. Not as-is.

Can I build/run the game without creating a native package?

Commenting out all jlink related lines should do the trick. For example:

https://github.com/HanSolo/SpaceFX/blob/908d3017c568fea09b84fbbfd8d3365a17f39b5b/build.gradle#L24

sormuras avatar Jan 29 '20 10:01 sormuras

Or better: install and use JDK 13 or at least a maintained JDK 11 on your box. šŸ˜‰

sormuras avatar Jan 29 '20 10:01 sormuras

Well this project is based on JDK11 incl. modules. Iā€˜m also on Mac and it works perfectly fine 😁

HanSolo avatar Jan 30 '20 19:01 HanSolo

Dooh. Of course. Modules! šŸ¤“

That renders my first answer useless.

sormuras avatar Jan 31 '20 09:01 sormuras