Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Under windows, java2d applet is working in eclipse but not in web browser  (Read 4599 times)
0 Members and 1 Guest are viewing this topic.
Offline ido

Junior Member





« Posted 2010-08-18 17:52:52 »

Hi,
I have 3 very similar applets that work fine in linux & mac os x (and until recently windows as well), but today I've noticed they stopped working under windows when opened in a web browser (latest ff & ie 8 ) :

Dynamite Fish'n

Abstract Meta Game

Lord of His Domain

However, they still work in windows when i run them in eclipse (as well as on linux and mac os x either in eclipse or in the browser).  This has been confirmed by several other people.

No error is shown in the java console when the applet is playing in the browser, just a blank white box is displayed.

The source code, jars and html files for all 3 applets can be had here.

Any idea what might have caused this odd error? Could it have been the recent 1.6_21 update?

Offline zoto

Senior Member


Medals: 4



« Reply #1 - Posted 2010-08-18 18:07:14 »

They all worked fine for me on vista64 on firefox.
Offline ido

Junior Member





« Reply #2 - Posted 2010-08-19 13:22:17 »

Which version of java, zoto?

It might just be the latest update (1.6_21).

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #3 - Posted 2010-08-19 14:03:40 »

works fine here on winxp 32bit with 1.6.0_21.

Its likely that java somehow messed up the upgrade procedure and corrupted the install (not uncommon, see thread relating to java 1.6.0_20 upgrade).

What i'd recommend you try is uninstall java and do a fresh install.
Offline ido

Junior Member





« Reply #4 - Posted 2010-08-19 14:18:18 »

Uninstalling and reinstalling the jre & jdk didn't seem to help.

Strangely java *does* manage to start, as the console comes up, but it just seem to not update the applet's rendering region:

http://i.imgur.com/CDJde.png

The text you see inside the applet's area is the content of the previous browser tab.  In IE 8 it also doesn't seem to render anything inside the applet.

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #5 - Posted 2010-08-19 14:43:11 »

I have the same problem you have here, ido .

Windows XP, java 1.6.0_11-b03, Firefox . It does not even show the java console .


however , with I.E. 7.0.57 it runs just fine .
weird ...

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #6 - Posted 2010-08-19 15:00:55 »

@ido are you sure its the 1.6.0_21 update? does downgrading to 1.6.0_20 make it work again?
Offline ido

Junior Member





« Reply #7 - Posted 2010-08-19 15:07:41 »

Nope, I tired it just before and it seems downgrading to 1.6_20 didn't help either.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #8 - Posted 2010-08-19 15:16:06 »

ok, so seems this problem isn't specific to the 1.6.0_21 upgrade then.

Do other java applets work ? also can you try non java2D applets (like pulpcore applets, lwjgl applets)?
Offline ido

Junior Member





« Reply #9 - Posted 2010-08-19 15:22:02 »

Other java2d applets work, pulpcore applets work & lwjgl applets also work....

Very strange.  Huh

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #10 - Posted 2010-08-19 15:56:41 »

Other java2d applets work, pulpcore applets work & lwjgl applets also work....

Very strange.  Huh

ok, guess the next logical assumption to make would be that the java cache of your applet jars has become corrupt (although odd that no exception is thrown in the console).

So try clear your java cache (from the java control panel) and try launch your applets again?
Offline ido

Junior Member





« Reply #11 - Posted 2010-08-19 15:58:29 »

That's the first thing I tried- it didn't help and the problem doesn't happen just on my machine but also on 3 others (including teletubo).

Online Riven
« League of Dukes »

JGO Overlord


Medals: 743
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #12 - Posted 2010-08-19 16:07:06 »

Create an applet that renders 1 colored rectangle. Work from there.

Either that, or deactivate functionality in your current applet and see when it starts working again.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ido

Junior Member





« Reply #13 - Posted 2010-08-19 16:09:44 »

That's probably what I'll have to do Riven, too bad the problem manifests itself on my work computer (it works fine at home), and also that the same version used to work on this computer before...

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #14 - Posted 2010-08-19 16:27:22 »

That's the first thing I tried- it didn't help and the problem doesn't happen just on my machine but also on 3 others (including teletubo).

Nevermind my case. It works now, I think I just had Firefox not correctly configured (I'm at work and we had a format a few days ago) .

Offline ido

Junior Member





« Reply #15 - Posted 2010-08-19 16:28:51 »

What was it?  Perhaps it can help me solve my issues here.

If it really is just a local issue rather than a systematic one that'd be good news.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #16 - Posted 2010-08-19 17:00:55 »

Just out of curiosity what graphics card do you use on that machine? were the drivers changed recently?

Although a long shot could you try if the applet works when all graphics hardware acceleration is disabled?

This is done using the following parameter inside your applet tag
1  
<param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false">

Offline ido

Junior Member





« Reply #17 - Posted 2010-08-19 17:09:54 »

Awesome Kapta!

That did the trick  Grin Grin Grin

Didn't seem to slow down anything, either.

Offline ido

Junior Member





« Reply #18 - Posted 2010-08-19 17:33:58 »

1  
<param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false">



For the record, the part of it that did the trick was "-Dsun.java2d.opengl=false".

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (22 views)
2014-07-24 01:59:36

Riven (20 views)
2014-07-23 21:16:32

Riven (17 views)
2014-07-23 21:07:15

Riven (20 views)
2014-07-23 20:56:16

ctomni231 (48 views)
2014-07-18 06:55:21

Zero Volt (44 views)
2014-07-17 23:47:54

danieldean (35 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (53 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!