[2123] in java-interest

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

Re: native method build problem

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 25 21:42:42 1995

Date: Mon, 25 Sep 1995 16:15:20 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Jon Hale <jon@BASISinc.com>
Cc: java-interest@java.Eng.Sun.COM



Hi Jon,

> 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;
> ^
> demo/InputFile.java:52: Super class File of class InputFile not found.
> class InputFile extends File {
>       ^
> 2 errors
> *** Error code 1
> make: Fatal error: Command failed for target `InputFile.class'
> ------------------------------------------------------------------------
> 
> Am I doing something silly? Is there a simple fix?

You need to import java.io.File.

Have fun,

	Arthur van Hoff


-
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