Steve Cohen wrote:
> Nelson Minar wrote:
>
> > >However, most of your proposed solutions fall wide of the mark.
> >
> > Gee, so sorry. Again, there's no fundamental problem with Linux Java,
> > the problem is something in your own environment.
>
> I'm sure you're right. I was just trying to figure out what that was.
>
> > >Now here is a detail that may be more relevant: There are 19 .java
> > >files in the package. The compilation under linux is making them into
> > >19 class files. When compiling under Win95, 27 class files are
> > >created. Two of these are for non-public classes defined in other
> > >java files. The other six files have names like xxxxx$1.class where
> > >xxxxx.java is one of my project files (xxxxx.class is also created by
> > >the compilation).
> >
> > The $1 files (and $2, etc) are anonymous classes. If javac on Linux
> > isn't producing them, something is very strange about your setup.
> > Maybe they're being placed elsewhere?
>
> Hmm. No, they're being produced, all right. And they are in the jar
> file. I just checked. I wonder why I don't find them on the other end
> when I unjar everything.
MYSTERY SOLVED!
Jar behaves rather oddly under Win95 and this caused me to become confused.
When I unjarred the file under Win95, I looked in the Windows Explorer for
the products. I immediately noticed under the directory where I did the
unjarring, a new path mirroring the path under linux where the files were
created, which contained a bunch of class files. I ALSO noticed some class
files in the directory where I did the unjarring, but I assumed that these
were from a previous compilation, deleted them, and copied in the ones from
the unix-like path. However, this set did NOT include any of the inner
classes, the $1, $2 etc. So I now had an incomplete set of files and the
program wouldn't run.
When I just ran the files that jar unzipped, it all worked fine. Duh.
I am wondering, however, why Jar makes this additional mirror of the
original directory structure and places in it an incomplete set of files.
And one more minor problem:
The one difference between the program on the two systems is a
JOptionsPane. On the linux side it behaves correctly. On the Win95 side it
truncates the message. Is there some way to control this?
Thanks again for all your help.
Steve