• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which Java version should I compile my applets for, and how?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm wondering which Java version I should be compiling my applets for. Are most Microsoft browsers still stuck at 1.1? Is that what I should develop for? The second part of my question is, what's the best way to do this? Can I always safely, reliably use the latest SDK, compiling with the -target switch? Or is it better to use an actual older SDK?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which Java version I should be compiling my applets for?

It depends.

Are most Microsoft browsers still stuck at 1.1?

Yes.

In my opinion, you should compile your applets for 1.1 unless you realize a need for a class/method that is beyond that.

As far as the reliability of the -target switch, I've compiled some classes with that switch and they seemed to work fine in the older (1.1.4) JVMs of IE5.5 and NN4.7

However, I've also compiled some classes with that switch which contained methods which were from the 1.3 JDK. They compiled just fine, but wouldn't run unless I used the plug-in.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot use just the -target switch to ensure 1.1 compatibility.
Read the documentation for Javac for more information. Especially look at the "Cross-Compilation Example".
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There may yet be hope:
http://zdnet.com.com/2100-1104-978786.html
reply
    Bookmark Topic Watch Topic
  • New Topic