Re: BCEL with JDK 1.1.8

Enver Haase <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Hi,

Seems the 5.1 package was not compiled with a 1.1 JDK.
Hm, I doubt that the BCEL package will still compile
under 1.1 since I even checked in some classes of the
verifier GUI that depend on Swing. I believe I also
used collection classes, so the whole verifier should
depend on 1.2, not only the GUI.

However, one could possibly compile all the packages
except the *.verifier.* using a 1.1 compiler.

The error message you get is most probably because
your runtime environment JVM expects *.class files
of version 45.3 (compiled with JRE-1.1 in mind), but
nowadays recent compilers emit 48.0 version *.class
files that can no longer be interpreted by ancient
JREs. For them, one needs to recompile the source.

I wonder if we should still go for 1.1 compatibility
by the way...

Greetings,
Enver


Gangwar, Manjari wrote:
> Hi All,
> 
> I am thinking of utilizing BCEL library for the lower versions of jdk, 1.1.8, etc, as these versions did not support jvmpi, profiler interface. I downloaded the BCEL.jar file from htpp://bcel.sourceforge.net Downloads page, where it says "JAR file (Class files only)", and tried the following:
> D:\BCEL>\jdk1.1.8\bin\java.exe de.fub.bytecode.util.JavaWrapper hello
> Hello World
> So, as you see that seemed to work.
> 
> Now when downloaded the latest binary from apache, bcel-5.1.jar, it gives me the following error:
> D:\BCEL>\jdk1.1.8\bin\java.exe org.apache.bcel.util.JavaWrapper hello
> Error loading class org/apache/bcel/util/JavaWrapper: Bad major version number
> 
> So, then what I tried next was downloading the source from both bcel.sourceforge.net and apache, and compare the sources of "JavaWrapper.java" and "ClassLoader.java", and found that they are similar in terms of instruction set/operation...
> 
> I do see that on the bcel.sourceforge.net site, Installation page, it is mentioned that BCEL can be used with any JDK >= 1.1. And I verifieed that with the BCEL.jar file downloaded from this site.
> 
> So, could somebody please guide me to figure out why the latest jar file from apache does not work? The default classloader class in BCEL, "ClassLoader.java", looks like jdk 1.1 style classloader, but I could be wrong...
> 
> Thank You all, for your time and help, in advance.
> 
> Regards,
> Manjari.
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.