java - Running a simple JBDC program from command prompt -


need assistance on running simple jdbc program command prompt.

tried different methods not able success in running it.

my system environment variables i.e.

user variables:

path c:\program files (x86)\java\jdk1.7.0_03\bin 

my jbdc program present in d:\jdbc\a.java

and path of oracle jar file is:

d:\oracle_10g\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar 

can 1 me out run , setting ojdbc14.jar classpath great full.

to compile:

d:\jdbc>javac -cp "c:\program files (x86)\java\jdk1.7.0_03\bin;d:\oracle_10g\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar "a.java

to run:

d:\jdbc>java -cp "c:\program files (x86)\java\jdk1.7.0_03\bin;d:\oracle_10g\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;." a

best of luck , if should have further problems, let me know.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -