Solved

Deploying JAVA 5.0, targeting 1.4 or 1.3

Posted on 2004-10-15
3
203 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 250 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Jpanels and Jframe 8 33
Should localization be done inside spring controller 5 26
factorial example 4 40
printf performancy 11 42
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

777 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