agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Manifest for examples.jar
Date: Mon, 17 Jul 2006 19:30:09 -0400
Message-ID: <44BC1D81.90105@gmail.com> (raw)
In-Reply-To: <44B7D5BA.2060402@tada.se>
References: <1150963234.5987.11.camel@localhost>
<449A52D8.4010208@tada.se>
<1150971313.6071.6.camel@localhost>
<449A9257.9040608@tada.se>
<1150981643.6071.34.camel@localhost>
<449A9836.1060909@tada.se>
<1150982969.6071.39.camel@localhost>
<449AA178.5090806@tada.se>
<449AABCB.3000403@tada.se>
<1150991211.6071.44.camel@localhost>
<449ABC7F.4040806@tada.se>
<44B7C76F.7020208@gmail.com>
<44B7D5BA.2060402@tada.se>
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
view thread (2+ messages) latest in thread
Message-ID: <44BC1D81.90105@gmail.com>
Permalink: ../44BC1D81.90105@gmail.com/
Also on: postgresql.org/message-id/44BC1D81.90105@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Manifest for examples.jar
In-Reply-To: <44BC1D81.90105@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox