Error using new jvm 1.5 features
Info <[email protected]> Mon, 12 Apr 2004 19:50:09 +0200
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Debugging in linux these two bits of code I keep getting an exception...
// Require jvm >= 1.5
Charset defaultCharset = Charset.defaultCharset();
Exception thrown: NoSuchMethodError: "java.nio.charset.Charset.defaultCharset()Ljava/nio/charset/Charset;"
// Require jvm >= 1.5
// Launched from a services monitor ? (e.g. from xinetd)
Channel channel = SelectorProvider.provider().inheritedChannel();
Exception thrown: NoSuchMethodError: "java.nio.channels.spi.SelectorProvider.inheritedChannel()Ljava/nio/channels/Channel;"
In a normal run, without debugging/jswat, no problem.
Any ideas ?
Thanks in advance
p.s. also thanks for jswat
Lucio