Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2, JDK 5 Edition
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 7th, 2007, 03:59 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
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:

init:
deps-jar:
compile:
run:
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
Help!!!!!!!!!!!!!!!!

Thank you,
zhanghao_96164
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:40 AM
compilation error on linux GIGI BOOK: Ivor Horton's Beginning Visual C++ 2005 1 November 5th, 2007 11:37 AM
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



All times are GMT -4. The time now is 05:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.