Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Downloading/installing jdbc  thin drivers on linux"

Posted on 2003-03-25
21
Medium Priority
?
324 Views
Last Modified: 2010-03-31
HELP................., how do install jdbc thin driver on linux server...


Jasbir
0
Comment
Question by:Jasbir21
  • 13
  • 8
21 Comments
 
LVL 92

Accepted Solution

by:
objects earned 800 total points
ID: 8207754
As I mentioned before if it supports Linux then you would treat it the same as you would under Windows.
Exactly what problem are you having?
0
 

Author Comment

by:Jasbir21
ID: 8207842
The problem is that i have never installed it on Windows before.
  My boss , just told me that i don't need to install it.I just need to include the classpath of the classes12.zip


Jasbir
0
 

Author Comment

by:Jasbir21
ID: 8207860
Do you know how to do it?

Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 8207900
easiest would just be to add the zip to your ext directory.
you may have to rename it to a jar.
0
 

Author Comment

by:Jasbir21
ID: 8207979
Sorry objects , i am new to linux.How do i add the zip to ext directory

Jasbir
0
 
LVL 92

Expert Comment

by:objects
ID: 8208104
if jre is installed in say /usr/java:

cp classes12.zip /usr/java/lib/ext/classes12.jar
0
 

Author Comment

by:Jasbir21
ID: 8208248
My jre is in j2sdk1.4.1_02


I am at the home/prod


cp classes12.zip /usr/java/j2sdk1.4.1_02/lib/ext/classes12.jar


Note: at user home prod , i have 2 files, classes12.zip and classes12.jar


when i typed that , the error i got is cp:cannot create regular file /file/usr/java/j2sdk1.4.1_02/lib/ext/classes12.jar


no such file and dir
0
 
LVL 92

Expert Comment

by:objects
ID: 8208339
then try:

cp classes12.jar /usr/java/j2sdk1.4.1_02/jre/lib/ext/


0
 

Author Comment

by:Jasbir21
ID: 8208376
got the error cp:cannot create regular file '/usr/java/j2sdk1.4.1_02/jre/lib/ext/classes12.jar :Permission denied
0
 

Author Comment

by:Jasbir21
ID: 8208385
Sorry , i forgot to mention , that i have classes12.zip and classes12.jar at the home prod
0
 
LVL 92

Expert Comment

by:objects
ID: 8208403
you'll need to get your sys admin to copy them then.

Another alternative is to just specify them on your command line:

java -classpath classes12.jar;$CLASSPATH MyClass

Or add it to the CLASSPATH environemtn variable.
0
 

Author Comment

by:Jasbir21
ID: 8208477
i don't mind using the second method.

When i run the program , i get this error:


Invalid Oracle URL specified.

Maybe in linux i need to type the url in a different way ??

String url="jdbc:oracle:thin@klmsph1:1521:KLMPMIS";


0
 

Author Comment

by:Jasbir21
ID: 8208490
When i am working on my workstation(pc), i used the same url and it works.
try{

Class.forName("oracle.jadbc.driver.OracleDriver");
String url="jdbc:oracle:thin@klmsph11:1521:KLMPMIS";
String user="com";
String pass="com";

Connection con=DriverManager.getConnection(url,user,pass);
0
 
LVL 92

Expert Comment

by:objects
ID: 8208525
looks ok, does the linux box know about the host 'klmsph1'?

try:

ping klmsph1
0
 

Author Comment

by:Jasbir21
ID: 8208584
The screen ran full with

64 bytes .... .klmsph1.m........
64 bytes......

0
 
LVL 92

Expert Comment

by:objects
ID: 8208634
try asking oracle tech support.
0
 

Author Comment

by:Jasbir21
ID: 8208752
Thanks a lot , it works.

 God bless you.
0
 

Author Comment

by:Jasbir21
ID: 8208755
God bless you.Thank you
0
 

Author Comment

by:Jasbir21
ID: 8208768
Objects, i tried loading to the intranet, the error is i need java plug in.

When i tried to open it on anoter comp, the error is java.lang.classnotfound.

HELP
0
 

Author Comment

by:Jasbir21
ID: 8208876
Think i now why, the class file is not in that www/var..

0
 
LVL 92

Expert Comment

by:objects
ID: 8214170
Good to hear you are making progress.
Hope you are also learning :-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question