I have a very simple java class that uses String.getBytes (java.nio.charset.Charset). When I use loadjava, i get the error: "cannot find symbol" for this call. Any ideas on what could be the problem?
Here is the full source:
package mytest;
import java.lang.String;
import java.nio.charset.*;
public class MyTest {
static final Charset utf8charset = Charset.forName("UTF-8");
public int printString(String s)
{
byte[] utf8 = s.getBytes(utf8charset);
System.out.println (utf8);
}
public void printString ()
{
printString ("hello");
}
};
Thanks in advance,
Keith