emzic
|
 |
«
Posted
2007-08-11 09:12:32 » |
|
hello, i have written a small tool that visualizes the behaviour of the opengl blendmodes. since it is maybe useful for some of you guys, i packed it in a jar and made it webstartable you can webstart it here: http://www.embege.com/blendinspect/any feedback is welcome! (even if it is completely senseless, tell me  ) i would especially be happy to know if it runs on a mac, since that is the only platform i couldnt test it. thanks!
|
|
|
|
quintesse
Junior Devvie  
Java games rock!
|
 |
«
Reply #1 - Posted
2007-08-11 19:13:32 » |
|
Doesn't seem to work right on Linux (Fedora 7, JDK 1.6.0_01), I just get this tiny window which I can't resize. No errors in the console.
|
|
|
|
emzic
|
 |
«
Reply #2 - Posted
2007-08-12 12:05:08 » |
|
thank you very much for the information. do other jogl-webstart applications work for you?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
lhkbob
|
 |
«
Reply #3 - Posted
2007-08-12 22:07:33 » |
|
I didn't work with my Mac Powerbook Pro, it had an java.lang.Exception in the Launcher class. I'm nor sure what's wrong since I'm not a very big webstart guy, however I haven't tweaked with any java or webstart settings, so there shouldn't be anything that I've done to make my problem unique to my box. Anyway, best of luck.
|
|
|
|
emzic
|
 |
«
Reply #4 - Posted
2007-08-13 10:33:45 » |
|
thanks for the information. do other jogl-webstart application like the jogl-demos work for you? thanks!
|
|
|
|
lhkbob
|
 |
«
Reply #5 - Posted
2007-08-13 14:34:21 » |
|
Most of the jogl-demos work if I recall as well as the jME demos, so I know webstart is capable of working on my computer.
|
|
|
|
emzic
|
 |
«
Reply #6 - Posted
2007-08-14 07:51:54 » |
|
thanks! hmmm, that's strange. does anyone know what could be wrong with this jnlp file? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://www.embege.com/blendinspect/" href="blendinspect.jnlp">
<information> <title>BlendInspect</title> <vendor>Matthias Grumet</vendor> <homepage href="http://www.embege.com" /> <description>BlendInspect - OpenGL BlendMode inspection</description> <offline-allowed/> </information>
<security> <all-permissions/> </security>
<resources> <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/> <jar href="BlendInspect.jar" /> <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" /> </resources>
<application-desc main-class="com.embege.blendinspect.BlendInspect"/>
</jnlp> |
|
|
|
|
lhkbob
|
 |
«
Reply #7 - Posted
2007-08-14 16:40:48 » |
|
This is the exact exception I get if it helps you any: java.lang.Exception at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898) at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522) at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218) at com.sun.javaws.Launcher.run(Launcher.java:165) at java.lang.Thread.run(Thread.java:613)
|
|
|
|
Ken Russell
|
 |
«
Reply #8 - Posted
2007-08-15 23:33:05 » |
|
Worked great on Windows XP SP2 with the latest Java (actually, a Java 7 development build).
|
|
|
|
emzic
|
 |
«
Reply #9 - Posted
2007-08-19 18:13:56 » |
|
lhkbob, thanks very much for the information. i will need to look into this further. maybe it is a java-version problem, since i have only tested it with java6. meanwhile, i am happy about any other feedback. 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
flipperke
|
 |
