missing routines in classes.zip

Zenin zenin at best.com
Mon Jul 7 07:33:17 PDT 1997


TAKE ME OFF THIS MAILING LIST NOW!!!!



> From kaffe-approval at soi.city.ac.uk Sat Jul  5 20:26:09 1997
> X-Authentication-Warning: vega.soi.city.ac.uk: lp set sender to owner-kaffe at soi.city.ac.uk using -f
> From: Jerry LeVan <levan at eagle.eku.edu>
> Message-Id: <199707060048.UAA16115 at eagle.eku.edu>
> Subject: missing routines in classes.zip
> To: kaffe at sarc.city.ac.uk
> Date: Sat, 5 Jul 1997 20:48:51 -0400 (EDT)
> Content-Type: text
> Sender: owner-kaffe at soi.city.ac.uk
> Precedence: bulk
> Reply-To: kaffe at kaffe.org

> 
> Hi,
> 
> Sorry for the intrusion... I am trying to learn a little java.
> 
> The following program compiles and runs fine on our Intel linux
> boxen running the latest java from blackdown.org. 
> 
> I recently downloaded (kaffe-.91& support files) and did a build for the
> june release linux pmac on a Mac 7600. The program below
> also compiles using the latest "kaffe", but alas does not
> run properly. It appears that some methods are missing from
> the Class library.
> 
> Is this a known problem with kaffe?
> 
> --Jerry LeVan
>   levan at eagle.eku.edu
> 
> /*
>  * Process manipulation...unix
>  *  Try to capture the stdout of a unix command
>  *    sample invocation:  java Cmd "ps -aux"
>  *    Jerry LeVan
>  *    July 4, 1997
>  */
> import java.io.* ;
> 
> public class Cmd {
> 
>  public static void main ( String [] args) {
>     String next;
> 
>     Runtime cmd = Runtime.getRuntime();
>   try {
>      Process up = cmd.exec(args[0]);
> 
>      // Just because I like readLine...
>      BufferedReader out = new BufferedReader(
>                           new InputStreamReader( up.getInputStream())
> 			  );
> 
>      while (( next = out.readLine()) != null) {
>        System.out.println(next);
>      }
> 
>    } catch(Exception ex) { System.out.println("Command Failed: "+ ex); }
>  }
> }
> 
> [levan at macjerry exec]$ kaffe Cmd ps
> Failed to locate native function:
>         java/lang/UNIXProcess.forkAndExec([Ljava/lang/String;[Ljava/lang/String;)I
> java.lang.UnsatisfiedLinkError
>         at java/lang/UNIXProcess.<init>(line unknown, pc 0x39)
>         at java/lang/Runtime.exec(line unknown, pc 0x52)
>         at java/lang/Runtime.exec(line unknown, pc 0x3)
>         at Cmd.main(16)
> [levan at macjerry exec]$ 
> 
> [levan at macjerry exec]$ kaffe -version
> Kaffe Virtual Machine
> Copyright (c) 1997 T. J. Wilkinson & Associates, London, UK.
> Engine: Interpreter   Version: 0.91   Java Version: 1.1.2
> 
> 



More information about the kaffe mailing list