The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Runtime error while trying Awt Native interfac

Posted by Balakrishna Prabhu on December 21, 2000 at 3:38 AM

Sir,
we gone through the site Javaworld.com Heading
Java Tip 86: Support native rendering in JDK 1.3

I successfully compiled Java Program given in that
article and c++ program was also compiled
then I created DLL using BUILD.Bat as mentioned in
that article. But when i tried to run the program i.e
MyWindow.java I come across the following errors

Here, I am listing the errors:

Exception in thread
"main"java.lang.ExceptionInInitializerError:
java.lang.RuntimeException;
Unable to create a suitable default
GraphicsConfiguration.Try changing your
Display Setting.
at
Sun.awt.Win32GraphicsDevice.getDefaultPixID(Native
Method)
at
Sun.awt.Win32GraphicsDevice.getDefaultConfiguration(Unknown
Source)
at Sun.awt.Windows.WToolkit.resetGC(Unknown source)
at Sun.awt.Windows.WToolkit.(Unknown
source)
at java.lang.class.forName0
at java.lang.Toolkit$2.UNative Method>
"

at MyWindow.main(MyWindow.java:14)


Kindly, send me the reson for the said and what is the
soloution for the same?

thankfully,
Mr. Balakrishna Prabhu.



Replies:
  • bala purushottam hegde May 15, 2001 at 6:52 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us