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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Still not Working  RSS feed

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi friends,

i have downloaded classes12.jar file and i have pasted it in the
c:/JDK Folder/jre/lib, but still im gettin the exception

java.lang.ClassNotFoundException racle.jdbc.driver.oracledriver
java.lang.NullPointerException

do i need to set any path and classpath

the present path and classpath are

PATH: E:\oracle\B11\817\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\sapdb\programs\bin;C:\sapdb\programs\pgm;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\j2sdk1.4.2_04\bin;c:\j2sdkee1.3.1\bin

CLASSPATH: C:\j2sdk1.4.2_04\lib;c:\j2sdkee1.3.1\lib\j2ee.jar

Im using J2SDK1.4.2_04 and J2EESDK1.3.1
 
Swaminathan Balasubramani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi friends,

one more thing i have downloaded classes12.zip from oracle link and i have classes12.jar in %ORACLE_HOME% directory..which should i paste and where should i paste..
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Report post to moderator
path is where your executables are
class files are in your classpath.

They are used in two ways -
1. While compiling, it should be there on the classpath -
eg., set classpath=%classpath%;c:\jars\classes12.zip;
Else the files dont get compiled.
2. While executing the file, it needs to be on the classpath too.
For that u place it in jre\lib or on the server lib if u are using a webserver/app server.

sometimes, you also need to have the corresponding Oracle client installed on the machine for the proper execution of file.
 
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
B,
Same advice as I gave in the other topic you posted that deals with this same issue. In my opinion, it would have been better for you to simply continue that topic. So I have answered you there...

Good Luck,
Avi.
 
author & internet detective
Sheriff
Posts: 38569
659
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Swaminathan,
I'm closing this thread since it is a duplicate. Please continue discussion in the thread Avi linked to.

And welcome to JavaRanch!
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!