Easy to Learn Java: Programming Articles, Examples and Tips

Start with Java in a few days with Java Lessons or Lectures

Home

Code Examples

Java Tools

More Java Tools!

Java Forum

All Java Tips

Books

Submit News
Search the site here...
Search...
 
Search the JavaFAQ.nu
1000 Java Tips ebook

1000 Java Tips - Click here for the high resolution copy!1000 Java Tips - Click here for the high resolution copy!

Java Screensaver, take it here

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java programming articles and tips. Please take your copy here.

Take your copy of free "Java Technology Screensaver"!.

On some Windows 2000 machines our application (uses Java 2D) causes system crash

JavaFAQ Home » Graphics Go to all tips in Graphics


Bookmark and Share

Question: On some Windows 2000 machines our application (uses Java 2D) causes system crash - blue screen of Windows death Smile...

Answer: It can happen if you J2SE 1.4.1 and later. The problem is not in Java itself but rather in obsolete video drivers that can contain bugs. Java 2D functionality in J2SE 1.4.1 and beyond is implemented using DirectDraw and Direct3D for various off screen rendering functions.
Possible solution is to update video driver. Find out what is chipset your graphical card uses and then go to the site of manufacturer, for example http://www.atitech.com

If it does not help you can run your application with different flags.

One example of a known problem is that using Direct3D on some small subset of Windows 2000 systems has been known to cause a system crash. You can also try launching your application with the following command-line flag set:

-Dsun.java2d.d3d=false

This forcibly disables our use of Direct3D and avoids any Direct3D-specific problems.
You can also try the following flag:

-Dsun.java2d.ddoffscreen=false

This flag disables our use of DirectDraw and Direct3D for off screen images (such as the Swing back buffer).
If a problem persists, try launching the application with this flag:

-Dsun.java2d.noddraw=true

This flag disables our use of DirectDraw and Direct3D completely and thus avoids any problems you may be seeing associated with our use of those APIs and their respective drivers on your system.

This tip is based on release notes for J2SE 1.4.2:

http://java.sun.com/j2se/1.4.2/relnotes.html#vm

 Printer Friendly Page  Printer Friendly Page
 Send to a Friend  Send to a Friend

.. Bookmark and Share

Search here again if you need more info!

Custom Search



Home Code Examples Java Forum All Java Tips Books Submit News, Code... Search... Offshore Software Tech Doodling

RSS feed Java FAQ RSS feed Java FAQ News     

    RSS feed Java Forums RSS feed Java Forums

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 1999-2006 by Java FAQs Daily Tips.

Interactive software released under GNU GPL, Code Credits, Privacy Policy