By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,797 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,797 IT Pros & Developers. It's quick & easy.

Jikes vs. Javac (1.3/1.4)

P: n/a
Hi,

I'm wanting to figure out what version bytecode is generated with
Jikes. I'm developing in an environment where it's mandated we run on
Java 1.3. I'd like to run Jikes as my compiler (for the obvious
reasons) but am unsure as to which bytecode version is generates,
compared to javac 1.3 or javac 1.4 (from Sun.)

It seems like there hasn't been an update to Jikes in over a year and
I'm not able to sway the people in charge that we can use Jikes
instead of Javac.

Is there a way to tell if bytecode is compliant with different VMs?
That way I can take jikes generated bytecode and test it?

thanks

sam
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello there,
I'm wanting to figure out what version bytecode is generated with
Jikes.

It generates whatever version you would like. To wit, from the jikes
man page:

--source release
Specify which Java SDK release the source syntax
obeys. For
example, to compile code with the assert keyword,
you would
specify -source 1.4. Recognized releases are 1.1 through
1.4. If
unspecified, this defaults to 1.3.

--target release
Specify which Java SDK release the bytecode should
target. For
example, in Java 1.4, exception chaining was
introduced, so a
failed class literal can chain the
NoClassDefFoundError to its
original ClassNotFoundException, rather than the old
behavior in
Java 1.3 where the original exception is just
discarded. You
would get the new behavior by specifying -target 1.4.
Recognized
releases are 1.1 through 1.4. If unspecified, this
defaults to
whatever -source level is in force.

So by default your code is interpreted as 1.3 source and the bytecode
is targeted to 1.3.

Regards,
Jay
Jul 17 '05 #2

P: n/a
> It generates whatever version you would like. To wit, from the jikes
man page:

So by default your code is interpreted as 1.3 source and the bytecode
is targeted to 1.3.

Regards,
Jay


Thanks Jay,

I should have looked harder to RTFM.

Sam
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.