• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I run Tiger on Mantis ?  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all.
assume that I have developed an application using the new features (like generics, but not using any new libraries like JMX).
to compile this file, we use tiger with -source 1.5 argument.
can I run this application on J2RE 1.4 ?
another question please :
should I pass -source 1.5 arguement to javac every time I compile my classes ?
(even if I don't use any new syntax or features ?)
thanks.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question seems somewhat contradictory. You start out by saying you ARE using new features, but at the end you want to know what happens if you don't.

Although, I don't have any experience with Tiger itself, I doubt the new features will be able to run on a 1.4 JVM. I'm not sure about programs written without any of the features, though. Hopefully someone else can give some more insight to this.

HTH

Layne
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Your question seems somewhat contradictory. You start out by saying you ARE using new features, but at the end you want to know what happens if you don't.

Yes, I am asking two questions here !
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) -source 1.5 is needed only to compile with the new features.
2) you cannot run 1.5 classfiles on a 1.4 (or earlier) JVM, unless compiled with the -target 1.4 (or whatever) flag set. If you do this you can not combine that with -source 1.5 and therefore not use the new language features (also when using -target 1.3 or earlier you'd be unable to use 1.4 language features etc.).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!