Skip to main content

Will javac compile sources from jars? JSR-199?

1 reply [Last post]
coxcu
Offline
Joined: 2003-06-11

Hi,

In an attempt to make pairing sources and binaries easier, I would like to compile sources from a jar or zip file. I haven't been able to coax javac into doing this. Based upon this RFE, this might be available using recent Mustang builds--which I am. Unfortunately, I can't get it to work.

"(diag) Better diagnostics for zipfile w/ sources"
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4098712

Does javac support this? If not, does JSR-199? How about compiling into a jar or zip file?

Thanks,
Curt

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
forax
Offline
Joined: 2004-10-07

Take a look to package javax.tools,
and in peculiar to class javax.tools.JavaFileManager.

Rémi Forax