Error building JDBC Driver

Started by Michael Labhardover 25 years ago9 messagesgeneral
Jump to latest
#1Michael Labhard
mlabhard@viatraining.com

When attempting to build JDBC 7.0 driver with "make jdbc2 jar", the following
error occurs:

org.postgresql.Connection.java: Can't find class org/postgresql/Field

Any ideas? Thanks.

#2Mark Kirkwood
mark.kirkwood@catalyst.net.nz
In reply to: Michael Labhard (#1)
RE:Error building JDBC Driver

Previously:

When attempting to build JDBC 7.0 driver with "make jdbc2 jar", the

following

error occurs:

org.postgresql.Connection.java: Can't find class

org/postgresql/Field

Any ideas? Thanks.

I encountered this error when using an older JDK ( < 1.2 )

Downloading 1.2.2 from Sun sorted the problem...

( If you have both installed, watch out for the order the occur in your
path.... )

Cheers

Mark

#3Bruce Momjian
bruce@momjian.us
In reply to: Michael Labhard (#1)
Re: Error building JDBC Driver

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

When attempting to build JDBC 7.0 driver with "make jdbc2 jar", the following
error occurs:

org.postgresql.Connection.java: Can't find class org/postgresql/Field

Any ideas? Thanks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#4Joseph Shraibman
jks@selectacast.net
In reply to: Bruce Momjian (#3)
Re: Error building JDBC Driver

Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Well, yeah. "make jdbc2" won't work with kaffe, since it is java 1.1

When attempting to build JDBC 7.0 driver with "make jdbc2 jar", the following
error occurs:

org.postgresql.Connection.java: Can't find class org/postgresql/Field

Any ideas? Thanks.

--
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 853-3000
+  If your life is a hard drive,     |  830 Blythe Avenue
+  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio. http://www.targabot.com

#5Joseph Shraibman
jks@selectacast.net
In reply to: Joseph Shraibman (#4)
Re: Error building JDBC Driver

Peter Mount wrote:

On Mon, 16 Oct 2000, Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Yes, kaffe cannot handle compiling two classes that refer to each other
(while all other implementations can, and it's part of the java language
specification).

I've just put up a pre-compiled binary for Java2 only based on the current
sources, as some people have been asking for it.

Current sources means the current released source or the current cvs
source?

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio. http://www.targabot.com

#6Peter T Mount
peter@retep.org.uk
In reply to: Bruce Momjian (#3)
Re: Error building JDBC Driver

On Mon, 16 Oct 2000, Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Yes, kaffe cannot handle compiling two classes that refer to each other
(while all other implementations can, and it's part of the java language
specification).

I've just put up a pre-compiled binary for Java2 only based on the current
sources, as some people have been asking for it.

Peter

When attempting to build JDBC 7.0 driver with "make jdbc2 jar", the following
error occurs:

org.postgresql.Connection.java: Can't find class org/postgresql/Field

Any ideas? Thanks.

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 853-3000
+  If your life is a hard drive,     |  830 Blythe Avenue
+  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

--
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/

#7Bruce Momjian
bruce@momjian.us
In reply to: Peter T Mount (#6)
Re: Error building JDBC Driver

On Mon, 16 Oct 2000, Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Yes, kaffe cannot handle compiling two classes that refer to each other
(while all other implementations can, and it's part of the java language
specification).

Yes, that is exactly what I found, and reported it to kaffe group.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#8Peter T Mount
peter@retep.org.uk
In reply to: Joseph Shraibman (#5)
Re: Error building JDBC Driver

On Tue, 17 Oct 2000, Joseph Shraibman wrote:

Peter Mount wrote:

On Mon, 16 Oct 2000, Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Yes, kaffe cannot handle compiling two classes that refer to each other
(while all other implementations can, and it's part of the java language
specification).

I've just put up a pre-compiled binary for Java2 only based on the current
sources, as some people have been asking for it.

Current sources means the current released source or the current cvs
source?

Current CVS source.

Peter

--
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/

#9Peter T Mount
peter@retep.org.uk
In reply to: Bruce Momjian (#7)
Re: Error building JDBC Driver

On Tue, 17 Oct 2000, Bruce Momjian wrote:

On Mon, 16 Oct 2000, Bruce Momjian wrote:

I think the problem is using kaffe. I downloaded the jdbc binary from
Peter's web site at:

http://www.retep.org.uk

and that worked with kaffe. Seems kaffe can not handle dependencies
properly.

Yes, kaffe cannot handle compiling two classes that refer to each other
(while all other implementations can, and it's part of the java language
specification).

Yes, that is exactly what I found, and reported it to kaffe group.

Yes, I remember now you saying you had...

Peter

--
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/