Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC problem in Java RMI

 
Siddhartha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a project in Java RMI. I am using (JDBC) Oracle thin drivers and they are in a.zip file called classes.zip. Now when i add a CLASSPATH (setenv CLASSPATH /u/home/sijain/1aman/classes12.zip) in .cshrc to access this file I get wierd problems.
These are the errors its giving to me:-
posImpl.java:7: cannot resolve symbol
symbol : class posIntf
location: class posImpl
public class posImpl extends java.rmi.server.UnicastRemoteObject implements posIntf
^
1 error
ShopMartzc01s16PriceServer1.java:12: cannot resolve symbol
symbol : class posImpl
location: class ShopMartzc01s16PriceServer1
posImpl p= new posImpl(); //posIntf ki posImpl not sure
^
ShopMartzc01s16PriceServer1.java:12: cannot resolve symbol
symbol : class posImpl
location: class ShopMartzc01s16PriceServer1
posImpl p= new posImpl(); //posIntf ki posImpl not sure
^
2 errors
ShopMartzc01s16PriceServer2.java:12: cannot resolve symbol
symbol : class posImpl
location: class ShopMartzc01s16PriceServer2
posImpl p= new posImpl(); //posIntf ki posImpl not sure
^
ShopMartzc01s16PriceServer2.java:12: cannot resolve symbol
symbol : class posImpl
location: class ShopMartzc01s16PriceServer2
posImpl p= new posImpl(); //posIntf ki posImpl not sure
^
2 errors
posClient.java:19: cannot resolve symbol
symbol : class posIntf
location: class posClient
posIntf p;
^
posClient.java:44: cannot resolve symbol
symbol : class posIntf
location: class posClient
if(count%2==1) p = (posIntf) Naming.lookup("//evans.cs.du.edu/posService1");
^
posClient.java:45: cannot resolve symbol
symbol : class posIntf
location: class posClient
else p = (posIntf) Naming.lookup("//evans.cs.du.edu/posService2");
^
3 errors
error: Class posImpl not found.
1 error
Can anybody help me with this?? Its pretty urgent!!! Thanks a lot.
 
mustang india
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I feel is ur class is not getting the interface. Did u import the package ? If u can provide the source code of both the interface and the impl class, that could be a help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic