Jdk/jre loads incorrect font.properties

I am using Solaris8 Multilanguage edition(4/01) free binary licsence on a Ultra 10 workstation, the jdk/jre version is 1.2.2_05a.
My problem is when I set the language environment to Japanese, the jdk/jre will load font.properties.ja.5.5.1 instead of font.properties.ja, and if I set the language environment to English, the jdk/jre will load the correct one - font.properties, although there is also a font.properties.5.5.1. The 'os.version' system property can be obtained from java program correcttly, it says '5.8'.
Can anybody tell me what is the mechanism causes this? i have to find out the way to ensure the jdk/jre to load the correct font.properties file, any help appreciated!

This reply posted by myself to provide addtional information.
I finally found out the mechanism is:
The following fact tested when the language environment is set to Japanese.
If both font.properties.ja and font.properties.ja.5.5.1 exist, the VM first try to use font.properties.ja, but if font.properites.ja contains any font which causes a 'Font specified in font.properties not found' error, the VM abandons font.properties.ja and tries to use font.properties.ja.5.5.1, if font.properties.ja.5.5.1 doesn't cause any error, no error will be output, but if there is still any font cause an error, the error will be printed.
If only one file exists, it will be used, and any error caused by it will be printed.
So if font.properties.ja contains any font which causes an error, the result looks like that the VM only loaded font.properties.ja.5.5.1.
And if the lanuage environment is set to C, only font.properties will be loaded, any error caused by it will be printed. font.properties.5.5.1 will never be used.
Is this the specification? who knows...
FYI

