From owner-nwchem-users@emsl.pnl.gov Tue Sep 21 13:34:46 2004 Received: from odyssey.emsl.pnl.gov (localhost [127.0.0.1]) by odyssey.emsl.pnl.gov (8.12.10/8.12.10) with ESMTP id i8LKYjgm015480 for ; Tue, 21 Sep 2004 13:34:46 -0700 (PDT) Received: (from majordom@localhost) by odyssey.emsl.pnl.gov (8.12.10/8.12.10/Submit) id i8LKYjt3015479 for nwchem-users-outgoing; Tue, 21 Sep 2004 13:34:45 -0700 (PDT) Date: Tue, 21 Sep 2004 13:32:50 -0700 From: Mike Osterman Subject: Problems compiling NWChem 4.6 Java source To: nwchem-users@emsl.pnl.gov Message-id: <41508FF2.4010507@whitman.edu> MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------050803020301080407080402 X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) Sender: owner-nwchem-users@emsl.pnl.gov Precedence: bulk This is a multi-part message in MIME format. --------------050803020301080407080402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello- I'm trying to compile the java source of NWChem 4.6 on a Xeon cluster running Rocks Linux. I have installed and compiled Ptolemy and CFormat, making sure that my javac binary is for version 1.3.x (we initially had 1.4.x on the system). To get cformat to compile, I had to get the java3d-sdk. It was looking for javax.vectormath.GVector, which I found to be available in the java3d package. My environment variables for the compile are: PTII=/home/dayle/tmp/ptII4.0.1;export PTII NWCHEM_CLASSES=/data/data1/nwchem-4.6/lib/classes;export NWCHEM_CLASSES PTPLOT_APPLICATION=/home/dayle/tmp/ptII4.0.1/ptolemy/plot/plotapplication.jar;export PTPLOT_APPLICATION MYCLASSES=/usr/local/src/cformat/;export MYCLASSES CLASSPATH=$CLASSPATH:${NWCHEM_CLASSES}:${PTPLOT_APPLICATION}:${MYCLASSES};export CLASSPATH I'm having errors with the 'make' in /data/data1/nwchem-4.6/src/java. It gets well into the compile process, then dies when compiling the nwchem_Segment.java file: --------------------------------------------- make[2]: `nwchem_Param.class' is up to date. (export CLASSPATH ; CLASSPATH=.:/usr/local/src/cformat/:/home/dayle/tmp/ptII4.0.1/ptolemy/plot/p lotapplication.jar; javac nwchem_Segment.java) nwchem_Segment.java:310: cannot access PrintfWriter bad class file: /usr/local/src/cformat/PrintfWriter.class class file contains wrong class: cformat.PrintfWriter Please remove or make sure it appears in the correct subdirectory of the classpath. PrintfWriter sgmFile = new PrintfWriter(new FileWriter("TEMP.sgm")); ^ 1 error make[2]: *** [nwchem_Segment.class] Error 1 make[2]: Leaving directory `/data/data1/nwchem-4.6/src/java' make[1]: *** [classes] Error 2 make[1]: Leaving directory `/data/data1/nwchem-4.6/src/java' make: *** [all] Error 2 --------------------------------------- It appears to be a problem with the cformat library that the nwchem java README file lists as a required 3rd-party library. Does anyone have any suggestions? Thanks, -- Michael Osterman Academic Technology Consultant/Developer Whitman College ostermmg@whitman.edu 509-527-5419 --------------050803020301080407080402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello-

I'm trying to compile the java source of NWChem 4.6 on a Xeon cluster running Rocks Linux.

I have installed and compiled Ptolemy and CFormat, making sure that my javac binary is for version 1.3.x (we initially had 1.4.x on the system). To get cformat to compile, I had to get the java3d-sdk. It was looking for javax.vectormath.GVector, which I found to be available in the java3d package.

My environment variables for the compile are:

PTII=/home/dayle/tmp/ptII4.0.1;export PTII
NWCHEM_CLASSES=/data/data1/nwchem-4.6/lib/classes;export NWCHEM_CLASSES
PTPLOT_APPLICATION=/home/dayle/tmp/ptII4.0.1/ptolemy/plot/plotapplication.jar;export PTPLOT_APPLICATION
MYCLASSES=/usr/local/src/cformat/;export MYCLASSES
CLASSPATH=$CLASSPATH:${NWCHEM_CLASSES}:${PTPLOT_APPLICATION}:${MYCLASSES};export CLASSPATH

I'm having errors with the 'make' in /data/data1/nwchem-4.6/src/java. It gets well into the compile process, then dies when compiling the nwchem_Segment.java file:

---------------------------------------------
make[2]: `nwchem_Param.class' is up to date.
(export CLASSPATH ; CLASSPATH=.:/usr/local/src/cformat/:/home/dayle/tmp/ptII4.0.1/ptolemy/plot/p
lotapplication.jar; javac nwchem_Segment.java)
nwchem_Segment.java:310: cannot access PrintfWriter
bad class file: /usr/local/src/cformat/PrintfWriter.class
class file contains wrong class: cformat.PrintfWriter
Please remove or make sure it appears in the correct subdirectory of the classpath.
               PrintfWriter sgmFile = new PrintfWriter(new FileWriter("TEMP.sgm"));
               ^
1 error
make[2]: *** [nwchem_Segment.class] Error 1
make[2]: Leaving directory `/data/data1/nwchem-4.6/src/java'
make[1]: *** [classes] Error 2
make[1]: Leaving directory `/data/data1/nwchem-4.6/src/java'
make: *** [all] Error 2
---------------------------------------

It appears to be a problem with the cformat library that the nwchem java README file lists as a required 3rd-party library.

Does anyone have any suggestions?

Thanks,

--
Michael Osterman
Academic Technology Consultant/Developer
Whitman College
ostermmg@whitman.edu
509-527-5419
--------------050803020301080407080402--