jextract to write classifies if a directory is specified with -o

Samuel Audet samuel.audet at gmail.com
Wed Mar 7 10:12:17 UTC 2018


Hi,

I would have a few questions before we can answer that I believe. Does the
same JAR work for all platforms? Or does it generate, say, layouts which
might differ between platforms? If so, how are these differences resolved
at runtime? Does the user have to choose manually between different JAR
files?

Samuel

2018/03/07 18:32 "Maurizio Cimadamore" <maurizio.cimadamore at oracle.com>:

> Javac does not support this feature. And, I think if it did, it would safe
> to assume that it would use a different option than -d, which comes with a
> significant JavaFileManager baggage. I'd probably see it more as a
> post-processing step which, after placing your classfiles in the -d folder,
> it would also generate a jarfile where you want it to be (to mimic how
> users typically do it by piping multiple shell commands).
>
> On a related point, while javac doesn't have a 'jar' mode, the VM launcher
> does - and that option is called '-jar'. Any reason as why we can't reuse
> that name here?
>
> Maurizio
>
>
> On 07/03/18 03:42, John Rose wrote:
>
>> +1  BTW, can javac emit its results directly to a jar?  If it did,
>> what would that look like?
>>
>> On Mar 6, 2018, at 8:36 AM, Sundararajan Athijegannathan <
>> sundararajan.athijegannathan at oracle.com> wrote:
>>
>>> I wonder if we should have -d (for directory) option for directory for
>>> output. That would make it consistent with other tools like javac. With -d,
>>> we can create directory if it does not exist.
>>>
>>
>


More information about the panama-dev mailing list