Re: Problems with ResourceBundle

"Nathan Fiedler" <[email protected]> Mon, 17 May 2004 12:20:36 -0700 (PDT)
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
JSwat does not do class loading, and you should not have to change your
program to make it run from JSwat.

You have two choices here:

1. Run your program with the debugging flags as documented in JSwat's
help. Then connect to the debuggee from JSwat using the attach operation.

2. Find out how your program is being launched differently. Are you
changing the bootclasspath? Is the classpath specified in JSwat exactly
the same as that in the launch script? Does the classpath use relative
filenames (if so, use the full path and name)? Are you using the same JVM?

n

P.S. You must subscribe to this list to post to it.


Nascif wrote:
> Hi,
>
> I am having problems loading resources from the classpath when running my
> application under Jswat; calls like:
>
> ClassLoader.getResourceAsStream()
> ResourceBundle.getString()
>
> Fail, while they work fine when the code is executed from a script. I
> checked the classpath and it is OK.
> Any ideas? Those calls rely on the classloaders to find the resources,
> could it be a problem related to how Jswat does class loading? Is there
> any way I can change my code to make it work inside the debugger as well?
>
> Thanks,
>   Nascif