Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting font error with javac

Status
Not open for further replies.

haux

Programmer
Apr 11, 2001
79
DZ
When i compile any *.java file with JDK1.2.2_007 for linux (i have RedHat 6.2 + kernel 2.2.14-5) i get this message :

" Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] "

but i get my *.class file and i can excecute it !!!

any one can help me i am confused.

NB : i have download JBuilder 3.5 for linux i still have my apps run but still having the last message when compiling.
 
Here is the solution from Borland:

These errors happen because the Java Virtual Machine (JVM) that is running JBuilder can't find a font that has been specified.

The font that the JVM is looking for is "symbol.ttf". This font should be available on any Windows machine. You need to get a copy of the font and copy it to the JDK fonts directory, for example "/usr/local/jdk1.2.2/jre/lib/fonts".

In the "fonts" directory there is a file named "fonts.dir" that lists the available, scalable fonts for the Sun JDK. Edit this file (you may need to be root) to include the symbol.ttf font file like:

symbol.ttf -urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
You may notice whitespace in the file after the other font names. Note that these are spaces and not tabs. After you have added the above line, increment the number on the first line of the file by one (to indicate the total number of fonts listed in the file).

Hope this helps,
Steven.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top