🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8436

Re: Invoking the JVM

#8436
From: Hosni
Date: Tue, 20 Mar 2001 15:40
37 lines
1837 bytes
Hi,
sorry I do not have an answer to your problem, but I think that you can solve mine.
I can not comiple my c file that uses JNI. can u please take a look at the message that I have posted with the subject "JNI".
thanks
"Munish Sikka" <munishs@moves.com> wrote:
>Hi all, I'm writing some C code that invokes the JVM to run a Graphical
>interface written in Java. I was successful the other way round in which the
>Java code calls the native C code, but have run into a stone wall when I
>want to invoke the JVM from the C code. Here is what happens- The JVM is
>invoked properly with the CreateJavaVM command, but FindClass never finds
>the
>class I'm looking for. I've tried several different things (explicitly
>feeding the path for the .class file etc to Java.class.path:
>
>#define USER_CLASSPATH "F:\\Grover"
>
> options[0].optionString =
>  "-DJava.class.path=" USER_CLASSPATH;
>
>
>But the FindClass function always returns a null:
>
> cls = (*env)->FindClass(env, "Prog");
>
>
>Any tips?
>
>Thanks,
>Munish
>
>
>
>
>
>
>
Technical Details
Message-ID: <3ab779f5_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!207.105.83.65
References: <3ab6782b$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4eb3dae8f2a533cb
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-23 03:58:06 PST
From: "Hosni" <h.saqallah@eskadenia.com>
Sender: "Hosni" <h.saqallah@eskadenia.com>
Reply-To: "Hosni" <h.saqallah@eskadenia.com>
Subject: Re: Invoking the JVM
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 212.118.3.114 212.118.3.114    
References:  <3ab6782b$1_1@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ab779f5_2@dnews>
Date: 20 Mar 2001 07:40:37 -0800
X-Trace: 20 Mar 2001 07:40:37 -0800, 207.105.83.65
Lines: 38
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!207.105.83.65