Win a copy of Spring Boot in Practice this week in the Spring forum!

sanjays samadder

Greenhorn
+ Follow
since Mar 30, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sanjays samadder

Hi,
I have passed the scjp exam with 86%.If crertfication is valuable then will you please tell me where to look for a job i am not Experienced But Am will to work as a trainee as well to start with
sanjay
21 years ago
hi gautham,
thanks for the trouble taken
i infact found out the problem.
i was not including the stub and the all the class files related to the client class .
now that i have done that my rimi objects are being invoked all over the network.
thanks a lot.
21 years ago
yes ,I am using jdk1.3
and using idlj.
helloOperations.java
is there but there is no helloImplBase.java
I am also confused about idl2java and idltojava.
which is where??
please help.
21 years ago
hi,
i saw all the suggestions.
did they work??
try this if it does not
long l=4234242424;
to convert the long to String:
String s=new Long(l).toString();
21 years ago
please help with this
I have compiled a .idl file which has given 5 .java files as expected.
but the books say one of them should be HelloImplBase.java
whereas I get one called HelloOperations.java
intitutively I have extended my helloservant class to the HelloOperation class
but the error is:
\helloServant.java:12: no interface expected here
public class helloServant extends HelloOperations
consequently my helloserver calss do not recognize the objects of the helloservant class.
what is happening???
the rest of the codes in different classes I understood
import Hello.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
public class helloServant extends HelloOperations
{
public String sayHello()
{
return"hello";
}
}

thank you
21 years ago
hi
let me share my experience with you regarding the problem I too faced
I tried to compile the client programe in adifferent machine.surely it did not recognise the interface .
then i compiled it in the same directory as the interface.
i put both the client class and the interface class in
a different machine.
I work in a network evironment .
and use dhcp server which assigns dynamic ip addresses .
so the client programe sometimes worked and at times it did not .this was as i discovered due to the ever changing ip addresses.
each time i had to remove the clent .class from the client machine and recompile the client .java in the server machine making changes to the ip address.by running the command ipconfig at command promt which gave me the day's ip address for the server machine.
and copied the class file in the other machine.
it worked.
please pass on any info you may stumble upon
21 years ago
sorry I used idlj <filename>.idl
21 years ago
class testing
{
static public void main(String args[])
{
String s="abs";

}
}
i compiled your code to be sure but it did not give any error
int is not a subclass of Object .but Integer class is.
it is a wrapper class which is used to convert the primitive int into an object.
similarily all the other primitives have wrapper classes.
21 years ago
check up thew RamdomAccessFile class in java.io.*;
there are many methods to help you out one of the indeed returns
the size of the file in bytes and a seek(long) method lets you jump to that pointer.
but you are not allowed to handle the pointers yourself.
21 years ago
hi I had the same problem .even setting the class path to vbroker/lib/classes or jar does not work .to compile my programm
i used idjl <modulename>.idl at coomand prompt.using jdk
this worked but then i have other problems have a look at the topic here in this topic.
please see if you can help.
thanks
sanjay
21 years ago
please help with this
I have compiled a .idl file which has given 5 .java files as expected.
but the books say one of them should be HelloImplBase.java
whereas I get one called HelloOperations.java
intitutively I have extended my helloservant class to the HelloOperation class
but the error is:
\helloServant.java:12: no interface expected here
public class helloServant extends HelloOperations
consequently my helloserver calss do not recognize the objects of the helloservant class.
what is happening???
the rest of the codes in different classes I understood
import Hello.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
public class helloServant extends HelloOperations
{
public String sayHello()
{
return"hello";
}
}

thank you
21 years ago
I have made a .idl file .
set the appropriate classpath and copied the file in the bin directory of
visigenic/vbroker.
when i compile with idl2java XXX.idl from the bin directory
it throws an Exception ClassCastException in "main"
what could this mean???
my code in the simplest form is:
module hello{
interface helloapp{
string sayHello();
};
};
I am using VisiBroker for java 3.2
please some one help.
21 years ago
it also works if you put all your files in the bin directory
or a directory above
21 years ago
books i can suggest are
complete reference by patrik naughton
thinking in java by bruce ekel and
the best is java tutorials which is avilable at the sun site
or in many cds that come along with IT magazines
regards sanjay
21 years ago
hi,
if you have done any bit of awt class you will notice that textcomponets take in dta in string format .the question is how will you convert them to primitive so as to perform calculations on them .in order to make them as primitive data type wrapper classes are used.that is one practical use i have found.
thanks
sanjay
21 years ago