java.lang.StringIndexOutOfBoundsException: String index out of range:
65
at java.lang.String.substring(Unknown Source)
at sun.net.www.ParseUtil.unescape(Unknown Source)
at sun.net.www.ParseUtil.decode(Unknown Source)
at sun.net.www.protocol.file.Handler.openConnection(Unknown Source)
at java.net.URL.openConnection(Unknown Source)
at sun.applet.AppletPanel.getAccessControlContext(Unknown Source)
at sun.applet.AppletPanel.getClassLoader(Unknown Source)
at sun.applet.AppletPanel.createAppletThread(Unknown Source)
at sun.applet.AppletPanel.init(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.WNetscapePluginObject$Initer.run(Unknown Source)
I find that the applet's constructor is not even called. This appears
to be happening even before my code starts to run. Any suggestions?
Thanks
California_Paladin
> I wrote an applet
URL?
>...that runs fine except when the web-page is launched
> from a folder containing high-ascii characters (actually german
> characters).
...
> I find that the applet's constructor is not even called. This appears
> to be happening even before my code starts to run. Any suggestions?
Supplies two URL's pointing to the same applet, one in
a directory with the high-ascii chars. one not)
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Just for the record: There is no such thing as high-ascii characters.
ASCII is a seven bit code. If your characters use higher codes they are
not ASCII.
> I find that the applet's constructor is not even called. This appears
> to be happening even before my code starts to run. Any suggestions?
Rename the directory. The applet's URL is formed from the path, and
non-ASCII characters are not valid characters in a URL.
/Thomas
What supplies two URL's? Do you mean that the Webpage should be in
two places? Because that is not really an acceptable answer, since
this is a commercial applet, and the user should be able to put it
anywhere.
Does JAVA have a bug related to launching applets from folders that
contain high ascii characters? If so, is there a work-around?
Thanks
California_Paladin
> Andrew Thompson <SeeMy...@www.invalid> wrote in message news:<jyygojssg94.yo3bmf4durpa$.d...@40tude.net>...
>> On 1 Nov 2004 08:49:42 -0800, California Paladin wrote:
>>
>>> I wrote an applet
>>
>> URL?
That is a (one word) question. Where is your applet, what is the URL?
(SheeeeEEEeesh!)
>> ...
>>> I find that the applet's constructor is not even called. This appears
>>> to be happening even before my code starts to run. Any suggestions?
>>
>> Supplies two URL's pointing to the same applet, one in
>> a directory with the high-ascii chars. one not)
>
> What supplies two URL's?
Typo. I meant 'Supply two URL's (to us for further testing)'
But I think Thomas' answer actually answers the question.
(shrugs) I was prepared to 'look into it' if you supplied two
URL's, whereas his answer indicates a good deal more experience
with the problem.
Thomas:
Thanks for the help. Can I ask another question about URLs and ASCII?
Does this mean that no Java applet can be run from a website that has
German characters that contain umlauts?
Thanks again,
California_Paladin
Andrew:
I appreciate the help. Sorry I misunderstood your original answer.
Unfortunately, I cannot publish the URL, since it is still under
construction and my company does not allow pre-release access.
California_Paladin