KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/mandarintools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/mandarintools/javasetup.html
<HTML>
<HEAD>
<TITLE>On-line Chinese Tools Java Set Up</TITLE>
</HEAD>
<BODY bgcolor=lightyellow>
<CENTER><H1>Chinese Tools' Java Set-up</H1></CENTER> 

These new versions of my tools have many improvements over the
previous versions, including the much asked for ability to run as a
stand-alone programs.  They also have some new requirements to be run.
All require installing the Java plug-in.  Some (flashcards, add
pinyin, GIF generator) also require a Chinese font.  Instructions on
how to do these steps for various computer platforms are included
below.  You only need to do this once to run all of the tools.  Be
sure to restart your browser after finishing all the steps.  
<P>
If a window appears asking "Do you want to trust the signed applet
distributed by 'Erik Peterson'?", click "yes".
<P>

  <I>Note</I>: Some people have reported having problems with the
applets even after following the steps below.  I'm trying to
understand what the problems are and if they can fixed.  If you
encounter a problem, please send me as much detail about your system
and the nature of the problem, especially what browser and browser
version number you are using and your operating system.  Thank you for
your patience.  Before you write, please make sure you have the
Chinese fonts installed and that they are accessible from other
programs.
<P>
If you are having problems, please do this: In the Control Panel (from
settings on the Start menu) there should be an option for "Java
Plug-in".  Open it and then under "Basic", click "Show Java Console".
Restart your browser and then try to load the page you want again.
The Java console should appear in a separate window.  On some newer
installations, when Java starts a little black and white triangle with
a red nose is placed in the lower-right corner of the Windows.  Click
on it to bring up the Java console.  See what shows up in the console
and then send it to me.  I should be able to tell you what the problem
is and how to fix it.


<P>

The Java that comes with Netscape 6.0 and 7.0 will work for these
pages, but you still need to have Chinese fonts and set the access
permissions.  If you have problems with setting-up, please write me
through my <a href="http://www.mandarintools.com/contact.html">contact
page</A>.


<H2>Windows</H2>
<OL>

 <LI><B>Java 2 Plug-in</B>: Install the Java 2 Plug-In (part of the
Java Runtime Environment) for Netscape Navigator or Internet Explorer,
available at <A
HREF="http://java.sun.com/j2se/1.5.0/download.jsp">JavaSoft</A> by
clicking on the "Download JRE" link.  Restart your browser after
installation.</LI>

<P>
 <LI><B>Chinese Font</B>: For the tools that actually display Chinese
(flashcards, add pinyin, etc.), you will need a Chinese font on your
system.  The applets will automatically find a Chinese font
if you have one.  If you run the applets and the Chinese appears as
empty boxes, you need to install a Chinese font on your system.
<P>
<UL>
  <LI><strong>Windows 95/98/ME</strong>: You can install the <A
HREF="http://www.microsoft.com/windows/ie/downloads/recommended/ime/install.mspx" target="_top">
Microsoft Chinese language packs</A>, to get a suitable font.  I
recommend getting the simplified Chinese language pack (with the MS
Song font) as the traditional one's font doesn't work well with Java
for some reason. 
<P>
 <LI><strong>Windows 2000/XP</strong> users <A HREF="http://www.chinesecomputing.com/os/win2000.html" target="_top">enable Chinese support</A> differently.
</UL>
<BR>
In either case, the <A
HREF="ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP">
Cyberbit font</A> works well with the flashcards.  After you download
it, you will need to uncompress it.  A good program for this is is <A
HREF="http://www.pkware.com"> WinZip</A>.  After uncompressing the
file, install the font by clicking on
"Start"-&gt;"Settings"-&gt;"Control Panel".  Select the "Fonts" icon.
In the window that appears, select "File" and then "Install New Fonts"
from the main menu.  Go to the directory with the Cyberbit font,
select it, and click OK.
<P>
  Other fonts that will work well include:
 <UL>
   <LI>IFCSS's <A HREF="ftp://ftp.ccu.edu.tw/pub/chinese/fonts/unicode/ms-win/">Collection of Chinese Unicode Fonts</A>
for Windows.
<!--   <LI><A HREF="ftp://cle.linux.org.tw/pub2/fonts/wangnew/">HanWang Fonts</A>-->
 </UL>
</LI>
<!-- <P>
 <LI><B>Access Permissions</B>: You need to give the applets
permission to read and write files, access the Internet, and also your
clipboard, much like a regular program.  To do this you need to start
a program called "policytool.exe".  Most likely it was installed by
the Java Plug-In at "C:/program files/javasoft/jre/bin".  If not here,
you can use Windows "Find" from the start button to look for it.  Once
found you can use "Run" from the Start menu to start it.
<UL>
 <LI>When policytool first starts, it will display an error message saying it
