Re: do we need sun.misc.VM?

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Sun Nov 15 1998 - 22:10:28 EST


On Nov 15, 1998, Godmar Back <gback@marker.cs.utah.edu> wrote:

> Failed to locate native function:
> sun/misc/VM.getState()I
> java.lang.UnsatisfiedLinkError
> at sunw/hotjava/misc/ResourceManager.internalCreate(88)
> at sunw/hotjava/misc/ResourceManager.getManager(80)
> at sunw/hotjava/misc/ResourceManager.create(72)
> at sunw/hotjava/Main.main(144)

> So, hotjava is calling into sun.misc?
> As that's supposed to work with every 1.1.x complaint JVM?

Have you considered that ResourceManager might be doing this only
because `Class.forName("sun.misc.VM")' did not throw (assuming you
have classes.zip in your classpath)? I haven't checked, but it's
quite a reasonable assumption.

> So, shall we implement the native methods of sun/misc/VM.getState()I in
> some kind of compatibility library?

Or just provide a script that will create a sun-classes.zip without
the sun.misc subtree...

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.anu.edu.au}
Universidade Estadual de Campinas, SP, Brasil


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:03 EDT