[1792] in java-interest

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

Re: Question about Makefile for native functions

daemon@ATHENA.MIT.EDU (Thomas Ball)
Sun Sep 17 00:35:13 1995

Date: Wed, 13 Sep 1995 14:37:23 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: sid.conklin@nora.stanford.edu
Cc: java-interest@java.Eng.Sun.COM

My suspicion is that EXPORTEDCLASSES isn't defined, and so no stubs files
were created by the javah step.  For the demo, both the demo.InputFile and
demo.OutputFile classes need to be listed in that macro.  They are in the
Makefile we distribute, but double-check by doing a "make -n libstubs.c".
You should get something very similar to:

--------
javac demo/File.java
javac demo/InputFile.java
javac demo/OutputFile.java
for i in demo.InputFile demo.OutputFile ;					\
	  do							\
	      javah -classpath .:/home/tball/java/build/classes -d CClassHeaders/ $i ;\
	  done
javah -classpath .:/home/tball/java/build/classes -d stubs/	\
	      -stubs demo.InputFile demo.OutputFile
cat /home/tball/java/build/include/StubPreamble.h stubs/*.stubs > libstubs.c
--------

Tom

>  From daemon@java  Wed Sep 13 14:04:36 1995
>  Subject: Question about Makefile for native functions
>  To: "java-interest@java.sun.com" <java-interest@java>
>  X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
>  
>  I'm following your native methods (File) example in alpha3 and can't figure
>  out the following portion of the make file.  The "@ cat..." always fails
>  because it can't find the /.*stubs files.  Further, I can't locate any
>  *.stubs files inside my java file space.  So, what is this supposed to do? Am
>  I missing some files or have I errored again?
>  
>  [delete... Makefile text ]
>  
>  libstubs.c	: classheaders $(STUBPREAMBLE)
>  		  $(JAVAH) -classpath $(CLASSPATH) -d $(CLASSSTUBDIR)/	\
>  		      -stubs $(EXPORTEDCLASSES)
>  		  @ cat $(STUBPREAMBLE) $(CLASSSTUBDIR)/*.stubs > $@
>  
>  Thanks,
>  
>  Sid Conklin
>  Stanford University
>  
>  -
>  Note to Sun employees: this is an EXTERNAL mailing list!
>  Info: send 'help' to java-interest-request@java.sun.com
>  
-
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