Re: Error using new jvm 1.5 features
"Nathan Fiedler" <[email protected]> Mon, 12 Apr 2004 12:29:44 -0700 (PDT)
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Bear in mind that JSwat does not yet support Java 1.5. Anyway, it seems that what is happening here is the debuggee VM is running Java 1.4 or earlier. JSwat is not causing the NoSuchMethodError that you are seeing -- that is coming directly from the debuggee JVM. Check the Java Home value in the Start VM dialog to make sure it is pointing at the Java 1.5 installation. I can't promise that JSwat will work correctly in this arrangement, but it may. n Lucio wrote: > 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 > > _______________________________________________ > jswat-user mailing list > [email protected] > http://www.bluemarsh.com/mailman/listinfo/jswat-user >