This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Different java versions in same project  RSS feed

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: 24217
Chrome Eclipse IDE Mac OS X
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!