This is the situation.
I got a two .jar files, one of which contained the classes and another
one contained the source code related with certain class. When I put
them in an eclipse project, and add source code for the class-jar file
with source-jar file, I can view the code without modifying.
Is this source read-only?
How can I modify these code and then recompile this .jar file?
> This is the situation.
> I got a two .jar files, one of which contained the classes and another
[quoted text clipped - 3 lines]
> Is this source read-only?
> How can I modify these code and then recompile this .jar file?
I imagine the IDE will *not* be able to edit the
source files while they are in an *archive*.
If you expand the archive out to 'loose files' on
the local file system, and check they do not
have the 'read only' attribute set (it is uncommon),
the IDE should be able to edit them.
You will probably need to reconfigure the project
to work with the new arrangement, but that is a
matter between you and your IDE.
Andrew T.
ceasaro - 29 Jan 2007 20:59 GMT
> > This is the situation.
> > I got a two .jar files, one of which contained the classes and another
[quoted text clipped - 9 lines]
> have the 'read only' attribute set (it is uncommon),
> the IDE should be able to edit them.
To expand them you can use any program which understand the zip format
cause a jar file is simply a zip archive.
> You will probably need to reconfigure the project
> to work with the new arrangement, but that is a
> matter between you and your IDE.
>
> Andrew T.
Andrew Thompson - 30 Jan 2007 03:59 GMT
...
> To expand them you can use any program which understand the zip format
> cause a jar file is simply a zip archive.
But note that it is dangerous to *make* jar's using
'any old' zip tool. A lot of them have non-standard
compression, and the way they write the zip
archives is much less stringent than the format
used by the jar tool, and Java.
Andrew T.