Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Corey Mosher
So there has got to be something wrong with the way I'm setting my classpath in that when I type java sample it is trying to use sample.java instead of sample.class. I'll play around with the classpath and see what I come up with. Thanks Bob, I appreciate it. Corey On Fri, 16 Feb 2001, Bob Kli

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Bob Kline
I'm not saying I doubt what you're telling me about how you're trying to run the program, but you might want to try again. Watch this: $ javac sample.java $ java sample Enter a state code: VA Virginia $ java sample.java Exception in thread "main" java.lang.NoClassDefFoundError: sample/java Loo

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Corey Mosher
The source code is from the book: PostgreSQL: Introduction And Concepts Located at: http://www.postgresql.org/docs/aw_pgsql_book/node192.html I wanted to use some code that I knew worked to overcome problems like I am having. Corey On Fri, 16 Feb 2001, Bob Kline wrote: > On Fri, 16 Feb 2001,

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Bob Kline
On Fri, 16 Feb 2001, Corey Mosher wrote: > No, to run the program I am using: > java sample > > To compile it I am using: > javac sample.java > > I have had other simple programs running (the usual hello world > apps) and they seem to work fine. Just this one for some reason > gets the error.

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Corey Mosher
No, to run the program I am using: java sample To compile it I am using: javac sample.java I have had other simple programs running (the usual hello world apps) and they seem to work fine. Just this one for some reason gets the error. Corey On Fri, 16 Feb 2001, Bob Kline wrote: > On Fri, 16

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Bob Kline
On Fri, 16 Feb 2001, Corey Mosher wrote: > Hi, > > I am trying to test out the postgres-JDBC driver. I have a > file called sample.java. It compiles fine, but when I run it > I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: sample/java > > This is w

Re: [JDBC] Trouble With JDBC

2001-02-16 Thread Peter T Mount
Quoting Corey Mosher <[EMAIL PROTECTED]>: > Hi, > > I am trying to test out the postgres-JDBC driver. I have a > file called sample.java. It compiles fine, but when I run it > I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: sample/java > > This is

[JDBC] Trouble With JDBC

2001-02-16 Thread Corey Mosher
Hi, I am trying to test out the postgres-JDBC driver. I have a file called sample.java. It compiles fine, but when I run it I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: sample/java This is what my classpath is set to: export CLASSPATH=.:/usr/local/j