can't find a file.  Write down the directory that the error box displays.  Close
the error message box.</LI>
 <LI>Select the button "Add Policy Entry".</LI>
 <LI>In the "Policy Entry" box that comes up, you'll see an entry field labelled
"CodeBase".  In that field type:<BR>
http://www.mandarintools.com/-<BR>
 The final dash is important.  Leave SignedBy blank.</LI>
 <LI>Click on "Add Permission".</LI>
 <LI>In the window that appears, select "AllPermission" in the "Permission" list, then click OK.</LI>
 <LI>Click on the "Done" button in the Policy Entry window.</LI>
 <LI>In the main menu, select File->Save As.</LI>
 <LI>Go to the directory that you wrote down in the first step above.  Type in file name ".java.policy", but
without the quotes.
The first dot is important.  Next click on "Save".</LI>
 <LI>Exit policytool.  If your browser was running, exit it and restart.</LI>
 </UL>
-->
</OL>

<H2>Linux and other Unixes</H2>
<OL>

 <LI><B>Java 2 Plug-in</B>:

 The <A HREF="http://java.sun.com/j2se/1.4.2/download.html"> Java2
Plug-in for Netscape on Linux</A> is now available.  Look for
"Download J2SE v 1.4.2_03" and get the JRE.  You can also run most of
the tools on Linux, including the flashcards using the "appletviewer"
program that comes with the JRE instead of Netscape.  At the command
line, type <P>

<code>appletviewer http://www.mandarintools.com/(pagename)</code>
<P>
   Replace (pagename)

<code>appletviewer http://www.mandarintools.com/(pagename)</code>
<P>
   Replace (pagename) with the name of the web page with the tool.
This could be flashcards.html, cimage.html, pyconverter.html, etc.
Make sure that appletviewer is in your path.
<P>
   Or, for the flaschards, instead of running them as an applet, you
can run them directly as an application.  At the command line type:<P>
<code>java -jar flashcards.jar</code>
<P>
in the same directory as where you unzipped the flashcards.zip file.
<P>
You can download a working version of JDK 2 with the appletviewer from
<A HREF="http://www.javasoft.com/j2se/1.4.2/download.html">JavaSoft</A>.
<P>
 <LI><B>Chinese Fonts</B>: So far, the only way I've been able to use
Chinese fonts successfully with Java on Linux is to install a True
Type font server and then use the same True Types fonts used in
Windows (see above).  Information on True Type Font servers is
available at the <A
HREF="http://www.xfree86.org/current/fonts.html">Fonts in XFree86</A>
site.  I can try to help with questions about this but I'm not an
expert on Linux fonts.
<P>
<!--
 <LI><B>Access Permissions</B>: Giving proper permissions is similar
to the process for Windows.  After installing the JDK, there will be a
program called policytool.  Create the .java.policy file, add "All
Permissions" to "http://www.mandarintools.com/-", then save the file
to your home directory.
-->
</OL>

<P>

<H2>Macintosh</H2>

 <OL>

  <LI><B>Java 2 Plug-in</B>: The Java 2 Plug-in for Macintosh is
installed by default on MacOS X, but is not available on MacOS 8 or 9
(MRJ 2.2 is not the same thing as Java2).

<LI><B>Chinese Fonts</B>: If you are running MacOS X (and you have to
be to run my tools) you likely already have Chinese fonts installed.
If not, see the <A
HREF="http://www.yale.edu/chinesemac/pages/os_x.html">MacOS X</A> page
at the <A HREF="http://www.yale.edu/chinesemac/">Chinese Mac FAQ</A>.
See the Chinese Mac FAQ <a
href="http://www.yale.edu/chinesemac/pages/fonts.html">page on
fonts</A> for more sources of Chinese fonts.

<!--
<LI><B>Access Permissions</B>: Set the appropriate permissions to read
and write files.  See the <A HREF="http://developer.apple.com/documentation/Darwin/Reference/ManPages/html/policytool.1.html">policytool help page</A> for Macinstosh Java on information how to do this.  The process is probably similar to the one for Windows described above.  Mac owners who get it to work are invited to
share how they did it.
-->

</OL>
<P>
<I>Contributions from people familiar with using Java on other
OS'es are welcome</I>

<P>
  Please visit my <A HREF="contact.html">contact page</A> with questions or comments
about setting up Java for these Chinese tools.  Please specify your operating
system and what browser you are using, and as much detail about what you've
already tried as possible.

</BODY>

</HTML>


Anon7 - 2021