Copile JDK1.4.2_10 & run with JDk1.3

Dear Experts

We used the JDK1.4.2_10 when we build our product. But when we move to production by mistake the JAVA_HOME was pointed to JDK1.3. We application contains Servlets, EJBs etc.

is there any possibility to get the issues?

thanks
km.






krishnasaikarthikAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
suggest either shifting production to 1.4.2
or shifting development to 1.3
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
objectsCommented:
you can also use -target 1.3 compile option to produce 1.3 compatible class files but you could still have incompaibilities.
0
Mayank SAssociate Director - Product EngineeringCommented:
Is it possible to change the JAVA_HOME in production? If not, you can compile on 1.4 with the -target 1.3 option to compile it to 1.3 version but that would also involve changing the deployed JARs, so at some or the other point the production system has to be brought down for a moment. The easier option is to bring it down for a smaller time, change the JAVA_HOME and then restart the application.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Mayank SAssociate Director - Product EngineeringCommented:
>> is there any possibility to get the issues?

If you have used any methods/ classes which were introduced in 1.4, then yes. Otherwise it should be ok.
0
radarshCommented:
You most likely will end up getting an UnsupportedClassVersionError at runtime.
Also, some of the API used in 1.4 might not be available in 1.3. So, you might
have serious problems.


________
radarsh
0
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
i think if you are not using any java 1.4 Api you may not have any problem but even if you have any serialized components you may get serialization mismatch error.
and about the web side if you have used j2ee 1.3 with jdk 1.4 and now shifting only the jdk from jdk 1.4 to jdk1.3. no much diffrence may be seen as J@EE is the same yet.
0
Giant2Commented:
>by mistake the JAVA_HOME was pointed to JDK1.3
Correct this wrong pointing.
If you use Unix/Linux/Aix you can create a virtual directory pointing correctly.
Bye, Giant.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.