Paul Clapham wrote:Wouldn't it just be simpler to look at the error message? I haven't looked at any of that code, partly because it obviously contains a large amount of code which is irrelevant to the problem, but mostly because you need to see the error message before the code has any meaning at all with regard to solving the problem.
Edit: It also might help if you said what you mean by "run a jar file". I'm sure that half an hour of spelunking through pastebin might answer that question but it's more straightforward if you just tell us.
Ulf Dittmer wrote:Any exceptions would be showing in the Java Console.
Paul Clapham wrote:I still don't want to look at all that code. Especially since with applets, it's almost always the configuration rather than the code which leads to problems. Your next step should be to write a short simple compilable example which does nothing except the bit which is causing the problem. That would be something which you could reasonably ask somebody to look at.
It's probably some simple configuration thing, like you don't have the ERO.jar file in the right place. I don't think it should take more than 50 lines of code to display what you're trying to do there, maybe even as few as 20.
Paul Clapham wrote:Okay. You're trying to read from the client's file system, so have you signed the applet? If you haven't then that won't work. However you should get a security exception which is visible in the Java console in the browser.
Also I see that you're trying to read from the current working directory. Have you actually determined what the current working directory would be for the browser you're using, and put the jar file into that directory?
Josh Rodrigues wrote:The web client HTML file is in the same directory as the ERO.jar file, if that's what you're asking.
Paul Clapham wrote:Oh, you mean that ERO.jar is on the web server? But your code uses a File object to load it. That means you're looking on the client machine for it.
Josh Rodrigues wrote:I'm guessing that the Theme.jar file isn't being found unless being put in the same directory as the ERO.jar file? Trying it out now and hopefully it works.