RE: BCEL with JDK 1.1.8

"Gangwar, Manjari" <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Thank You Enver, for the insights. I did recompile the source with jdk
1.1, but at that time did not know about the verifier GUI classes, so
will try again and let you all know.

I am using jdk1.1 for one specific app that cannot work with higher jvm
versions. For the lower versions of jvm there was no profiler interface
(jvmpi), and that is why I thought BCEL could best help me achieve what
I want to achieve.

Thanks once again...and I guess it would be great to know of the plans
with BCEL supporting older jvms...

Regards,
 
.....Manjari.
-----Original Message-----
From: Enver Haase [mailto:[email protected]] 
Sent: Sunday, February 22, 2004 5:34 PM
To: BCEL Developers List
Subject: Re: BCEL with JDK 1.1.8


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.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
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.