[Mono-devel-list] ikvmstub question

Rodrigo B. de Oliveira rbo at acm.org
Sat Jan 15 13:18:59 EST 2005


Hi,

Ikvm generated stubs are supposed to be loaded by ikvm only.  In other
words, you should run the final application with the ikvm java vm not any
other java vm.

Rodrigo

> -----Original Message-----
> From: mono-devel-list-admin at lists.ximian.com 
> [mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of 
> Rogerio Pereira
> Sent: Saturday, January 15, 2005 2:48 PM
> To: mono-devel-list at lists.ximian.com
> Subject: [Mono-devel-list] ikvmstub question
> 
> When i try to run an application that uses ikvmstub generated 
> packages under JRE 1.4.2 i got the  follow error:
> 
> java -cp 
> .:gtk-sharp.jar:mscorlib.jar:glib-sharp.jar:atk-sharp.jar test
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Init
>         at cli.Gtk.Application.Init(Native Method)
>         at test.main(teste.java:6)
> 
> Here's the code:
> 
>      import cli.Gtk.*;
>      import cli.GLib.*;
>     
>      public class teste {
>           public static void main(String[] args) {
>                Application.Init ();
>                Window w = new Window ("Hello Mono with Java#");
>                Button b = new Button ("Click me");
>                w.Add (b);
>               w.ShowAll ();
>               Application.Run ();
>          }
>     }
> 
> 
> 
> --
> Rogério Pereira Araújo
> Programador / Pesquisador
> Departamento de desenvolvimento - Divisão de pesquisa 
> tecnológica C&S Computadores e Sistemas Ltda.
> www.cisnet.com.br
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 





More information about the Mono-devel-list mailing list