«
Reply #10 - Posted
2007-09-07 13:09:42 » |
|
I have the same problem (tiny window) when I open it the first time. When I try to open it a second time (while the tiny window is stil open, it works like it should. Linux JDK1.6.0
|
|
|
|
emzic
|
 |
«
Reply #11 - Posted
2007-09-07 14:32:07 » |
|
thanks a lot for the information! with tiny window you mean the java-webstart splash screen?
|
|
|
|
flipperke
|
 |
«
Reply #12 - Posted
2007-09-07 18:51:13 » |
|
No, just a smal (3 mm by 10mm approx). To be more precise, it seems to start at normal size (just a split-second), an then it goes to mini.
|
|
|
|
emzic
|
 |
«
Reply #13 - Posted
2007-09-07 21:58:05 » |
|
hm, interesting. though yet i have no idea what the problem could be.
|
|
|
|
quintesse
Junior Devvie  
Java games rock!
|
 |
«
Reply #14 - Posted
2007-09-12 08:48:08 » |
|
Show us the code and we might be able to help 
|
|
|
|
emzic
|
 |
«
Reply #15 - Posted
2007-09-12 15:12:44 » |
|
the problem is, that the exception occurs in code which is not mine. (see lhkbob's post above) it happens somewhere in the java-webstart launcher code.
so i could actually post the complete code, which is quite a number of java-files, but i dont think that would help.
|
|
|
|
Ken Russell
|
 |
«
Reply #16 - Posted
2007-09-12 16:23:11 » |
|
The exception lhkbob isn't enough to make a diagnosis. There's another tab in the window which pops up like "wrapped exception" or similar which should have the real root cause.
|
|
|
|
emzic
|
 |
«
Reply #17 - Posted
2007-09-12 17:51:18 » |
|
ah thanks! i didnt realize that. maybe someone (lhkbob?  ) can post that exception too, so that we can further investigate the issue. thanks a lot!
|
|
|
|
lhkbob
|
 |
«
Reply #18 - Posted
2007-09-14 01:16:35 » |
|
I peaked into it further (there was no wrapped exception tab, but I remembered to check the actual console) and it's a java.lang.UnsupportedClassVersionError. So if I'm not mistaken, that's probably because I have java 1.5. So, sorry for leading you on, and it works fine for windows machine.
|
|
|
|
emzic
|
 |
«
Reply #19 - Posted
2007-09-14 10:03:15 » |
|
ah, ok i was building it with 1.6 so maybe that's the problem.
edit: ok i am using ant for my deployment. does anyone know how to configure it to build it with 1.5 compliance. is that a compiler flag?
thanks!
|
|
|
|
Ken Russell
|
 |
«
Reply #20 - Posted
2007-09-15 00:43:43 » |
|
Specify the -target 1.5 argument in your javac task.
|
|
|
|
emzic
|
 |
«
Reply #21 - Posted
2007-09-28 22:41:15 » |
|
sorry for the delay, i was very busy at work. but now i have updated BlendInspect! it is compiled with source 1.5 target and it also features a small particle system to make it easier to find the correct blendmode for your game's particlesystem! i would be very happy if you guys (especially those with a mac) could give it a try again and provide a little feedback, if it worked or not. thanks a lot! website: http://www.embege.com/blendinspect/webstart: http://www.embege.com/blendinspect/blendinspect.jnlp
|
|
|
|
broumbroum
|
 |
«
Reply #22 - Posted
2007-09-28 23:22:22 » |
|
got bad version in class file :
---------------------------------------------------- java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at com.sun.jnlp.JNLPClassLoader.defineClass(JNLPClassLoader.java:314) at com.sun.jnlp.JNLPClassLoader.access$100(JNLPClassLoader.java:53) at com.sun.jnlp.JNLPClassLoader$1.run(JNLPClassLoader.java:254) at java.security.AccessController.doPrivileged(Native Method) at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:247) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.jnlp.JNLPClassLoader.loadClass(JNLPClassLoader.java:600) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.javaws.Launcher.continueLaunch(Launcher.java:884) at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522) at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218) at com.sun.javaws.Launcher.run(Launcher.java:165) at java.lang.Thread.run(Thread.java:613) #### Java Web Start Error: #### null
|
|
|
|
emzic
|
 |
«
Reply #23 - Posted
2007-09-29 00:18:50 » |
|
damned not again!
thank you very much for the feedback. can i ask you what OS and what JRE-version you have? thanks!
edit: i also obfuscate the jar using proguard, could that be the problem? from the proguard docs: "By default, the version numbers of the class files are left unchanged. "
|
|
|
|
broumbroum
|
 |
«
Reply #24 - Posted
2007-09-29 02:44:01 » |
|
it is Mac OS X and J2SE 1.5 running...
|
|
|
|
emzic
|
 |
«
Reply #25 - Posted
2007-09-29 11:19:17 » |
|
thanks for the information. anyone got an idea what the problem could be? i am pretty sure i compiled the sources with target 5 and also proguard shouldnt change that.
|
|
|
|
lhkbob
|
 |
«
Reply #26 - Posted
2007-09-29 16:54:14 » |
|
If you're using Eclipse and 1.5 jdk, try switching the project over to that and rebuilding everything instead of specifying a target option.
|
|
|
|
emzic
|
 |
«
Reply #27 - Posted
2007-09-29 18:50:19 » |
|
ok thank you! i have uploaded a new version of the jar. could you try again?
thank you very much!
|
|
|
|
lhkbob
|
 |
«
Reply #28 - Posted
2007-09-29 19:45:33 » |
|
I have good news and bad news. Bad news it still doesn't work correctly, Good news is it no longer crashes, I get the BlendInspect window to pop up on my Mac, but there's only a small black bar at the top of the window. It still runs fine on my windows machine, so I'm sure where it broke.
|
|
|
|
emzic
|
 |
«
Reply #29 - Posted
2007-09-29 19:50:54 » |
|
thank you very much for the information, and the helpful tips with the java-class-version thing, lhkbob.
but now i have again no idea what the problem with this black bar could be. anyone? thanks a lot!
|
|
|
|
|