SFML community forums
Help => Graphics => Topic started by: jonncr on January 30, 2020, 12:28:42 pm
-
Strange issue, on MacOS whenever I try to create a new RenderWindow object i.e. RenderWindow window = new RenderWindow();
I get a NullPointerException ending when it tries to read the MD5File.
Does anyone have any idea why this could be happening?
-
What do you mean with "tries to read the MD5File"?
JSFML isn't maintained anymore so it might be hard to find someone who stills uses it.
-
Thanks for the reply!
What do you mean with "tries to read the MD5File"?
JSFML isn't maintained anymore so it might be hard to find someone who stills uses it.
Just going by the stack trace after trying to create the object
Exception in thread "main" java.lang.NullPointerException
at org.jsfml.internal.SFMLNative.readMD5File(Unknown Source)
at org.jsfml.internal.SFMLNative.loadNativeLibraries(Unknown Source)
at org.jsfml.internal.SFMLNativeObject.<init>(Unknown Source)
at org.jsfml.window.Window.<init>(Unknown Source)
at org.jsfml.graphics.RenderWindow.<init>(Unknown Source)
Its very odd considering it works perfectly on Windows/Linux.
-
Which version did you download?
Checking here:
https://jsfml.sfmlprojects.org/?page=download
The latest release (December 2nd, 2013 ) doesn't include the Mac OS X natives, therefore it will not run on that platform.
However, the July 31st, 2013 release appears to support all 3 major platforms.
-
1) NullPointerException is a RuntimeException . In Java, a special null value can be assigned to an object reference. NullPointerException is thrown when an application attempts to use an object reference that has the null value. These include: Calling an instance method on the object referred by a null reference.