aspose file tools*
The moose likes JDBC and the fly likes Java and ORACLE XE connectivity Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java and ORACLE XE connectivity Problem " Watch "Java and ORACLE XE connectivity Problem " New topic
Author

Java and ORACLE XE connectivity Problem

pinga kanave
Greenhorn

Joined: Mar 11, 2010
Posts: 20
I have installed ORACLE XE in my linux server.

I m not able to execute JDBCVersion.java program which is just a test program to connect with database.

I m able to compile the program but while running it is giving following error.









My PATH Variable contains the following :
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jlib/orai18n.jar

Some information that might be useful.







Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2477
    
    7

Can you try to add the current folder into your classpath:
e.g.:
$ java -cp . JDBCVer.....


OCUP UML fundamental and ITIL foundation
youtube channel
pinga kanave
Greenhorn

Joined: Mar 11, 2010
Posts: 20
Jan Cumps wrote:Can you try to add the current folder into your classpath:
e.g.:
$ java -cp . JDBCVer.....


I have tried it but still not working.
It gives me the list of options available with java.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2477
    
    7

java -cp .:<classpath to your Oracle XE jdbc driver> JDBCVersion
pinga kanave
Greenhorn

Joined: Mar 11, 2010
Posts: 20
Jan Cumps wrote:java -cp .:<classpath to your Oracle XE jdbc driver> JDBCVersion

Thanks , I used following command to run my program.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java and ORACLE XE connectivity Problem
 
Similar Threads
WLS 6.1 sp3 server won't start with rh7.2
Need a little help in running jsp pages(Tomcat server).
ORA-24327
Class Not Found exception in cron job
Installing Tomcat on linux help needed.