Downloading/installing jdbc thin drivers on linux"

HELP................., how do install jdbc thin driver on linux server...


Jasbir
Jasbir21Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jasbir21Author Commented:
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
Jasbir21Author Commented:
Do you know how to do it?

Thanks
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

objectsCommented:
easiest would just be to add the zip to your ext directory.
you may have to rename it to a jar.
0
Jasbir21Author Commented:
Sorry objects , i am new to linux.How do i add the zip to ext directory

Jasbir
0
objectsCommented:
if jre is installed in say /usr/java:

cp classes12.zip /usr/java/lib/ext/classes12.jar
0
Jasbir21Author Commented:
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
objectsCommented:
then try:

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


0
Jasbir21Author Commented:
got the error cp:cannot create regular file '/usr/java/j2sdk1.4.1_02/jre/lib/ext/classes12.jar :Permission denied
0
Jasbir21Author Commented:
Sorry , i forgot to mention , that i have classes12.zip and classes12.jar at the home prod
0
objectsCommented:
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
Jasbir21Author Commented:
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
Jasbir21Author Commented:
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
objectsCommented:
looks ok, does the linux box know about the host 'klmsph1'?

try:

ping klmsph1
0
Jasbir21Author Commented:
The screen ran full with

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

0
objectsCommented:
try asking oracle tech support.
0
Jasbir21Author Commented:
Thanks a lot , it works.

 God bless you.
0
Jasbir21Author Commented:
God bless you.Thank you
0
Jasbir21Author Commented:
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
Jasbir21Author Commented:
Think i now why, the class file is not in that www/var..

0
objectsCommented:
Good to hear you are making progress.
Hope you are also learning :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.