On Mon, 18 Jun 2001, [EMAIL PROTECTED] wrote:
> Additionally, here is the output when I try to run the example code:
>
> $> java -native -Djava.library.path=. HelloWorld
> Hello, World. I'm going to call an exception now
> inside try block
> inside throw_it()
> Running constructor
> Abort
With our JDK I get:
,----
| % java -Djava.library.path=. HelloWorld
| Hello, World. I'm going to call an exception now
| inside try block
| inside throw_it()
| Running constructor
| Exception in thread "main" java.lang.NoSuchMethodError: MyException: method
|<init>(Ljava/lang/String;)V not found
| at HelloWorld.print(Native Method)
| at HelloWorld.main(HelloWorld.java:4)
`----
And after adding the missing constructor to MyException I get the
expected output:
,----
| % java -Djava.library.path=. HelloWorld
| Hello, World. I'm going to call an exception now
| inside try block
| inside throw_it()
| Running constructor
| Exception in thread "main" MyException: test
| at HelloWorld.print(Native Method)
| at HelloWorld.main(HelloWorld.java:4)
`----
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]