I want to load information in to an Applet in much the same as a Windows program uses an Ini file. If I use the form
URL d = new URL("http://p1/scales/intervals
");, then it works fine.
I want to make the applet work in any directory structure, so I don't need to hardcode the URL. I thought that the following would work
URL d = new URL(getCodeBase(),"interva
Everytime I do this, I get a MalFormedURL exception.
Can you point me in the right direction with this please?