NoSuchMethod error

Hi All,

I am facing a java.lang.NoSuchMethodError in my code.

FileChannel fCh= (new RandomAccessFile(lockFile, "rw")).getChannel();

compile time i am not getting any server ,but when i am running t he code on server i am getting this error.

Eclipse compiler compliance level =1.4

Generate .class files compatibily=1.2

Server Java : j2sdk1.4.2_09__

i have tried to read the API of RandomAccessFile class.

This class is there sicne JDK 1.0

So i am not sure why is that the problem.

Please help

[558 byte] By [java_jamboreea] at [2007-11-27 8:31:50]
# 1
But the FileChannel class, and the RandomAccessFile.getChannel() method, are only there since 1.4 ...
ejpa at 2007-7-12 20:27:29 > top of Java-index,Java Essentials,Java Programming...
# 2
so it shud run.......as my server JRE is higher than that.....
java_jamboreea at 2007-7-12 20:27:29 > top of Java-index,Java Essentials,Java Programming...