This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: String(strBytes, "UTF-16LE"); thorws java.io.UnsupportedEncodingException


Andreas Grunewald writes:
 > 2005/4/17, Andrew Haley <aph@redhat.com>:
 > > Andreas Grunewald writes:
 > >  > Ok once again a new something that I detected.
 > > 
 > > It's a problem with static linking.
 > But the GCJ 4.0 for windows only supports static linking.

Right, and that is why it doesn't work.  In general, the Java API
doesn't work with static linking, because classes are referred to by
name and looked up at runtime.  The way you can fix this is to
determine which classes are needed by your application and link them
into your executable.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]