Re: How to extract a class from "modules" archive

2020-12-25 Thread Gunnar Morling
Thanks, Sundar and Jeff! The tool approach was what I was looking for, so thx for the pointer to jimage. --Gunnar Am Fr., 25. Dez. 2020 um 13:05 Uhr schrieb < sundararajan.athijegannat...@oracle.com>: > By tool: > > jimage extract > > By API: > > jrt-fs file system. You can find jrt-fs usage f

Re: How to extract a class from "modules" archive

2020-12-25 Thread sundararajan . athijegannathan
By tool: jimage extract By API: jrt-fs file system. You can find jrt-fs usage from javac code -Sundar On 25/12/20 4:02 pm, Gunnar Morling wrote: Hi, Is the format of the "modules" archive specified and documented somewhere? Or asked differently, if I wanted to extract the class file for a

Re: How to extract a class from "modules" archive

2020-12-25 Thread Jeff MAURY
Use ClassLoader::getSystemResource, or the JRT file system On Fri, Dec 25, 2020 at 11:32 AM Gunnar Morling wrote: > Hi, > > Is the format of the "modules" archive specified and documented somewhere? > Or asked differently, if I wanted to extract the class file for a given JDK > class from the "m

How to extract a class from "modules" archive

2020-12-25 Thread Gunnar Morling
Hi, Is the format of the "modules" archive specified and documented somewhere? Or asked differently, if I wanted to extract the class file for a given JDK class from the "modules" file coming with the JDK, what would be the best way to do so? Thanks a lot, --Gunnar