Jari Särö
|
 |
«
Posted
2011-03-15 05:33:34 » |
|
Removed..
|
|
|
|
IronclawsBt
|
 |
«
Reply #1 - Posted
2011-03-15 12:41:48 » |
|
Your Applet wouldn't load on my system. All I got was a grayish-blue blank screen. My OS is Windows 7 (64 bit) and my Java is up to date. I would recommend that you try breaking your applet down to its simplest parts. Once you have that working, add back in your other stuff until it breaks. That will tell you where the problem is. My extends chains are somewhat a 20 classes long.
That shouldn't cause any problems while its running, but likely means your code is not very maintainable. You should look into component based entities, which is a popular design pattern to eliminate the need for deep object hierarchies.
|
|
|
|
Jari Särö
|
 |
«
Reply #2 - Posted
2011-03-15 13:09:48 » |
|
Removed..
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Mike
|
 |
«
Reply #3 - Posted
2011-03-15 13:51:30 » |
|
I would be very happy if some one who tryes my Applet would receive an exception ?
sorry, no exceptions are thrown, this is the console output (took like 10 min to get the console up to capture it) 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
| Java Plug-in 1.6.0_23 Using JRE version 1.6.0_23-b05 Java HotSpot(TM) Client VM User home directory = C:\Users\cwnl-mlundstr ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ----------------------------------------------------
AsiakasOhjelma_AWT v2.0 PeliKirjasto_AWT v3.0 Loaded resource : http: Loaded resource : http: Loaded resource : http: FrameRate : 5 FrameRate : 35 FrameRate : 37 FrameRate : 36 FrameRate : 32 FrameRate : 33 FrameRate : 27 FrameRate : 32 FrameRate : 33 FrameRate : 32 FrameRate : 28 FrameRate : 4 FrameRate : 3 FrameRate : 4 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 4 FrameRate : 3 FrameRate : 3 FrameRate : 4 FrameRate : 3 FrameRate : 3 FrameRate : 4 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 FrameRate : 3 |
|
|
|
|
Jari Särö
|
 |
«
Reply #4 - Posted
2011-03-15 14:32:11 » |
|
Removed..
|
|
|
|
loom_weaver
|
 |
«
Reply #5 - Posted
2011-03-15 14:41:25 » |
|
I won't be of much help. Works for me on Safari, Mac. Nice demos btw!
|
|
|
|
Mike
|
 |
«
Reply #6 - Posted
2011-03-15 14:47:22 » |
|
Im happy to see that my Applet starts ok, it also compiles my .SVG compiled .TXT files ok, and starts the opening demo, after the opening demo my Applet waits key input ( 1 - 8 ) to choose player a game.
This all seems to happen, why with some computer there is no screen output ?
I have AWT Applet -> Canvas -> BufferStrategy ( 2 ) ?
Applet code seems to run at background, i believe this missing screen update, is some Java issue on Windows machines ?
Well it is reproducable for me so if you want me to test something just let me know  I don't get any screen updates at all just like your other cases) Mike
|
|
|
|
IronclawsBt
|
 |
«
Reply #7 - Posted
2011-03-15 18:28:24 » |
|
Could you put some debugging output in your code so that we can send you some useful console output? This is why you should have some form of logging in any non-trivial program.
|
|
|
|
Jari Särö
|
 |
«
Reply #8 - Posted
2011-03-16 12:35:25 » |
|
Removed..
|
|
|
|
Jari Särö
|
 |
«
Reply #9 - Posted
2011-03-17 08:18:07 » |
|
Removed..
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Mike
|
 |
«
Reply #10 - Posted
2011-03-17 08:41:17 » |
|
Even the first one doesn't work... (all white and the java console crashes). If you send me the code I can test it step by step.
Mike
|
|
|
|
Jari Särö
|
 |
«
Reply #11 - Posted
2011-03-17 08:56:59 » |
|
Removed..
|
|
|
|
Jari Särö
|
 |
«
Reply #12 - Posted
2011-03-18 06:43:30 » |
|
Removed..
|
|
|
|
Mike
|
 |
«
Reply #13 - Posted
2011-03-18 07:35:03 » |
|
test 4 didn't work (the one without graphics2d) but the pong game did  Mike
|
|
|
|
Jari Särö
|
 |
«
Reply #14 - Posted
2011-03-18 07:54:13 » |
|
Removed..
|
|
|
|
gwoptics
Senior Newbie  Projects: 1
|
 |
«
Reply #15 - Posted
2011-03-18 09:49:57 » |
|
The Pong one runs for me but not the new test. I get (Mac Safari): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Java Plug-in 1.5.0_28 Using JRE version 1.5.0_28-b04-382-9M3326 Java HotSpot(TM) Client VM
java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:676) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:173) at java.lang.ClassLoader.loadClass(ClassLoader.java:317) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:145) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:659) at sun.applet.AppletPanel.createApplet(AppletPanel.java:786) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2383) at sun.applet.AppletPanel.runLoader(AppletPanel.java:715) at sun.applet.AppletPanel.run(AppletPanel.java:369) at java.lang.Thread.run(Thread.java:655) |
Andreas
|
|
|
|
Jari Särö
|
 |
«
Reply #16 - Posted
2011-03-18 09:58:01 » |
|
Removed..
|
|
|
|
gwoptics
Senior Newbie  Projects: 1
|
 |
«
Reply #17 - Posted
2011-03-18 10:16:14 » |
|
That's better. Runs in Firefox and Safari on Mac 10.5.8. (Cannot get Java to run properly in Chrome, so did not try that one).
Andreas
|
|
|
|
Jari Särö
|
 |
«
Reply #18 - Posted
2011-03-26 23:28:01 » |
|
Removed..
|
|
|
|
ra4king
|
 |
«
Reply #19 - Posted
2011-03-26 23:33:02 » |
|
Works in Google Chrome 11 on Windows 7 x64 
|
|
|
|
ReBirth
|
 |
«
Reply #20 - Posted
2011-03-27 04:19:53 » |
|
Loaded on Firefox 3.6.14 Win XP SP2
a little advice: add-on noscript and "bad" internet security suite can prevent applet from appearing.
|
|
|
|
gwoptics
Senior Newbie  Projects: 1
|
 |
«
Reply #21 - Posted
2011-03-27 09:49:35 » |
|
Looks good: works OK in Chrome 10, Firefox 4 and Safari 5 on Mac 10.5.8.
Andreas
|
|
|
|
Mike
|
 |
«
Reply #22 - Posted
2011-03-28 16:44:21 » |
|
Working in Firefox 3.6 on Windows 7.
Mike
|
|
|
|
Jari Särö
|
 |
«
Reply #23 - Posted
2011-03-29 16:59:40 » |
|
Removed..
|
|
|
|
ra4king
|
 |
«
Reply #24 - Posted
2011-03-29 17:44:12 » |
|
Did you find out what the problem that caused the crash was?
|
|
|
|
Jari Särö
|
 |
«
Reply #25 - Posted
2011-03-29 19:48:31 » |
|
Removed..
|
|
|
|
|