Solved

Deploying JAVA 5.0, targeting 1.4 or 1.3

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Configure a Bean in an XML file 4 48
iterator/ListIterator approach 17 52
Problem to Alipay 10 67
Is there a simpler dropbox system? 10 44
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

763 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