• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Different java versions in same project

Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone used 2 different versions of java in same
J2EE project.
I have a web project where i have a Applet which
displays data in graphs etc, this applet uses applet -
servlet communication to connect to database,
What i want to try to do is develop all the servlets
and code running on application server using
J2SDK1.4.2 and the applet using J2sdk1.5 (5.0).
I cannot use java 1.5 for server side as i am using
app server which does not support it, but i want to
use java 1.5 to get latest abilities in Swing.
I see a potential problem with class compiled in
different versions,
I populate data in java class and send this class to
applet which reads data from these classes and do the
Any suggestions
author and iconoclast
Posts: 24203
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure where you're imagining the problem might be. The two JVMs will be running on completely different machines (one on server, the other on a desktop), and they'll be executing more or less completely separate codebases. The only potential problems I can think of is that if your applet and servlet share any utility classes, those classes can't use JDK 1.5 features; and if the applet and servlet communicate via exchanging serialized objects, the Serializable classes shouldn't use 1.5 features as well.

Otherwise, they're utterly separate, so there should be no problems.
    Bookmark Topic Watch Topic
  • New Topic