Closed Gootzi closed 6 months ago
You have to write class path properly, otherwise it won't work
I'll try that
Is this proper?
For us, we used space separator for MANIFEST.MF file. I doubt it will bring any difference tho. However, considering BCU failing to load resource files, jar file may not contain resource files, and maybe that's the cause of problem. Also adding such class path means external libraries must be contained as jar files in said path, so make sure required files are all prepared properly
Check if resource folder is marked properly, and your artifact puts resource files together into jar file as well
Is it correct that the main jar has the manifest located in src\main\META-INF\MANIFEST.MF
?
As shown.
Errors and fails to load JOGL shaders, and language files.
This means jar file has failed to grab resource file, and this is what I just suggested above
animations,
It's obvious error that caused by shader not being loaded. BCU tries to create Program
(glCreateProgram), and it will try to attach shader (glAttachShader) to it. Since jar file has failed to get shader file from resource, BCU will fail to create program, leading to crash
Is it correct that the main jar has the manifest located in
src\main\META-INF\MANIFEST.MF
?
We have put it in ./src/META-INF/
folder. It's due to wonky behavior or IntelliJ IDEA, what it puts as default is ./src/resources/META-INF/
Okay. I would also like to know: is src\main\resources the right spot to set resource folder?
Yes, that's where IDEA project initializer creates as default
The resource files are in the root directory of the jar: these ones.
JAR contents:
If jar file still shows error, at least it should have created error log in logs
folder. Read stacktrace in there. There's not much that we can help now
The classpath only includes files from BCU_lib
. Could that be a classpath issue?
class path is group of paths that jar file can link other classes to. It's used for connecting separated 3rd party libraries (as form of jar file) into main jar file. It doesn't perform more job than that
Ah..... I don't think it's within my ability or my IDE's ability to solve this, so..
Fixed it. Something was wrong, no idea what, but cloning it without the terminal worked
Errors and fails to load JOGL shaders, animations, and language files.
BCU works completely fine on release builds, but on builds built with IntelliJ artifacts, they have file problems.
*could be a library issue? But I'm not certain which it could be.