Similar Messages

  • Loading "font.properties" from different location

    Is it possible to tell the JVM to load "font.properties" files from a different location instead of "$JAVA_HOME/jre/lib"?
    Thanks in advance.
    Regards.

    Is it possible to tell the JVM to load
    "font.properties" files from a different location
    instead of "$JAVA_HOME/jre/lib"?
    Thanks in advance.
    Regards.I am also looking for a solution for this, since it's not a good idea to modify the JRE itself.
    Could anybody help? Thanks.

  • Font.properties

    Is the jre using font.properties at all when displaying characters in the GUI? I removed all font.properties* files from my jre/lib directory and I am still able to display English characters and double-byte Korean characters. Certain fonts are not working for the Korean, but this all seems independent of the font.properties files. I'm using jdk 1.3.1_06.
    Bleu

    I have i18n.jar in my classpath and LocaleElements_ko.class is in it. The only font that works for me in Korean is Dialog with BOLD style. What relationship does font.properties have to i18n.jar? I guess the jre is getting the appropriate Font based on the Locale out of the i18n.jar? What do i need to do to get additional fonts (really I just want Dialog with PLAIN style) to work in Korean?
    thanks,
    Bleu

  • Font.properties files

    Hello!
    Do you know at what point does the Java Runtime load font.properties file and how it selects the one to load?
    I am struggling with displaying cyrillic characters in AWT controls.
    I have a code like this inside the applet's init() method:
    =================================================
    Locale rus = new Locale("ru", "RU");
    this.setLocale(rus);
    DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, rus);
    String s = df.format(new Date());
    displayString = new Label();
    displayString.setLocale(rus);
    add(displayString);
    displayString.setText(s);
    ===========================================================
    The output is supposed to be "12 ������, 2005�."
    Instead, every cyrillic character is replaced with a square box.
    I think the JRE is just loading the wrong font.properties file somehow...
    BTW, my OS is an english version of Windows XP.
    I'll greatly appreciate any suggestions.
    Thanks for your time.

    Which one is loaded is based on the locale of the JVM at start-up time. The locale is taken from the system locale, which on Windows is based on the region/language currently selected. You can override this using java intergreter's options, such as, in your case:
    java -Duser.language=ru -Duser.region=RU yourgrogramUsing the above settings, font.properties.ru will be used. Cyrillic characters will then be displayed properly if appropriate fonts are installed. This, however, may not work with AWT components. To be sure, use Swing -- they are better designed for rendering Unicode characters.

  • "Font.properties not found" error when runInstaller in Suse 7.3 + 9iDB_R2

    when I try to install 9iDB_R2 in Suse 7.3, the runInstaller have this error:
    " Font specified in font.properties not found [--Symbol -medium -r-normal--*-%d-*-*-p-*-adobe-fontspecific] "
    the [Next] button in the installer does not response, but the [Deinstall Products] and [About Oracle Universal Installer] has response and display what normally does.
    I installed almost everything except games and multimedia when installing Suse 7.3
    What is the possible reason?

    I am not sure that I can help you much, but it sounds like a Java install error. The installer uses the JVM to do the install. Do you have any other Java virtual machines loaded on the machine.
    If you do a java -version
    what shows up? I kinda hope that nothing shows up or at worst case is is jdk.1.3.1
    This may be what is causing the problem. Also I believe that there was suppose to be system variables set in the shell you are installing from. Are those set? It has been a while since I installed 9i on RedHat.

  • Why no font.properties.zh_HK?

    In my JRE (1.4.1_06)'s lib directory, there is a font.properties.zh file (for S. Chinese) and a font.properties.zh_TW file (for Taiwan T. Chinese), but no font.properties.zh_HK file (for Hong Kong T. Chinese). Anybody have any idea why?
    Also, does anyone know if it is legal to copy font.properties.zh_TW to font.properties.zh_HK and redistribute it?
    The reason I'm asking: On an English XP box, with the appropriate fonts installed, if I set user.language to zh or zh_TW, the app starts up and displays fine. However, if I use zh_HK I see a bunch of boxes instead of T. Chinese. Once I make the file copy I mentioned above, all is well. Seems odd that file is not included by default.
    Thanks in advance for any insight.
    Jamie

    You probably have problems with both character encoding and font rendering.
    The character encoding part: If you use the same resources for TW and HK, you can't use GBK and Big5 conversions on them. GBK and Big5 are incompatible encodings. Also, GBK is for simplified Chinese, and used in mainland China and in Singapore, but rarely in Hong Kong - it doesn't have all the traditional Chinese characters that are used in Hong Kong.
    What you get from the translator may be encoded in Big5, or it may already be in ISO-8859-1 with Unicode escapes, the only encoding that the Properties class understands. If it's in Big5, use native2ascii to convert it. If it's ISO-8859-1 with Unicode escapes, leave it alone.
    The font rendering part: With Chinese (Taiwan) selected, the font.properties lookup (http://java.sun.com/j2se/1.4.2/docs/guide/intl/fontprop.html#loading ) uses the locale zh_TW and the encoding MS950, and finds font.properties.zh_TW. With Chinese (Hong Kong) it uses the locale zh_HK and the encoding MS950, and finds font.properties.zh. The zh file is for simplified Chinese, so you'll be able to render some, but not all of the Chinese characters used in Hong Kong. If you have HKSCS installed, the lookup uses zh_HK and MS950_HKSCS, and finds font.properties.MS950_HKSCS, which uses fonts appropriate for Hong Kong.
    Your questions:
    1. I don't know why the warnings are so strong. The only reason given is that "the package may affect private use characters", which could be a serious problem for somebody who seriously uses Chinese, but won't impact your occasional testing. You may want to check with Microsoft.
    2. That's what the support in JRE 1.4.1 and up is designed for. The only problem is that the font.properties files aren't consistently named - some are named using locale IDs, others using encoding names, with the results described above.
    3. To render Chinese characters in non-Chinese environments, you should upgrade to JRE 5.0 - its multilingual font rendering support uses fonts for all writing systems that it can find on the OS (http://java.sun.com/j2se/1.5.0/docs/guide/intl/enhancements.html#desktop ). With JRE 1.4.1 or 1.4.2, you'd have to look for Chinese fonts yourself and request them using their physical font names. For more information, see http://java.sun.com/j2se/corejava/intl/reference/faqs/index.html#desktop-rendering.
    4. JRE 1.4.1 is no longer supported, so info is hard to find. The documentation for JRE 1.4.2 mentions "HKSCS" at http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html#jfc. I admit, that's not too clear. A bit more helpful is the name of the font.properties.MS950_HKSCS file. Finally, this reply is info from Sun.
    Norbert

  • Font.properties to set custom in-house fonts

    Hi all,
    Currently attempting to get Forms Server to display a custom fonts called TH Sans Serif which is MS Sans Serif modified for our special needs. We need to show a whole array of fonts which caters for Rumanian, Hungarian, Polish, Slovak, Western European fonts amongst others. Problem is that the font.properties file (loaded with Jinitiator to be found under %Jinitiator_Home%\lib) maps 4 fonts (Monospaced, SansSerif, Serif, Dialog) that are used in the registry.dat file. Apparently reading from newsgroups it is possible to set one of these four mappings to your own custom font. Haven't unfortunately found a success case yet. Can anyone help.
    Thanks in advance.

    Please use the Forms forum for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Using font.properties to map custom in-house true type fonts

    Hi all,
    I'm currently attempting to get Forms Server to display a custom fonts called TH Sans Serif which is MS Sans Serif modified for our special needs. We need to show a whole array of fonts which caters for Rumanian, Hungarian, Polish, Slovak, Western European fonts amongst others. Problem is that the font.properties file (loaded with Jinitiator to be found under %Jinitiator_Home%\lib) maps 4 fonts (Monospaced, SansSerif, Serif, Dialog) that are used in the registry.dat file. Apparently reading from newsgroups it is possible to set one of these four mappings to your own custom font. Haven't unfortunately found a success case yet. Can anyone help.
    Any suggested websites or newsgroups dealing with this would be greatly appreciated.
    Thanks in advance.
    Holger

    Please use the Forms forum for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Font specified in font.properties not found

    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    This message gets printed around 3 dozen times on the screen every time I start a Swing app with JDK 1.3 on SuSE Linux 7.3.
    With J2SDK 1.4 this does not happen and the main font being used in the app is different.
    How do I solve this bug in JDK 1.3?

    How did you solve this? Could you please share your secret. I am facing the same problem on Solaris and would love to find a solution.

  • PDF's wont load technic font?

    PDF wont load technic font instead displays lines of dots where text should be?

    It could be that the font is not embedded into the document. What type of font is technic? Look at the document properties and see if it is embedded into the document.

  • Which font.properties file to use- please help

    I am working on an application for accepting hindi text as input.Please help me in following matter-
    1. I have several font.properties file on my application server machine. Also some jre have font.propeties file. Which file should I change so that my forms 6i deployed on this application server can accept hindi font insatlled on application server machine.
    2. If I need to change my Jinititor , where should i make changes.
    Please help

    you have asked so many questions about hindi text, etc... and nobody could help you. Please contact the support and open an ITAR at metalink.oracle.com. They should help you.

  • Memory problem with jdk/jre 1.1.8

    My name is BERGMANN Yannick.
    I'm working for IRM in Li?ge and we developped an application (user interface for an industrial measurement system) in Java (JDK/JRE version : 1.1.8).
    We have a big memory problem with this application :
    - This user interface is running on a WINDOWS NT PC with 128MB.
    - This is the command to lanch our application :
    C:\Program Files\JavaSoft\JRE\1.1\bin\jrew.exe" -ms32m -mx32m -cp "\Program Files\HMI\HMI.zip;\Velocis\Add_On\Jdbc\raima.jar;\Program Files\Swing-1.1.1\swingall.jar" be.irm.hmi.kernel.HMI -t15 -d"Velocis rdstcp" -newdb -mf1m -mr20
    - When our application is running, everything seems to be OK in memory for it. The garbage collector seems to work properly and our application has always at least 5MB free memory (We use the java instruction "Runtime.getRuntime().freeMemory()" to know this).
    - But when we look in the "Windows NT task manager" for the "jrew" application, the memory increases ALWAYS.
    - After 5 days our application is completely frozen and blocked ...???
    - here is a memory map of our Windows NT PC :
         "jre.exe"     "commit total"     "commit limit"     "commit peak"     "physical total"     "physical available"     "physical file cache"     
    Monday     92264     109256     194944     109424     130484     19492     6216     
    Thuesday     106196     123072     194944     123348     130484     6072     5840     
    Wednesday     110836     132288     194944     132416     130484     4408     5140     
    Thursday     108200     144980     194944     145140     130484     4888     5148     
    Friday     109440     158319     194944     161334     130484     4911     4992     
    Monday     111600     209060     228548     209148     130484     5184     3484     
    Have you any idea of what is happening with "jrew" in memory ?
    We have had this problem for six month and we are totaly out of idea.
    If you can give us any idea, we'll appreciate a lot.
    Thanks in advance,
    BERGMANN Yannick
    IRM SA - Software Engineer
    Tel. (32)4/239.90.10
    Tel. (32)4/239.90.74 (direct)
    Fax (32)4/263.40.97
    E-mail [email protected]

    We had a memory problem with a swing applet in our company. The major reason for this was that we added new components in a JTree and removed them later again, and the components we removed were never garbage collected. This was because with these components we added different listeners, and we didn't remove the listeners after we didn't need the components anymore. After we corrected this, the components where garbage collected.
    Perhaps it's a similar problem you have, or I have no idea. Check that you remove actionlisteners, mouselisteners etc from components you want to be garbage collected.
    You could also test your application with OptimizeIt to see what objects you create and how many you get of them over time: http://www.vmgear.com

  • How to load a font as resource in javafx ?

    Hi,
    I am trying to load a font as a resource as supposed of installing the font on the system.
    Is there a way in javafx to load font from a file at runtime?
    Thanks.

    Yes, there is a way, and there's a tutorial for this on javafx.com: www.javafx.com/docs/techtips/custom_fonts/

  • Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'

    Hi,
    I have installed Forms & Reports Services Standalone (10.1.2.0.2) on RHEL 5 and now I am applying the Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3), but OUI gives the following error:
    Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'.
    [$ORACLE_HOME/jdk/jre/bin/java
    (Text file busy)]
    I can't seem to find anything about this error on metalink or via google. Can anyone help me solve this? Thanks.

    Ok, this time I stopped all processes first with opmnctl stopall and emctl stop iasconsole. I then started OUI again to install the patch. It seemed to go fine - i didnt get that java error this time, but another error almost at the end of the installation:
    Error in invoking target 'proxy_install runm_install server_install cgi_install
    cli_install conv_install qv_install' of makefile
    '/opt/oracle/Forms10gR2/reports/lib/ins_reports.mk'
    According to Metalink ID 564174.1 - "Any installation of Oracle Application Server 10g Release 2 (10.1.2.0.2) on OEL 5.x or RHEL 5.x in which Reports is getting installed will fail with reports relinking errors" and the solution is as follows:
    # rpm -i xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
    # mv /usr/lib/libXtst.so.6 /usr/lib/libXtst.so.6.ORG
    # ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6
    I have already done these 3 steps before the base installation (just to avoid this error), yet I am getting this error even when the symbolic link already exists. Do you think I can just ignore this error and continue with the installation, or is there something else I need to check first?

  • An Error Message when loading a Resource.properties File

    Hi, all:
    I tried to load a Resources.properties file in a JSP page:
    <%@ page import="java.util.*" %>
    <%
    ResourceBundle rb = null;
    try {
    rb = ResourceBundle.getBundle("Resources");
    } catch (MissingResourceException e) {
    rb = null;
    throw new RuntimeException("The resource is missing!");
    %>
    Test
    When I run it, I got the following error message:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    Any ideas what's going on here?
    Thanks
    Jeff

    Hi,
    I had a similar error just a few days ago. I could solve it by replicating the datasources again and activating the transfer structures via rs_transtru_activate_all. After that the load went fine.
    regards
    Siggi

Maybe you are looking for

  • Getting int values from a char array

    Hi, I need to make a fast program which reads lots of data from files and process them. I need to interpret these data as int's. To be more efficient and avoid to make a lot of disk access, I allocate in memory buffers part of the data, then process

  • Calendar colours changing themselves

    I've been using iCal on Macbook Air syncing the Calendar over iCloud to both iPad2 and iPhone5 for about a month. I have two calendars - one was in Green and the other Orange (these were the default colours from when the devices were first used and I

  • Emkey is not valid , how do i fix that?

    /u01/app/oracle/product/gc/oms10g> /u01/app/oracle/product/gc/oms10g/bin/_emctl config emkey -repos_ Oracle Enterprise Manager 10g Release 5 Grid Control Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Please enter repository passwo

  • I get a message that itunes has stopped working when I try to sync photos

    I get a message that itunes has stopped working when I try to sync photos. Error message says "APPCRASH ..." Can anyone help? Thanks.

  • Exchange Management Shell Cannot Find Global Catalog Servers

    Hello, I have a client with a single Exchange 2013 RU2 multi role server.  Exchange works fine with no issues.  However, when I open EMS and try to do anything (example get-mailbox) it returns the following error.  It was working up until about a wee