Sadly I can not get the JAR File to work, I have uploaded the source code. If someone makes a JAR file that actually works and can provide a link I would be very great-full and I'll credit you here.
My second jam entry for the ludum dare. Not the full game I wanted it too be but I still like it, I will most likely be updating this game later. If you are interested you can follow me on twitter (@sgtQuad) for updates on this and any other projects I might be working on.
If there are any problems please contact me via twitter or leave a comment here, I will try to fix it as soon as I can.
Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at Game.<init>(Game.java:8) at Snowfall.InitUI(Snowfall.java:10) at Snowfall.<init>(Snowfall.java:6) at Snowfall.main(Snowfall.java:22)
$java -jar Snowfall.jar Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:205) at Game.<init>(Game.java:8) at Snowfall.InitUI(Snowfall.java:10) at Snowfall.<init>(Snowfall.java:6) at Snowfall.main(Snowfall.java:22)
Exception in thread "main" java.lang.UnsupportedClassVersionError: Snowfall : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: Snowfall. Program will exit.
I opened up the archive and tried to recompile manually but it just wouldn't work. I like the title screen, hopefully you fix the bug and we can all give it a try before judging ends.
Comments25
at javax.swing.ImageIcon.<init>(Unknown Source)
at Game.<init>(Game.java:8)
at Snowfall.InitUI(Snowfall.java:10)
at Snowfall.<init>(Snowfall.java:6)
at Snowfall.main(Snowfall.java:22)
I used Java 7 from the command prompt (java -jar Snowfall.jar)
$java -jar Snowfall.jar
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at Game.<init>(Game.java:8)
at Snowfall.InitUI(Snowfall.java:10)
at Snowfall.<init>(Snowfall.java:6)
at Snowfall.main(Snowfall.java:22)
That title screen looks intriguing though : /
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Snowfall. Program will exit.
Ubuntu 11.10, Java 1.6
"Could not find the main class: Snowfall. Program will exit."