From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,813721ce0a7049d0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-05 18:40:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: peterm@resmed.com.au (Peter Milliken) Newsgroups: comp.lang.ada Subject: Are jgnat tools compatible with Java 2? Date: 5 May 2003 18:40:22 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 203.15.64.16 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1052185222 6689 127.0.0.1 (6 May 2003 01:40:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 6 May 2003 01:40:22 GMT Xref: archiver1.google.com comp.lang.ada:36997 Date: 2003-05-06T01:40:22+00:00 List-Id: I am just starting to explore jgnat-1.1p(NT) and found the first thing I attempted failing. I have Sun's j2sdk1.4.0_01 loaded on my computer, so I attempted the example shown in the jgnat user's guide for creating Ada package specs from Java .jar files with (Chapter 6): jvm2ada rt.jar The command failed. The full sequence is: roebourne#1(/c/j2sdk1.4.0_01/jre/lib)$ jvm2ada rt.jar jvm2ada: Bad class file: bad minor version [exited with 4] Since I was able to successfully execute the "hello world" program provided in the "Getting Started" section, I assume that this is most likely a compatability problem with the tool set that comes with jgnat 1.1p. Is there anyway around this problem? Has anyone managed to successfully develop code using jgnat for Java 2 that interfaces to existing Java 2 classes? I assume that to do this, you would need to generate Ada package spec's for the Java classes..... Thanks Peter