Article View: borland.public.jbuilder.java.language
Article #17001Re: Native Interface
From: Wayne Cole
Date: Thu, 24 Dec 1998 00:00
Date: Thu, 24 Dec 1998 00:00
24 lines
1496 bytes
1496 bytes
In article <01be251b$84d6b1c0$fdbc12c7@rvenkatesh>, rvenkate@alta-oh.com says... > Hi > I am building my first java program to call a native method. I am following > the example in sun tutorial. I type in a HelloWorld.java file, compile it. > Then try to build a .h file using "javah -jni HelloWorld". It returns > "HelloWorld: no such class". I have tried several examples but it always > returns with same error. Am I doing something wrong?. I can see there is a > .class file in the same directory. I don't have a package name for java > file, it's just a simple .java file. I appreciate any help or input on > what I am doing wrong ?. Thanks in advance. > Rekha > Is your class file in the classpath? It doesn't matter that it is in the same directory as you run javah from, the .class file must be on the classpath when you run javah. If that's not it, I don't know what to tell ya. All the problems I have had with javah have to do with the classpath as seen by the active shell in which I try to invoke it. -- wmc
Technical Details
Message-ID:
<MPG.10ecb2c9c69b4ac298968e@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01be251b$84d6b1c0$fdbc12c7@rvenkatesh>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a3fbf94874603385 X-Google-Attributes: gidf74b3,public From: wmcole@ihpweb.com (Wayne Cole) Subject: Re: Native Interface Date: 1998/12/24 Message-ID: <MPG.10ecb2c9c69b4ac298968e@forums.inprise.com> X-Deja-AN: 425666376 References: <01be251b$84d6b1c0$fdbc12c7@rvenkatesh> Organization: Infinity Heart Productions Newsgroups: borland.public.jbuilder.java.language