Saturday, April 14, 2007

JDK and JRE Big lesson learnt

JDK: Java Development tool kit also includes JRE (Java Runtime Environment)

JRE: Java Runtime Environment need not be installed separately. I comes along with JDK. Just make sure if its installed properly

Also biggest mistake made today:

JDK and JRE are of separate versions.And code compiled with a different version of JDK cannot be run on separate version of JRE.

So Ant is showing the following error

class file has wrong version 49.0, should be 48.0

To read more abt this goto: http://forum.java.sun.com/thread.jspa?threadID=517933&tstart=0


Resolution: What I did is uninstall both JDK and JRE and reinstall the same verison from http://java.sun.com/javase/downloads/index_jdk5.jsp

Everything went well and my Build is successful.

No comments: