Forum OpenACS Q&A: nsjava installation

Collapse
Posted by john menke on
Does anyone have any experience nsjava installation?  I have redhat6.2
aolserver3_0 and blackdown jdk118_v3.  I'm trying to run the
.configure file and it's looking for the path to nsd.h --- I don't
have nsd.h on my system.  It finds ns.h in my aolserver src directory
but gives an error on this nsd.h include file.

I can't run the make without getting past this.  Has anyone installed
nsjava successfully under a similar configuration?

Collapse
Posted by Dan Wickstrom on
When you untar the aolserver source code it creates (for 3.0) a directory called aolserver3_0.  Assuming that you untarred and built aolserver in /usr/local/aolserver, you would run the nsjava configure as follows:

./configure --with-aolserver-src=/usr/local/aolserver/aolserver3_0

The nsd.h file should be in /usr/local/aolserver/aolserver3_0/nsd for this example.

Collapse
Posted by john menke on
I reinstalled the source to the directory and it worked.  Must have deleted the file previously...???
Collapse
Posted by john menke on
Thought it worked... configure worked but make is now failing...this is what I get.  any opinions?

--------------



        NSJAVA version 0.0.6 configured successfully.

Using c-compiler:      gcc

JDK Version:          1.1

Install libnsjava.so:  /home/aolserver/bin

Aolserver include:    /tmp/aolserver3_1/include

Aolserver nsd include: /tmp/aolserver3_1/nsd

jdk include:          /usr/lib/jdk118_v3/include

jdk platform include:  /usr/lib/jdk118_v3/include/linux

libjava.so dir:        /usr/lib/jdk118_v3/lib/i686/native_threads

[root@localhost nsjava-0.0.6]# make

building "java"

make[1]: Entering directory `/tmp/nsjava-0.0.6/java'

javac -g ../java/nsjava/NsSet.java

make[1]: javac: Command not found

make[1]: *** [NsSet.class] Error 127

make[1]: Leaving directory `/tmp/nsjava-0.0.6/java'

make: *** [all] Error 1

Collapse
Posted by Dan Wickstrom on
It appears that you don't have the javac compiler in your path.