🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Native Interface

#17126
From: Rekha Venkatesh
Date: Fri, 11 Dec 1998 00:00
10 lines
1074 bytes
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
Technical Details
Message-ID: <01be251b$84d6b1c0$fdbc12c7@rvenkatesh>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a3fbf94874603385,start
X-Google-Attributes: gidf74b3,public
From: "Rekha Venkatesh" <rvenkate@alta-oh.com>
Subject: Native Interface
Date: 1998/12/11
Message-ID: <01be251b$84d6b1c0$fdbc12c7@rvenkatesh>
X-Deja-AN: 421210395
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language