• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

JDBC problem in Java RMI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic