JDK-4247375 : unable to display on an X terminal with JDK1.1.8
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-06-17
  • Updated: 1999-08-02
  • Resolved: 1999-08-02
Related Reports
Duplicate :  
Description

Name: vi73552			Date: 06/17/99


I want to display a Frame on a NCD X11R6 terminal
(by running the application on a workstation with a setenv DISPLAY
set to the X terminal)
I encountered bug 4033523 and tried to apply the workaround
listed in
http://java.sun.com/products/jdk/awt/workarounds.html
but it still does not work !!


Here is the error message :
java.io.FileNotFoundException
        at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:198)
        at sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:77)
        at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:105)
        at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:59)
        at sun.awt.motif.MToolkit.createFrame(MToolkit.java:118)
        at java.awt.Frame.addNotify(Frame.java:203)
        at java.awt.Window.pack(Window.java:124)

I suspected the file not found was a font, because the NCD X terminal
I want to display on has very few fonts (5)
and I a do not want to add fonts to it.
The workaround quoted above sugested to  remove lib/fonts.properties
but there is no such file with the 1.1.8 (only  font.properties.ISO8859_15_FDIS
and others for other locales)

So I first created a  lib/fonts.properties file like this :

#/usr/opt/java118/lib/fonts.properties
serif.plain.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
serif.bold.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
serif.italic.0= -bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
serif.bolditalic.0= -bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1

sansserif.plain.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
sansserif.bold.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
sansserif.italic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
sansserif.bolditalic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1

monospaced.plain.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
monospaced.bold.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
monospaced.italic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
monospaced.bolditalic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1

dialoginput.plain.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialoginput.bold.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialoginput.italic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialoginput.bolditalic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1

dialog.plain.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialoginput.bold.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialog.italic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
dialog.bolditalic.0=-bigelow & holmes-menu-medium-r-normal--13-100-100-100-p-77-iso8859-1
# end

("menu" is one of the 5 fonts I have on that X terminal, 
along with fixed and 10x20,I checked with xfd and it displayed OK)

I even tried to replace font.properties.ISO8859_15_FDIS with that file
it still does not work... (same error)
(Review ID: 84462) 
======================================================================

Comments
WORK AROUND Name: vi73552 Date: 06/17/99 I tried to apply the workaround listed in http://java.sun.com/products/jdk/awt/workarounds.html (see bug description) but it still does not work !! ======================================================================
11-06-2004