Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2004

Tip: Looking for answers? Try searching our database.

Missing Font

Thread view: 
Bill Dennis - 08 Jun 2004 17:08 GMT
A user getting the following error when he tries to start our
application on his computer (Windows).  I believe it's happening
because a required font is not installed?  If so, can you tell me what
he would need to do to get the proper font available for our
application?  Thanks.

Bill Dennis

WARNING: Default charset MS950 not supported, using ISO-8859-1 instead
Exception in thread "main" java.lang.NoClassDefFoundError:
sun/io/ByteToCharMS950
       at sun.awt.font.NativeFontWrapper.getFontMetrics(Native
Method)
       at sun.awt.font.FontDesignMetrics.initMatrixAndMetrics(Unknown
Source)
       at sun.awt.font.FontDesignMetrics.<init>(Unknown Source)
       at sun.awt.font.FontDesignMetrics.<init>(Unknown Source)
       at sun.awt.SunToolkit.getFontMetrics(Unknown Source)
       at sun.awt.windows.WToolkit.getFontMetrics(Unknown Source)
       at java.awt.Component.getFontMetrics(Unknown Source)
       at tfg.DefaultScreen2.calcMonospacedCharWidth(DefaultScreen2.java:2477)
       at tfg.DefaultScreen2.setFontSizes(DefaultScreen2.java:428)
       at tfg.DefaultScreen2.<init>(DefaultScreen2.java:400)
       at tfg.TFGui.<init>(TFGui.java:545)
       at tfg.MainFrame.<init>(MainFrame.java:147)
       at tfg.TFG4000.<init>(TFG4000.java:41)
       at tfg.TFG4000.main(TFG4000.java:312)
Roedy Green - 09 Jun 2004 00:52 GMT
>WARNING: Default charset MS950 not supported, using ISO-8859-1 instead
>Exception in thread "main" java.lang.NoClassDefFoundError:
>sun/io/ByteToCharMS950

You are missing a translate table. Check the version of the JVM they
are running. It in probably too old.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Thomas Weidenfeller - 09 Jun 2004 07:16 GMT
> A user getting the following error when he tries to start our
> application on his computer (Windows).  I believe it's happening
> because a required font is not installed?

No, a charset-encoding  translation-table is missing. Since I never came
across MS950, I can't tell you from memory if MS950 ever was or is at
the moment a charset supported by Java.

Check the release notes of the installed VM if this is supported by the
VM. Also check the locale setting of the (Windows?) machine if it refers
to MS950. And check if that locale is indeed installed in the OS.

/Thomas
Bill Dennis - 09 Jun 2004 17:26 GMT
Thanks for the responses, but I'm still not clear what needs to be
done.  Roedy, I don't think the JVM is too old because we ship the JRE
with our application and set up to point to it during installation.

Thomas, can you explain what you mean by "check if the locale is
installed in the OS"?  I've tried researching this in Windows, but I'm
not sure what needs to be done.  Thanks again.

Bill Dennis

> > A user getting the following error when he tries to start our
> > application on his computer (Windows).  I believe it's happening
[quoted text clipped - 9 lines]
>
> /Thomas
Andrew Thompson - 09 Jun 2004 18:03 GMT
Please do not top-post..
<http://www.physci.org/codes/javafaq.jsp#netiquette>

>  Roedy, I don't think the JVM is too old because we ship the JRE
> with our application and set up to point to it during installation.

Check.  It's an application, right?
Visit this page..
<http://www.physci.org/pc/properties.jsp>

The first word 'JTest' is a link to the
.jar (app./applet), run it to see common
properties.  Or rather, get you user to
run it and check if the version of Java
it is reporting is what you expect..

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Roedy Green - 09 Jun 2004 21:31 GMT
>Thomas, can you explain what you mean by "check if the locale is
>installed in the OS"?  I've tried researching this in Windows, but I'm
>not sure what needs to be done.

You want to find out what locale the person has configured it his OS.
Look in the control panel.

Also run Wassup as a standalone to find out what the various system
properties are. The possibility is you are using an exotic locale that
is not properly supported in Java. see http://mindprod.com/wassup.html

Once you know this information, you will be able to reproduce the
problem back home.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.