Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

JDBC problem in Java RMI

 
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.
 
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.
 
Their achilles heel is the noogie! Give them noogies tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!