SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
java api woes

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
java api woes
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post java api woes Reply with quote

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 ?


Thu Feb 10, 2005 1:46 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: java api woes Reply with quote

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
: ?

Thu Feb 10, 2005 3:05 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.