[Pljava-dev] Manifest for examples.jar

From: whalesuit at gmail(dot)com (Eric E)
To:
Subject: [Pljava-dev] Manifest for examples.jar
Date: 2006-07-17 23:30:09
Message-ID: 44BC1D81.90105@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi Thomas,
I am building PL/Java from the source along with some modifications
I'm working on. The build succeeds, and I was able to deploy pljava.so
and pljava.jar under JDK 1.5.07. In order to overcome the zlib issue, I
switched to JDK 1.6b2, because I think I've read that Java 6 can read
binaries compiled with Java 5 without problems. When I try to build
using Java 6, the compile complains about a bunch of unimplemented
methods in the JDBC interface definitions.

I then attempted to run
sqlj.install_jar('file:///......./examples.jar', 'samples', true);

It starts, and I can actually remotely connect to the JVM, but the
function dies with the exception:

ERROR: java.sql.SQLException: No such class:
org.postgresql.pljava.example.ComplexTuple

When I unzip the file, the manifest is empty, which makes sense, because
the manifest in the build tree is also empty. However, upon unzipping
examples.jar, the class is present inside of it, and less examples.jar
returns (presumably the zip manifest):

Archive: ./examples.jar
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
0 Defl:N 2 0% 07-17-06 23:17 00000000 META-INF/
136 Defl:N 125 8% 07-17-06 23:17 b8e83a9c
META-INF/MANIFEST.MF
0 Stored 0 0% 07-17-06 23:17 00000000 org/
0 Stored 0 0% 07-17-06 23:17 00000000 org/postgresql/
0 Stored 0 0% 07-17-06 23:17 00000000
org/postgresql/pljava/
0 Stored 0 0% 07-17-06 23:17 00000000
org/postgresql/pljava/example/
1057 Defl:N 555 48% 07-17-06 23:17 670a9c4b
org/postgresql/pljava/example/SetOfRecordTest.class
1582 Defl:N 803 49% 07-17-06 23:17 5847ab8d
org/postgresql/pljava/example/ComplexTuple.class
1187 Defl:N 660 44% 07-17-06 23:17 2779804a
org/postgresql/pljava/example/Threads.class
2150 Defl:N 1183 45% 07-17-06 23:17 e50ff5ac
org/postgresql/pljava/example/ResultSetTest.class
2520 Defl:N 1253 50% 07-17-06 23:17 6081fcbf
org/postgresql/pljava/example/ComplexScalar.class
1434 Defl:N 764 47% 07-17-06 23:17 2b7503ac
org/postgresql/pljava/example/Threads$Locker.class
1060 Defl:N 643 39% 07-17-06 23:17 7cae587b
org/postgresql/pljava/example/RandomInts.class

So the class is actually there. Any thoughts on why sql_install_jar
can't find it?

Thanks,

Eric

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Joachim Hammer 2006-07-17 23:40:10 [Pljava-dev] problems installing PL/Java under Mac OS 10.3.9
Previous Message Joost Kraaijeveld 2006-07-14 18:33:00 [Pljava-dev] zlib conflict on Debian AMD64 ???