Re: How does the CLASSPATH works?
From: Bob Kranson (bob.kranson_at_compuware.com)
Date: 10/10/03
- Next message: Bob Kranson: "Re: struts simple app"
- Previous message: Horace A. Vallas, Jr.: "Re: Help needed for better buttons in Internet Explorer using AWT"
- In reply to: ultrium: "How does the CLASSPATH works?"
- Next in thread: ultrium: "Re: How does the CLASSPATH works?"
- Reply: ultrium: "Re: How does the CLASSPATH works?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Oct 2003 15:56:41 -0400
I understand that Oracle has a new jdbc driver for jdk1.4.x which is NOT
named class12.zip. You should try to locate the new JDBC driver...
"ultrium" <ultrium@hotmail.com> wrote in message
news:GHAhb.850$2t3.450@newssvr22.news.prodigy.com...
> I have written two programs on a WinXP machine: one is a HelloWorld
program,
> the other is a program using JDBC to connect to an Oracle database. I have
> gotten them both to work within the eclipse IDE. The problem is to get
them
> to work within a command prompt. The documentation for Oracle tells me
that
> I have to set up the jar file of the database driver in the environment
> variable CLASSPATH for it to work right. I have tried CLASSPATH=
> "C:\j2sdk1.4.2_01\jre\lib\rt.jar;C:\oracle\ora92\jdbc\lib\classes12.zip".
> This does not work for either program. I get the message "Exception in
> thread "main" java.lang.NoClassDefFoundError:" for both programs. I delete
> the CLASSPATH variable and the HelloWorld program works and the Oracle
> program can not find the JDBC driver. I look at
>
http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/windows.html
> and it tells me to point at a tools.jar file in the CLASSPATH Variable. So
I
> change the CLASSPATH to equal this
> "C:\j2sdk1.4.2_01\lib\tools.jar;C:\oracle\ora92\jdbc\lib\classes12.zip".
> This same error "Exception in thread "main"
java.lang.NoClassDefFoundError:"
> for both programs. How do I set the CLASSPATH variable? I need to set it
up
> to use the Oracle driver. Any help would be appreciated.
>
>
- Next message: Bob Kranson: "Re: struts simple app"
- Previous message: Horace A. Vallas, Jr.: "Re: Help needed for better buttons in Internet Explorer using AWT"
- In reply to: ultrium: "How does the CLASSPATH works?"
- Next in thread: ultrium: "Re: How does the CLASSPATH works?"
- Reply: ultrium: "Re: How does the CLASSPATH works?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]