jdk1.2.2-beta fonts don't load (X11 v4.1 problem)

jdk1.2.2-beta fonts don't load (X11 v4.1 problem)

Post by Neil » Wed, 22 Aug 2001 07:50:36



Any idea why I cannot load the fonts that go with the jdk1.2.2?
Below are my efforts:

Console command:
$ xset fp+ /usr/X11R6/lib/X11/fonts/URW
X Error of failed request:  86
  Major opcode of failed request:  51 (X_SetFontPath)
  Serial number of failed request:  9
  Current serial number in output stream:  11
$

Snippet from XF86Config:
Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/URW/"
#this last line is the one I want to load

snippet from XFree86.0.log:
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from
 list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/URW/, removing from li
st!

--
neshort _at_ hotmail _dot_ com

 
 
 

jdk1.2.2-beta fonts don't load (X11 v4.1 problem)

Post by Gunther Nik » Wed, 22 Aug 2001 15:59:16



> Console command:
> $ xset fp+ /usr/X11R6/lib/X11/fonts/URW
> X Error of failed request:  86
>  Major opcode of failed request:  51 (X_SetFontPath)
>  Serial number of failed request:  9
>  Current serial number in output stream:  11
> $

  Let me guess: you are using XFree86 4? If thats the case, add the
  following to the module section:

    Load "type1"
    Load "freetype"

  This should help.

  Gunther

 
 
 

jdk1.2.2-beta fonts don't load (X11 v4.1 problem)

Post by Neil » Thu, 23 Aug 2001 11:16:13


Quote:>     Load "type1"
>     Load "freetype"

>   This should help.

>   Gunther

That solved two of my errors. Thanks!
Is it too early to find documentation covering this stuff for X version
4?
Much thanks.
-Neil
--
neshort _at_ hotmail _dot_ com
 
 
 

jdk1.2.2-beta fonts don't load (X11 v4.1 problem)

Post by Gunther Nik » Thu, 23 Aug 2001 19:11:05



>>     Load "type1"
>>     Load "freetype"

>>   This should help.

>>   Gunther

> That solved two of my errors. Thanks!

  I ran into the same problem when I installed V4 for the first time :)

Quote:> Is it too early to find documentation covering this stuff for X version 4?

  man XF86Config and/or checkout www.xfree86.org. BTW, its XFree86 calling
  it "X version 4" is misleading.

  Gunther

 
 
 

1. Differences in jdk1.2.2-beta?

Possibly a newbie question, but in the past, I was able to run the
Jstreet mailer ( see http://www.innoval.com ) with the jdk1.2.2-beta
port.  After seeing some commits to these ports, I updated all of the
JDKs that I had installed on my system.  I execute the following
command to start the mailer:

$JAVA_HOME/bin/java -cp ~/jstreet/innoval.jar innoval.mailer.jstreet &

And now get the following output:

%Exception in thread "main" java.lang.NoClassDefFoundError:
sunw/hotjava/bean/BrowserHistoryListener
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:442)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:282)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

What it's looking for seems to be there, but it refuses to find it:

%ls jstreet
HotJavaBean.jar Sample.java     doc             jstreet.zip     readme
Mailer          Sndspell.jdx    image           license.txt
Sample.class    dict.txt        innoval.jar     mostfreq.txt

I've tried adding the HotJavaBean.jar file to the classpath but it doesn't
seem to help...

Any ideas?

Mike


with "unsubscribe freebsd-java" in the body of the message

2. Call for Papers - 5th Symposium on Operating Systems Design and Implementation (OSDI 2001)

3. JDK1.2.2 vs JDK1.1.7 on COL 2.3 -- some comments

4. Process Identification

5. Loading jdk1.2.2

6. HOW do I make Apache work with .htpasswd files?

7. Mandrake 7.2 X11 can't load default font

8. non SCSI CDROM, SCO OpenServer

9. can't install jdk1.2.2

10. X11 can't load default font

11. Mandrake 7.2 X11 can't load default font

12. Problems building JDK1.2.2 on FreeBSD 4.0

13. X11 'fixed font' problem solved.