Solved

Deploying JAVA 5.0, targeting 1.4 or 1.3

Posted on 2004-10-15
3
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
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:
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

739 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