From: Samuele P. <pe...@in...> - 2001-06-10 00:25:16
|
Hi. [Daniel Lord] > ... > I cannot then simply add a package qualifier to foo.java (say package > bar;): the following code fails with "ImportError: No module named bar" > even though it resembles the standard javax.swing package type calls. > What am I doing wrong? How are java packages you build yourself unlike > standard packages or does jreload not handle packages at all? The header > comment in jreload.py implies only loading inner classes or * imports > fails, but doesn't seem to mention all packages failing. According to > the comment in the LoadSet class, contained packages should work. Of > course Samuele states the module is experimental. Or am I just doing > this wrong? > <example-snip> Yes contained packages should work, and your example (slightly changed and attached) works for me - I know that's not very useful - my jrl.py launched from a directory containing foobar.jar (which contains bar/foo.class and bar/foo.java) does its job. I just don't understand what is going wrong in your case, I will suggest you to try my example stuff. regards, Samuele Pedroni. |