Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deploying JAVA 5.0, targeting 1.4 or 1.3

Posted on 2004-10-15
3
Medium Priority
?
232 Views
Last Modified: 2010-03-31
Hi, as the bytecode didn't change from 1.3 to 1.5, I would assume that I could prepare some .class files
by 5 and run them somewhere on 1.3 or 1.4 (IF ONLY NOT USING API INTRUDUCED SINCE).

When I target an older version in javac I seem to produce other format of .class files? Is the above assumption wrong then?

Before you advise me so: it's no longer possible to compile those sources on 1.3 as you start to write generics.

Any experience with this kind of problems?

Note: many customers demand 1.3 because of product restrictions (BEA) or compliancy (J2EE).
;JOOP!
0
Comment
Question by:sciuriware
  • 2
3 Comments
 
LVL 92

Expert Comment

by:objects
ID: 12316960
you need to use the "-target 1.3" option when compiling.
0
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 12316980
> When I target an older version in javac I seem to produce other format of .class files?
> Is the above assumption wrong then?

yes, by default javac (1.5) will produce 1.4+ compatible classes
0
 
LVL 24

Author Comment

by:sciuriware
ID: 12321926
:)   I add it this time myself.


;JOOP!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question