[404] in java-interest

home help back first fref pref prev next nref lref last post

Getting the native example to compile

daemon@ATHENA.MIT.EDU (Simon Spero)
Tue Jun 20 03:05:03 1995

Date: Mon, 19 Jun 1995 23:41:55 -0700 (PDT)
From: Simon Spero <ses@tipper.oit.unc.edu>
To: Java Interest Mailing List <java-interest@java.sun.com>

There are a few bugs and catches in the example of native methods 
included in alpha3. 

1: demo/InputFile.java and demo/OutputFile.java

"package demo;" is not the first command in the file, and hence does not 
take effect. move this command above the first import

2: Makefile
	line for libstubs.c looks for *.stubs; this should be *.c

3: make command must set CLASSPATH on command line or in environment. 
	CLASSPATH must include the current directory.

4: hotjava/include/javaString.h include java_lang_String.h. This file is 
   not created in the alpha3 directory. The file can be generated by 
   running javah java.lang.String; place the file in hotjava/include.

5: LD_LIBRARY_PATH must include directory containing the generated .so file.

Simon	
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post