Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2, JDK 5 Edition
BOOK: Beginning Java 2, JDK 5 Edition
This is the forum to discuss the Wrox book Ivor Horton's Beginning Java 2, JDK 5 Edition by Ivor Horton; ISBN: 9780764568749
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2, JDK 5 Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 7th, 2007, 03:59 AM
Registered User
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error:Sketcher15 in chapter21 don't run on Linux

My operating system is Linux Fedora5,JDK5.0.today I run the Sketcher15 in NetBeans5.5,complile successfully,exception appear when I run it:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
        at java.nio.Buffer.position(Buffer.java:218)
        at sun.font.TrueTypeFont.lookupName(TrueTypeFont.java :817)
        at sun.font.TrueTypeFont.getFamilyName(TrueTypeFont.j ava:883)
        at sun.java2d.SunGraphicsEnvironment.getAvailableFont FamilyNames(SunGraphicsEnvironment.java:476)
        at sun.java2d.SunGraphicsEnvironment.getAvailableFont FamilyNames(SunGraphicsEnvironment.java:494)
        at FontDialog.<init>(FontDialog.java:69)
        at SketchFrame.<init>(SketchFrame.java:191)
        at Sketcher.creatGUI(Sketcher.java:22)
        at Sketcher.access$1(Sketcher.java:21)
        at Sketcher$1.run(Sketcher.java:15)
        at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java: 461)
        at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:110)
BUILD SUCCESSFUL (total time: 2 seconds)

my E-mail:zhanghao_96164@163.com

Thank you,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
java2d error in linux reza_ahmadi Pro Java 0 January 8th, 2008 05:40 AM
compilation error on linux GIGI BOOK: Ivor Horton's Beginning Visual C++ 2005 1 November 5th, 2007 12:37 PM
can i run dot net application on linux VIshwastrivedi SQL Server 2000 4 September 21st, 2004 02:11 AM
can i run dot net application on linux VIshwastrivedi .NET Framework 2.0 1 September 21st, 2004 01:27 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.