View Single Post
Old 08-25-2006, 12:55 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
Compiled Java files working on one machine and not on another machine??

Hello,

I have two queries which are as follows:

1)
I had some java classes which i had to compile and move into the production machine.

Now i compiled those files in my development environment and moved the class files to Production.But they didnt worked there.

My Development environment consists of: Windows XP,Apache Tomcat Webserver 4.1,jdk1.3.1_01
My Production environment consists of: UNIX,Weblogic 6.1 ,jdk1.3.1_01(which comes included with weblogic by default)

Now what i would like to know is this:

Java is a platform-independent language having only the difference between JVM's for different machines which interprets the generated bytecodes.So the files compiled on any machine should work properly wherever a JVM is present no matter on which machine the JVM is there(Please correct me if i im wrong)??

But the files compiled on my development machine didn't worked on the production machine.But the same when i compiled on the Production machine it worked smoothly.So can you people please explain me why it behaved like this??


2)If any application server/webserver includes the Java Software Development kit

AND

if i have JDK installed on the same PC at some other location(excluding appserver/webserver version)

then when the applications is deployed and accessed which JDK version the Application will
use??

Thanks,
Jignesh
j.gohel is offline   Reply With Quote