Junilu Lacar wrote:Check the Java version before you run:
$ java -version
As Tim said, you're probably trying to run the classes you created with a Java 6 compiler in a Java 5 runtime.
(Edit: Darn it, did it again. Second time today I missed a detail in the OP. Bad bartender!)
Ok, so it's the Make that's complaining. I see. Still sounds like you're running the wrong compiler, even though you changed the Make file. So add 'javac -version' in there and see what it outputs, you may find that your assumption that you're compiling with Java 6 is wrong.
Hi Junilu,
There is a slight problem in that.
"java -version" is showing jdk 1.5
My system ( Solaris 5.10) has currently both the versions installed.
The old applications are running on jdk 1.5
However to
test the feasability of porting from jdk 1.5 to jdk 1.6, I have made the installation of jdk 1.6 in another directory.
I have made necessary changes in the Makefile to help support my application to run on jdk 1.6 (like, I have changed the location of the "java", "javac" in the Makefile).
Can there be a possibility that, it`s still picking jdk 1.5 insted of 1.6