Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4247375

unable to display on an X terminal with JDK1.1.8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.1.8
    • client-libs
    • generic
    • generic

    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)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              xdengsunw Xianfa Deng (Inactive)
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: