I don’t know if this has been asked before, but what is the recommended way to distribute programs?
I ran the “assembleDist” gradle task, and now I have a shell script and a batch script.
When I run the shell script on Linux, I get this:
failed to load font: file '/home/sergi/Downloads/maze-solver-0.0/bin/data/fonts/default.otf' does not exist. (IllegalArgumentException)
If I manually copy and paste the data folder into the bin folder it works. This seems like an unsatisfactory solution though.
When I run the batch script in a Windows VM, I get this:
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openrndr.Application$Companion.run(Application.kt:44)
at org.openrndr.ApplicationKt.application(Application.kt:97)
at org.openrndr.ApplicationBuilderKt.application(ApplicationBuilder.kt:109)
at MainKt.main(Main.kt:97)
at MainKt.main(Main.kt)
Caused by: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
at org.lwjgl.system.Callback.<clinit>(Callback.java:41)
at org.openrndr.internal.gl3.ApplicationGLFWGL3.createPrimaryWindow(ApplicationGLFWGL3.kt:353)
at org.openrndr.internal.gl3.ApplicationGLFWGL3.<init>(ApplicationGLFWGL3.kt:130)
... 9 more
I’m not sure how I can fix that one.