This chapter contains the following topics:
You must set up additional information in your web servers to enable the charts to appear correctly in the console.
See JD Edwards EnterpriseOne Tools Server and Workstation Administration Guide
This section discusses how to enable charts in non-Windows environments.
You need to set up a Java environment variable for your JD Edwards HTML server in the WebSphere administration console to enable charts in non-Windows environments such as UNIX, Linux, and IBM iSeries with WebSphere Application Server 6.0.
Note: Perform these steps after you install or upgrade the JD Edwards HTML Server. |
To enable charts in non-Windows environments:
Sign in to the WebSphere Application Server Admin Console.
Select Servers from the File menu.
Select Application Servers from the Servers menu.
Select the JD Edwards HTML Server, for example, AS_JS_81.
Expand the Java and Process Management link.
Select Process Definition, and then select Java Virtual Machine.
Select Customer Properties, and then click New.
Enter java.awt.headless
in the Name field.
Enter true
in the Value field, and click the Apply button.
Click the Save link on the Confirmation screen.
Click Save.
Restart your JD Edwards HTML Server.
The Font Listing JSP enables you to review the fonts that are loaded to your server. This diagnostic tool enables you to review the fonts by creating a JSP file in a web application on your application server.
The Font Listing JSP does not tell you the fonts that are expected.
This section discusses how to:
Determine the fonts on the server.
Review the fonts.
To determine which fonts are on the server:
Create a file called FontListing.jsp in the web client web application on your application server.
Copy these lines into the FontListing.jsp file:
{!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"} {HTML} {HEAD} {%@ page language="java" contentType="text/html; charset=ISO-8859-1" import="java.awt.GraphicsEnvironment, java.awt.Font" %} {TITLE}Enumerate Fonts{/TITLE} {/HEAD} {BODY} {table} {% GraphicsEnvironment graphicsenvironment = GraphicsEnvironment.getLocalGraphicsEnvironment(); if(graphicsenvironment != null) { String as[] = graphicsenvironment.getAvailableFontFamilyNames(); if(as != null && as.length } 0) { for(int i = 0; i { as.length; i++) { String theString = as[i]; String fontFamily = ""; try { Font font = new Font(as[i], Font.PLAIN, 10); fontFamily = font.getPSName(); } catch (Throwable t) { theString = theString + " " + t.toString(); } out.print("{tr}{td}"); out.print(theString); out.print(" {/td}{td}"); out.print(fontFamily); out.println("{/td}{/tr}"); } } } %} {/table} {/BODY} {/HTML}
To review the fonts:
Navigate to http://[hostname]/jde/FontListing.jsp
Review the font information.
You may need assistance from someone familiar with your application server and Java J2EE.
Charts use the Asian fonts on the server to write out text for images. If the fonts are not on the server, then the system displays squares instead of text. You must install Albany fonts for the system to display the text correctly on charts.
To determine which fonts are installed on the server, run the Font Listing JSP.
This section discusses how to:
Set up WebSphere running on Microsoft Windows platforms.
Set up OAS running with Sun Microsystems JRE.
Set up IBM iSeries.
Note: To get the Albany fonts, download Patch 3244117 from Oracle. Five .ttf files in the patch make up the Albany fonts:Albany WT: Generic non-East Asian font Albany WT J: Japanese flavor font Albany WT K: Korean flavor font Albany WT SC: Simplified Chinese flavor font Albany WT TC: Traditional Chinese flavor font |
IBM servers assume that the Arial Unicode MS font or the Times New Roman font is installed. If they are not installed, you need to install the Arial Unicode MS font. You must be licensed to a product that includes the font. If you are not licensed to a product that includes the font, use the Albany fonts.
To install the Albany fonts:
Download the .ttf file that corresponds to your required font to a temporary directory on the server.
Copy the font file from the temporary directory and paste it into the %win_dir%\Fonts directory in Microsoft Windows Explorer.
The system installs the font automatically.
Select the Control Panel.
Select Fonts.
Verify that the required Albany font is available.
Select the %was_dir%/java/jre/lib/font.properties file.
Find this line: substitute.0=Arial Unicode MS=%SUBSTITUTE FONT NAME%
, where %SUBSTITUTE FONT NAME%
is typically equal to a Times New Roman font.
Change the %SUBSTITUTE FONT NAME%
to your required Albany font, such as Albany WT,
Albany WT J,
Albany WT K,
Albany WT SC,
or Albany WT TC
.
Restart your WebSphere Application server.
You can use the Albany fonts with Sun Microsystems JRE.
To install the Albany fonts:
Do one of these tasks for the system to install the required font automatically:
Download the .ttf file that corresponds to your required font to the [JRE_TOP]/lib/fonts directory or to a directory to which the JAVA_FONTS variable points.
The directory must be visible to the X display server for the UNIX platform.
For Microsoft Windows, extract the .ttf file in the %win_dir%/fonts directory.
Select the [JRE_TOP]/lib/font.properties file.
Change each sanserif block to point to the Albany font. For example:
sansserif.0=Arial,ANSI_CHARSET sansserif.1=Albany WT J sansserif.bold.0=Arial Bold,ANSI_CHARSET sansserif.bold.1=Albany WT J sansserif.italic.0=Arial Italic,ANSI_CHARSET sansserif.italic.1=Albany WT J sansserif.bolditalic.0=Arial Bold Italic,ANSI_CHARSET sansserif.bolditalic.1=Albany WT J
Add the font file to the section of [JRE_TOP]/lib/font.properties. For example filename.Albany_WT_J=ALBANWTJ.TTF
.
Restart your application server.
To set up IBM iSeries:
Verify that you have the World Fonts option.
GO LICPGM.
Select Option 10 (Display installed licensed programs).
Press F11 until the headers contain Licensed Program, Product Option, and Description.
Look for Licensed Program 5722SS1, Product Option 43, Description Additional Fonts.
Order the font if it is not listed. Contact your system administrator to do so.
Download the font.properties.worldfont and fontdir files that are shown on the IBM web site: www.ibm.com
Search on "Using DBCS on NAWT".
Download the files.
Copy the files to a directory on your I5 server.
Run this shell script lines from QSHELL (qsh) using the target directory to which you copied the files:
mv -i /QIBM/ProdData/Java400/jdk13/lib/font.properties /QIBM/ProdData/Java400/jdk13/lib/font.properties.sav mv -i /QIBM/ProdData/Java400/jdk14/lib/font.properties /QIBM/ProdData/Java400/jdk14/lib/font.properties.sav # cp -i font.properties.worldtype /QIBM/ProdData/Java400/jdk13/lib/font.properties cp -i font.properties.worldtype /QIBM/ProdData/Java400/jdk14/lib/font.properties cp fonts.dir /QIBM/ProdData/OS400/Fonts/TTFonts/fonts.dir