Forum OpenACS Q&A: make error for nsjava

Collapse
Posted by amit singh on
I am using ACS3.2.5 with Aolserver 3.4.2. i have installed JDK 1.3.1
and nsjava1.0.4. I have confgured the build process. But i get this
error on trying to build the nsjava dynamic library and corresponding
Java jar file.

[root@iig nsjava-1.0.4]#make
building "java"
make[1]: Entering directory '/home/ns-java-1.0.4/java'
jar -c0f nsjava.jar 'find nsjava -name "*.class" -print'
/bin/sh: jar: command not found
make[1]: ***[nsjava.jar] Error 127
make[1]: Leaving directory 'home/nsjava-1.0.4/java'
make: *** [all] Error 1

Can somebody help me?

Collapse
Posted by Dan Wickstrom on
You need to add the jdk bin directory to your path, so that jar utility can be found when it is exec'd by make.

Just as a general note related to nsjava, I would appreciate it if the people who have successfully built nsjava recently (version 1.0.0 or later) could drop me a line and let me know your OS name and version, JDK version and vendor, and your compiler version.

I've put alot of effort into nsjava in the last several months to provide most of the functionality provided by TclBlend.  I think I've  cleaned out most if not all of the memory leaks, and I would now like to concentrate on making it possible to build and install on all of the platforms supported by Aolserver.  I'm also concentrating on simplifying the build and installation process, so if you have tried and failed to build nsjava recently, then I would also be interested in hearing about your experiences.

Collapse
Posted by Dan Wickstrom on
One other thing, I've modified the build process so that it won't be necessary to have the jdk bin directory in your path for building nsjava.  This feature will be available in the next release.
Collapse
Posted by Jonathan Ellis on
does this mean you rethought your "java is a dead end, .net will take over" position? :)
Collapse
Posted by Dan Wickstrom on
I guess I did say something to that effect quite a while ago.  The only thing that has really changed in my mind is that I no longer think .net is as inevitable as I once thought it was.  I still don't like the classic java tools for web development as they seem to be inordinately difficult to use.

As far as my beginning to work on nsjava again, it's really just a reflection on the fact that I like a technical challenge - nothing more.  After taking a long break from working on nsjava, it occured to me how I could go about solving most of the problems I was finding when trying to integrate TclBlend in Aolserver.  I've implemented those changes, and it now seems to be functioning quite well.

I would be happy if people found my work useful, but I don't expect that nsjava would be adopted as part of the openacs architecture.