[Fwd: Re: [Fwd: Re: Installing Jama]]


Sender: Bruce Miller <bruce.miller@nist.gov>
Subject: Re: [Fwd: Re: Installing Jama]


gtg680f@mail.gatech.edu wrote:
> Hello, again

I don't know any windows specifics, and I'm a bit rusty
on the nuances of classpath (Sun occasionally changes things around).
But as I recall it, the directories in a classpath point to
roots of package hierarchies.  For example, if the class
foo.bar.Baz was in somewhere/foo/bar/Baz.class, then you would
add somewhere to classpath.

A jar file is considered to be a packed directory, but you
have to list them explicitly in the classpath (or used to).
There _is_ a special directory under the jdk/jre where java
will read all jars without explictly listing them, but 
(a) I forget which it is and (b) java will load them all
everytime it starts; Jama is probably too application specific
to want to do that.

So, try this: however you set your classpath, add the
full filename for the jar, rather than the directory you put it in.
And as an aside, I probably would not put it in the JDK's
directory to avoid loosing it when you upgrade.

> Okay, below are the exact commands I entered into the command prompt.  I 
> am not
> sure what all of the errors mean, but I would certainly appreciate any 
> help.
> 
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> 
> C:\Documents and Settings\Compaq_Owner>cd c:\java\jdk1.5.0
> 
> C:\Java\jdk1.5.0>echo %classpath%
> c:\Java\jdk1.5.0
> 
> C:\Java\jdk1.5.0>java Jama.test.TestMatrix
> Exception in thread "main" java.lang.ClassFormatError: Unknown constant 
> tag 13 i
> n class file Jama/test/TestMatrix
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClass(Unknown Source)
>        at java.security.SecureClassLoader.defineClass(Unknown Source)
>        at java.net.URLClassLoader.defineClass(Unknown Source)
>        at java.net.URLClassLoader.access$100(Unknown Source)
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> 
> C:\Java\jdk1.5.0>
> 
> Wakefield Travers
> 
> Quoting Ron Boisvert <boisvert@nist.gov>:
> 
>> ... or this
>>
>> -------- Original Message --------
>> Subject:     Re: Installing Jama
>> Date:     Thu, 8 Jun 2006 15:48:18 -0400 (EDT)
>> From:     Ray A. Conner <rconner@objectsciences.com>
>> Reply-To:     jama@nist.gov
>> To:     Multiple recipients of list <jama@nist.gov>
>>
>>
>>
>> Can you paste in here what you typed in for step #9 and the result?
>> What is the exact command-line that you are issuing to execute the demo
>> programs, and can you supply the full text of the error (the whole stack
>> trace)?
>>
>> As a side note, when you submit questions to programming forums, try to
>> reproduce your problem in a completely textual form (both what you
>> entered and everything the computer spit back at you) and append that to
>> the email.
>>
>>
>> gtg680f@mail.gatech.edu wrote:
>> > Hello,
>> >
>> > I am an undergradute aerospace student at Georgia Tech doing research
>> > for one of
>> > my Professors.  I saw the Jama package online and would like to use it
>> > for some
>> > matrix operations, however, I am not able to get my computer to
>> > recognize the
>> > Jama package.
>> >
>> > I have tried the following instructions listed in another thread.
>> > To install Jama on a windows NT/2000 box do the following.
>> > 1) Install Jama into a subdirectory of the jdk e.g. D:\jdk1.3\Jama
>> > 2) From control panel select system
>> > 3) Click on the environment tab
>> > 4) Under user variables for <userid> locate CLASSPATH
>> > 5) If CLASSPATH is not present add it by simply typing the name into 
>> the
>> > variable box
>> > 6) set the CLASSPATH value to the jdk path and the current directory 
>> e.g.
>> > D:\jdk1.3;.
>> > 7) click on the set button and then click on apply
>> > 8) to test to make sure the CLASSPATH variable is setup start a command
>> > prompt window
>> > 9) type echo %CLASSPATH% at the dos prompt and you should get back the
>> > jdk
>> > path set in step 6
>> > 10) now when you want to use Jama simply include the following: import
>> > Jama.*;
>> >
>> > My ClassPath echos to the directory that contains Jama, but when I try
>> > to run
>> > the TestMatrix or MagicSquaresExample applications I get an 'Exception
>> > in thread
>> > "main" java.lang.NoClassDefFoundError' message.
>> >
>> > I am using Microsoft Windows XP the Home Edition.  I am not a computer
>> > science
>> > student so I may be overlooking something very simple that an 
>> experienced
>> > software engineer would know.
>> >
>> > Secondly, and maybe more importantly, what kind of recognition or
>> > citation do I
>> > need to give in order to use Jama.  I read some threads that nothing
>> > is needed
>> > by I wanted to make sure that what I was reading was correct.
>> >
>> > Wakefield Travers
>> > gtg680f@mail.gatech.edu
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>>
>>
>>
> 
> 
> -- 
> 
> 
> 
> 
> 
> 


-- 
bruce.miller@nist.gov
http://math.nist.gov/~BMiller/







Date Index | Thread Index | Problems or questions? Contact list-master@nist.gov