[Fwd: Re: [Fwd: Installation problems]]
- Subject: [Fwd: Re: [Fwd: Installation problems]]
- From: Ron Boisvert <boisvert@nist.gov>
- Date: Tue, 25 Jul 2006 16:09:36 -0400
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=ISO-8859-1; format=flowed
- User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
-------- Original Message --------
Subject: Re: [Fwd: Installation problems]
Date: Tue, 25 Jul 2006 14:32:07 -0400 (EDT)
From: Manu Hack <manuhack@gmail.com>
Reply-To: manuhack@gmail.com
To: boisvert@nist.gov
References: <44C65749.7010306@nist.gov>
Thanks. I unziped and add the directory in the directory. However, it
still didn't work. I even tried to put the directory in the same folder
as in my test file so that I can use the package. It turned out I still
got the message: cannot access Jama.Matrix. If the Jama directory is
not in my folder, the error message would become : package Jama does not
exist.
On 7/25/06, *Ray A. Conner* < rconner@objectsciences.com
<mailto:rconner@objectsciences.com>> wrote:
You need to unzip the zip file and add the directory above the
resulting
"Jama" directory to your classpath instead (assuming that zip file
contains the same stuff as the version I got a few years ago).
Most open source Java products these days will provide .jar files,
which
you would explicitly add to your classpath (rather than the directory
containing the class files). But Jama was released long before this
became common practice.
A side note - if you're running from the command-line and adding these
things to your "global" classpath (changing the environment variable via
Windows dialogs), then you may run into problems if you're working on
more than one project. This is because any time you run any Java
program, Jama (and whatever else you put in the classpath) will be on
your classpath whether you want it there or not. How to properly deal
with that is really beyond the scope of this mailing list and will be
heavily dependent on your environment, what tools you use, etc. Just
thought I would point it out. I suggest finding a colleague with more
extensive Java knowledge.
- Ray A. Conner
Ron Boisvert wrote:
>
>
> -------- Original Message --------
> Subject: Installation problems
> Date: Mon, 24 Jul 2006 19:00:55 -0400 (EDT)
> From: Manu Hack < manuhack@gmail.com <mailto:manuhack@gmail.com>>
> Reply-To: manuhack@gmail.com <mailto:manuhack@gmail.com>
> To: boisvert@nist.gov <mailto:boisvert@nist.gov>
>
>
>
> I have some difficulties in installing the package. I'm using
Windows
> XP with jdk1.5.0_07. I put the package Jama-1.0.2.zip in the folder
> c:\JavaPackage and I added the classpath in envirnment variable as
> classpath=.;C:\JavaPackage\Jama- 1.0.2.zip. Then I write up a test
> class to test. I can run the line import Jama.*; without error
but when
> I added the two lines as in the example in the website,
>
> double[][] array = {{1.,2.,3},{4.,5.,6.},{7.,8.,10.}};
> Matrix A = new Matrix(array);
>
> it returned an error : cannot access Jama.Matrix. Any
suggestion would
> be very helpful. Thank you very much.
>
> And I think it would be very helpful to describe in the website
how one
> could install the package although it is trivial to many users.
>
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov