[602] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (Raymond Harrison - TCI/AIT)
Thu Jul 6 13:21:03 1995

Date: Thu, 6 Jul 1995 08:07:45 +0700
From: rharriso@elmer.tcinc.com (Raymond Harrison - TCI/AIT)
To: java-interest@java.Eng.Sun.COM

Hello -
	I was too word-y yesterday....
When my program compiles, the following message comes at
runtime....
****************************Error Message****************************
java.lang.IncompatibleClassChangeException sybase.SybInterface: method SybRes()V not found
********** at SybTest.main(SybTest.java:34)***************************
	Anyway, I have an interface written in JAVA
which calls a native method, written in C, which calls
DBLIB routines, which when returns an argument containing
an array of results (The native interface calls this 
HArrayOfStrings)... This is passed as a function argument.
This function is called SybRes and takes a String[] argument.
The definition as found in my interface file is as follows:
.......	public native void dbresults(String str[]);
	public void SybRes(String str[]) {
		dbresults(str);
		return;
	}...........
The "Test" program calls this routine in the 
following manner.....
	public static void main(String args[]) {
	SybInterface syb = new SybInterface();
        syb.SybRes(MyString);
...........
Hope you can help - I am an old C programmer and am learning
this stuff slowly but surely.

Ray Harrison - rharriso@elmer.tcinc.com

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post