Stuart Ballard <[EMAIL PROTECTED]> writes:

> John Leuner wrote:
> > 
> > > $ java-jdk11 net.wuffies.japi.Japize -f $JAVAHOME/lib/classes.zip java >
> > > jdk11.japi
> > 
> > I can't compile Japize because it depends on java.util.zip. Is it possible
> > to make it work on plain filesystem tree?
> 
> I have added support for scanning a filesystem tree, although it's
> currently untested. The source, a .class file in case you can't compile
> it without j.u.z, and documentation are available at
> http://stuart.wuffies.net/japi/ . There is also a copy of jdk11.japi so
> that you can compare against it without having to have the JDK
> installed.

I've tried it with Japhar + Classpath and all I get out of it is the
following...

cbj@lyta:~$ japhar net.wuffies.japi.Japize packages /usr/local/japhar/share/classpath 
/usr/local/japhar/share/classpath/java /usr/local/japhar/share/classpath/java/lang 
/usr/local/japhar/share/classpath/java/lang/reflect 
Scanning /usr/local/japhar/share/classpath
Done scanning /usr/local/japhar/share/classpath
Scanning /usr/local/japhar/share/classpath/java
Done scanning /usr/local/japhar/share/classpath/java
Scanning /usr/local/japhar/share/classpath/java/lang
Done scanning /usr/local/japhar/share/classpath/java/lang
Scanning /usr/local/japhar/share/classpath/java/lang/reflect
Done scanning /usr/local/japhar/share/classpath/java/lang/reflect

I probably need to investigate why it isn't recursing normally as I'd
prefer and why it doesn't seem to output anything other than
Scanning/Done messages.

> Please feel free to test this and send patches if you have any problems.

If I get the time I will look at it.

> If you do get this working, I'd be interested if you could mail me a
> copy of classpath.japi, just for completeness :) Anyone who produces a
> full jdk12.japi or jdk13.japi, I'd also be interested to see those, as I
> don't have either on my box right now. Since they're probably big
> (jdk11.japi is just over 1Mb) it's probably best to give me a URL rather
> than sending an email.

I ran it against the 1.3 beta for Linux and it gave me more output
than Classpath did, ie like this...

Scanning /usr/local/java/lib/dt.jar
_________________________________________
Done scanning /usr/local/java/lib/dt.jar

... but nothing ended up in jdk13.japi.  Stranger still I ran it
against 1.1.7B on Linux since I thought this for sure worked... and
again the output was like for 1.3... seemed to do the scanning but I
ended up with nothing in jdk11.japi.

cbj@lyta:~$ java -classpath /usr/local/java/lib/classes.zip:/home/cbj/classes:. 
net.wuffies.japi.Japize packages /usr/local/jdk117_v3/lib/classes.zip > ~/jdk11.japi

Brian
-- 
Brian Jones <[EMAIL PROTECTED]>

Reply via email to