Re: compiling for old browsers
"Kalpesh Soni" <[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
using javac -target We should be able to compile a class to whatever version But, keep in mind, if you are using a class that exists only in 1.5 or 1.6, you cant use it else it would give a NoClassDefFoundError? You need only one compiler, but setup eclipse to compile to required class version. (Compiler compliance level) -Kalpesh On 5/27/08, Jonathan Chase <[email protected]> wrote: > > you can use generics and compile for 1.4 (not sure about 1.3) using > something like retrotranslator. > > http://retrotranslator.sourceforge.net/ > > retrotranslator also contains backported classes and methods not found in > earlier java versions - so it handles more than just generics. > > afaik, google analytics doesn't record what version of java is available, > just whether java is available or not. on my site (sendalong.com, a very > non-technically user oriented site), i see 98% have java, 2% don't. 95% > have flash 9 or greater. > > jon chase > > > > On 5/27/08, Douglas Ivers <[email protected]> wrote: >> >> Thanks for the responses. I think most came directly to me and not to >> the whole list, so let me summarize... >> >> What I was hoping is that I could write code in 5 or 6 (e.g., use >> generics) but compile for, say, 1.3. Based on what I am able to set >> as compiler prefs. in Eclipse, it doesn't look like a possibility. >> >> Let me know if I'm missing something. >> >> And stats on the java version used in browsers is still an open >> question, so let me know if you have anything on that. >> >> >> Thanks, >> Doug >> >> _______________________________________________ >> Juglist mailing list >> [email protected] >> http://trijug.org/mailman/listinfo/juglist_trijug.org >> > > > _______________________________________________ > Juglist mailing list > [email protected] > http://trijug.org/mailman/listinfo/juglist_trijug.org > > _______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org