I think obj.test(5) returns Integer not int.  Try  Integer retcode = obj.test(5);  if (retCode.intValue() = 5) ....  : What exactly am i missing here ? : test.java =  : import com.sybase.dpb.*;  : import com.softtreetech.scheduler.*;  : class test  : {  : j24x7 obj = new j24x7( );  : public void main()  : {  : if (obj.test(5) != 5)  : {  : System.out.println("ERROR");  : }  : }  : }  : compiled with : C:\development>javac -classpath  : "c:\development\JDPB24x7.jar;c:\development\jgl3  : .1.0.jar" c:\development\test.java  : both .jar files, and the java file are located in c:\development.  : I get this error : c:\development\test.java:9: test(java.lang.Integer) in  : com.softtreetech.schedule  : r.j24x7 cannot be applied to (int)  : if (obj.test(5) != 5)  : ^  : 1 error  : This is right out of the java api example... am I making a basic java boo boo  : ?   
   |