File: PJAToolkitDemo1.2.sh

package info (click to toggle)
pja 2.5-5
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 788 kB
  • ctags: 1,098
  • sloc: java: 8,860; sh: 73; xml: 69; makefile: 18
file content (32 lines) | stat: -rwxr-xr-x 1,640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# With JDK <= 1.1, use PJAToolkitDemo.sh
#
# pja.jar must be in bootclasspath or Toolkit.getDefaultToolkit ()
# and GraphicsEnvironment.getLocalGraphicsEnvironment () will fail to
# load com.eteks.awt.PJAToolkit and com.eteks.java2d.PJAGraphicsEnvironment classes.
#
# Check java.awt.fonts path : default is set to /.../jdk.../jre/lib/fonts
#   where Lucida True Type fonts delivered with JDK 1.2 are.
#   You can add other directories to this path separated by :
#
# user.home system property must be set to the directory where lib/font.properties file
# will be found during GraphicsEnvironment.getLocalGraphicsEnvironment () call.
# ../lib/font.properties file delivered with PJA uses Lucida True Type default fonts.
#
# Under JDK 1.2, you may have to add an other True Type font file in java.awt.fonts path
# if a "No fonts were found in ..." message appears when you use
# GraphicsEnvironment.getLocalGraphicsEnvironment ().getAvailableFontFamilyNames () or
# GraphicsEnvironment.getLocalGraphicsEnvironment ().getAllFonts () methods.
# This font file can be a copy of one of Lucida True Type default fonts (this is due
# to a bug that doesn't take into account all the fonts already used in lib/font.properties)
#
# Run this command in the bin directory of pja or check user.home directory
#
java -Xbootclasspath/a:../lib/pja.jar \
     -Dawt.toolkit=com.eteks.awt.PJAToolkit \
     -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
     -Djava2d.font.usePlatformFont=false \
     -Djava.awt.fonts=/usr/local/jdk1.2.2/jre/lib/fonts \
     -Duser.home=.. \
     -classpath ../lib/pjatools.jar \
   ToolkitDemo