I tried to run the updates using command line in Kubernetes cluster and I see there any 95 updates available. But the updates fail with the following error
Exception in thread “main” java.lang.Error: Probable fatal error:No fonts found.
at sun.font.SunFontManager.getDefaultPhysicalFont(SunFontManager.java:1236)
at sun.font.SunFontManager.initialiseDeferredFont(SunFontManager.java:1100)
at sun.font.SunFontManager.findOtherDeferredFont(SunFontManager.java:1037)
Many “headless” environments are configured without fonts (e.g., by IT staff labouring under the misconception that you only need fonts in a GUI). In practice there are use cases such as generating labels in PNG images that need fonts.
Using Fonts with OpenJDK describes ways to add fonts to a “headless” environment, either by adding linux distro font packages or pointing Java to a directory of fonts you have created.
The folder can be in your own directory. If your access doesn’t allow you to create your own folder you won’t be able to do much with SNAP. You may need to ask the manager of the system for help.
The examples suggest “dejavu” fonts. The just follow the directions for using a custom font directory. They give you a new entry for the Java command-line.
I have downloaded the devaju fonts in my local dir and tried to configure it using java command line using -Dsun.java2d.fontpath=MYFONTDIR. But this does not seem to work . Could you please help here ?
You have posted images, not text (and using low-contrast colors that are very difficult to read on this laptop). It looks like you have
-Dsun.java2d.fontpath<space>=<space>MYFONTDIR (e.g., with space characterss around the =).
Try removing the two space characters.
When working with SNAP software you have to be careful with spaces and “look-alike” characters. Posting text makes it possible for others to detect problems that are not visible in screen captures.