Solved

web application deployed with different version of code base

Posted on 2011-02-13
6
208 Views
Last Modified: 2012-05-11
We have a web application developed using java deployed on tomcat, if the application refers third party libraries(jars), which are complied with different jdk version, will it cause any (version mismatch)issue. if then how to overcome.
0
Comment
Question by:vittalmareddy
  • 3
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34884800
you need to run tomcat on a higher version of java
0
 
LVL 92

Expert Comment

by:objects
ID: 34884804
you can set JAVA_HOME environment var to point at the jdk you want tomcat to use
0
 

Author Comment

by:vittalmareddy
ID: 34884822
custom code is compiled using JDK1.6, and third party libraries are complied with different versiona as
1. first.jar  ->jdk1.4
2. second.jar ->jdk1.3

if i  run tomcat referring higher jdk, and accessing functionality referring from jdk1.4 and jdk1.3 will not throw, version mismatch exception.
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34884825
yes, later versions of java will run code compiled for earlier versions
in your case you'll need to run tomcat with java6
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36935132
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 63
swing controls 2 15
Java 8 to Java 6 8 20
jsp CRUD operations with and without prepared statement also hibernatge 1 7
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question