wood burning stoves 2.0*
The moose likes Java in General and the fly likes Different java versions in same project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Different java versions in same project" Watch "Different java versions in same project" New topic
Author

Different java versions in same project

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hi
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
plotting
Any suggestions
Ashish


A$HI$H
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Different java versions in same project