[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] JNI and NS
I am trying to use the Java Native Interface with NS (this is to test some
code we have developed in Java in NS). I am encountering a problem however -
I link in the libjava.so library with the object files of NS and a new class
from which I invoke the JVM. The extra line in 'LIB =' in Makefile is:
-L/usr/local/jdk1.1.8/lib/i386/green_threads -ljava
It all compiles and links fine, however when I execute NS the following
error occurs:
-----------------------------------------------------------------------
application-specific initialization failed: Can't find a usable init.tcl in
the following directories:
/usr/local/lib/tcl8.0 /ns/ns-allinone-2.1b6/lib/tcl8.0 /ns/lib/tcl8.0
/ns/ns-allinone-2.1b6/library /ns/library /ns/tcl8.0/library /tcl8.0/library
/usr/local/lib/tcl8.0/init.tcl: couldn't read file
"/usr/local/lib/tcl8.0/init.tcl": bad file number
couldn't read file "/usr/local/lib/tcl8.0/init.tcl": bad file number
while executing
"source /usr/local/lib/tcl8.0/init.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $tclfile]"
This probably means that Tcl wasn't installed properly.
-----------------------------------------------------------------------
If I comment out the extra line that I put in the Makefile, NS compiles,
links and runs with no problems.
Can anyone help ?
Thanks,
Mark
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com