[2091] in java-interest
Re: native method build problem
daemon@ATHENA.MIT.EDU (Troy Downing)
Sun Sep 24 17:08:43 1995
From: downing@GRAPHICS.CS.NYU.EDU (Troy Downing)
To: jon@BASISinc.com (Jon Hale)
Date: Sun, 24 Sep 95 14:10:48 EDT
Cc: java-interest@java.sun.com
In-Reply-To: <199509222212.PAA10730@BASISinc.com>; from "Jon Hale" at Sep 22, 95 3:12 pm
>I have been trying to implement a native method and was having trouble.
>I went back to the demo in the alpha3 release ..../hotjava/doc/native
>where there is a Makefile and typed "make"
>I got the following...
>------------------------------------------------------------------------
>javac demo/File.java
>javac demo/InputFile.java
>demo/InputFile.java:42: Class or interface definition expected.
>package demo;
There is a bug in the java source... simple fix, move the "package demo;"
statement before the "import" statements. As per the spec, a package
statement must be the first non-whitespace, non-comment statement if
it's being used. I noticed this awhile ago, thought it would be fixed
by now...
>demo/InputFile.java:52: Super class File of class InputFile not found.
>class InputFile extends File {
do you have a ~/classes/demo directory that contains the File.class binary?
If you create this directory and move the .class files that use the demo
package, it should fix this.
-Troy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy Downing, Research Scientist (Voice) (212) 998-3208
New York University (FAX) (212) 995-4122
Media Research Lab
715-719 Broadway, Rm 1214 downing@nyu.edu
New York, NY 10003-1866 http://found.cs.nyu.edu/downing
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com