Re: Help me
At 02:29 AM 3/18/00 -0500, Tum Power wrote:
>
>How do I install JAMA into the JDK of mine..
You do not need to "install" it into the JDK, only make sure the JVM knows
where the library is at. In Windows, you need to modify your autoexec.bat
file to provide classpaths to the Jama library. For instance, your file
might look like:
SET JAVA_HOME=C:\JDK1.2
SET JAMA_HOME=C:\Jama
SET CLASSPATH=%CLASSPATH%;%JAMA_HOME%
That's all you need. In fact, if you put the Jama folder as a
sub-directory of JDK1.2, the JVM will find it. What I do is put the Jama
folder under the primary application directory, then you don't need to
classpath Jama at all. For instance, let's say my application is in a
directory C:\newapp, here's what you would do:
SET JAVA_HOME=C:\JDK1.2
SET APP_HOME=C:\newapp
SET CLASSPATH=%CLASSPATH%;%APP_HOME%
You don't need to explicitly reference Jama (or any other package you're
using such as graphics, swing add-ons, etc) if you do it this way.
To make sure your classpaths are correct, once you modify autoexec.bat,
reboot, and then open a DOS window and type in SET, this will echo system
settings including paths and classpaths. When you are using Jama, and you
get a compiler error saying "Can't find class ...", that probably means
your classpaths are not set properly. Try creating some simple examples
using Jama (I have several if you would like them) to verify the paths.
-------------
Lyn Greenhill
DynaTech Engineering, Inc.
- References:
- Help me
- From: Tum Power <HMTum@kmitl.ac.th>
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov