Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Warnings when running Java Swing GUI under LInux

0 views
Skip to first unread message

Wilbur Goltermann

unread,
Dec 16, 2001, 2:47:10 PM12/16/01
to
People,

When I run Java Swing GUIs under Linux, I get a number of warnings in
the Xterm window as follows:

Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type
VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type
VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type
VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type
VirtualBinding
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type
VirtualBinding


The font problems were fairly easy to track down and I was able to
eliminate the error messages (ungracefully) by commenting out a number
of lines in the font.properties file in /jre/lib under java's install
directory. I would like to know how to implement a more elegant fix if
you know of one.

The final seven warnings, however, are something of a mystery. The only
file I can find on my entire system which contains the string
"VirtualBinding" is /jre/lib/i386/libawt.so in the java installation
directory. Can anyone tell me what those warnings are about and how to
fix them?

Thanks.

Wilbur Goltermann

Jim Sculley

unread,
Dec 17, 2001, 7:55:00 AM12/17/01
to
Wilbur Goltermann wrote:

> People,
>
> When I run Java Swing GUIs under Linux, I get a number of warnings in
> the Xterm window as follows:
>

<snip warnings>


>
> The font problems were fairly easy to track down and I was able to
> eliminate the error messages (ungracefully) by commenting out a number
> of lines in the font.properties file in /jre/lib under java's install
> directory. I would like to know how to implement a more elegant fix if
> you know of one.


http://java.sun.com/j2se/1.3/jre/install-linux.html#problems


>
> The final seven warnings, however, are something of a mystery. The only
> file I can find on my entire system which contains the string
> "VirtualBinding" is /jre/lib/i386/libawt.so in the java installation
> directory. Can anyone tell me what those warnings are about and how to
> fix them?


The message is actually coming from Linux, not Java. Here is some info
gratuitously snipped from Sun's Bug Parade:

==============================
I did a Google search on VirtualBinding, and came up with some info.
Apparently this is a configuration problem common to users of X/motif
systems
(not specific to Java apps). A lot of people have seen them with Adobe
Acrobat, XEmacs, etc.

Note: a lot of FAQs suggest that you ignore these warnings. Most people
don't see any ill effects, they just find them annoying.

Apparently, the first motif app to run installs _MOTIF_DEFAULT_BINDINGS,
probably so that the user can change the virtual keybindings across all
Motif apps at once.

Solution: edit your $HOME/.motifbind file, and add the keysyms that are
not in your XKeysymDB file (possibly at /usr/lib/X11/XKeysymDB, or at
/usr/openwin/lib/X11/XKeysymDB). I believe the XKeysymDB file contains
mappings for vendor-specific keys.

Example:

osfDelete : <Key>Delete \n\
osfInsert : <Key>Insert

Note that the last entry should not be followed by a \n\

Perhaps


Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding

could be cured with

osfCancel : <Key>Escape

=====================================


Hope that helps,


Jim S.

Wilbur Goltermann

unread,
Dec 17, 2001, 2:10:34 PM12/17/01
to
Jim,

Thanks for the fixes.

The replacement for "font.properties" appears to replace references to
adobe fonts with references to urw fonts. I'll experiment to see how
these replacement fonts look.

In re: the creating of $HOME/.motifbind, the inclusion of the single line:

osfCancel :<Key>Escape

seems to eliminate all of the VirtualBinding warnings. I would like to
find a more global solution, and after experimenting, it appears that
modifying the osfCancel line in /usr/lib/X11/XKeysymDB to look like the
above didn't work. Is there a global config file for motif where I
could accomplish a similar fix for all users?

Regards,

Wilbur

0 new messages