agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feed[Pljava-dev] pljava.so wont compile - now it does! :)
3+ messages / 0 participants
[nested] [flat]
* [Pljava-dev] pljava.so wont compile - now it does! :)
@ 2013-01-12 22:47
2013-01-13 10:54 ` [Pljava-dev] pljava.so wont compile - now it does! :)
0 siblings, 1 reply; 3+ messages in thread
From: @ 2013-01-12 22:47 UTC (permalink / raw)
Hello
Wow, I finally got it working. Took me only 2h :-)
I got a strange error message with the test suite though. Already tried to
replace the "UTC" with "GMT" but somehow it does not show any effect:
java -cp /usr/share/java/postgresql.jar:target/pljava-jdbc-0.0.1-SNAPSHOT.jar:target/pljava-examples-0.0.1-SNAPSHOT.jar:target/pljava-api-0.0.1-SNAPSHOT.jar:target/org.postgresql.pljava.test.jar org.postgresql.pljava.test.Tester -user postgres -password geheim -database pljava
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
*** testTimestamp()
Timestamp = 2013-01-12 23:44:07.336, Timestamptz = 2013-01-12 23:44:07.338
org.postgresql.util.PSQLException: ERROR: java.lang.SecurityException: read on /usr/share/javazi/UTC
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
at org.postgresql.pljava.test.Tester.testTimestamp(Tester.java:527)
at org.postgresql.pljava.test.Tester.testParameters(Tester.java:288)
at org.postgresql.pljava.test.Tester.main(Tester.java:227)
What are your plans on integrating javah and the C sources into maven?
Is it possible to tell maven to first compile the java stuff and then
generate C header files from two sub-projects before finally compiling
the C project?
bye,
-christian-
Am Fri, 11 Jan 2013 20:40:13 +0100
schrieb Christian Hammers <ch at lathspell.de>:
> Hello
>
> With the hellblazer git repository code I finally got four .jar files
> but now I wonder how to compile the shared library from the C sources.
> None of the Makefiles seem to work and the pom.xml contains no
> reference to a C compiler:
>
> -=(~/workspace/pljava/lathspell-master/C)$ make
> make[1]: Entering directory
> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
> make[1]: /srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile:
> No such file or directory make[1]: *** No rule to make target
> `/srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile'.
> Stop. make[1]: Leaving directory
> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
> make: *** [pljava_all] Error 2
>
> -=(~/workspace/pljava/lathspell-master/C/pljava)$ make
> find: `/pljava': No such file or directory
> make: Nothing to be done for `checkjavahome'.
>
> (I'm using gcc-4.7 and Oracle/OpenJDK-1.7.
>
> bye,
>
> -christian-
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
^ permalink raw reply [nested|flat] 3+ messages in thread
* [Pljava-dev] pljava.so wont compile - now it does! :)
2013-01-12 22:47 [Pljava-dev] pljava.so wont compile - now it does! :)
@ 2013-01-13 10:54 `
2013-01-13 10:58 ` [Pljava-dev] pljava.so wont compile - now it does! :)
0 siblings, 1 reply; 3+ messages in thread
From: @ 2013-01-13 10:54 UTC (permalink / raw)
I found a fairly good article outlining a way to build a mix of Java and
C++ code with Maven. Perhaps this is the way to go?
http://www.humboldt.co.uk/2009/02/wrapping-a-native-library-with-maven.html
I'm not really a maven wizard myself so help on this topic is greatly
appreciated.
- thomas
On 2013-01-12 23:47, Christian Hammers wrote:
> Hello
>
> Wow, I finally got it working. Took me only 2h :-)
>
> I got a strange error message with the test suite though. Already tried to
> replace the "UTC" with "GMT" but somehow it does not show any effect:
>
> java -cp /usr/share/java/postgresql.jar:target/pljava-jdbc-0.0.1-SNAPSHOT.jar:target/pljava-examples-0.0.1-SNAPSHOT.jar:target/pljava-api-0.0.1-SNAPSHOT.jar:target/org.postgresql.pljava.test.jar org.postgresql.pljava.test.Tester -user postgres -password geheim -database pljava
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> *** testTimestamp()
> Timestamp = 2013-01-12 23:44:07.336, Timestamptz = 2013-01-12 23:44:07.338
> org.postgresql.util.PSQLException: ERROR: java.lang.SecurityException: read on /usr/share/javazi/UTC
> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
> at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
> at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
> at org.postgresql.pljava.test.Tester.testTimestamp(Tester.java:527)
> at org.postgresql.pljava.test.Tester.testParameters(Tester.java:288)
> at org.postgresql.pljava.test.Tester.main(Tester.java:227)
>
> What are your plans on integrating javah and the C sources into maven?
> Is it possible to tell maven to first compile the java stuff and then
> generate C header files from two sub-projects before finally compiling
> the C project?
>
> bye,
>
> -christian-
>
>
> Am Fri, 11 Jan 2013 20:40:13 +0100
> schrieb Christian Hammers <ch at lathspell.de>:
>
>> Hello
>>
>> With the hellblazer git repository code I finally got four .jar files
>> but now I wonder how to compile the shared library from the C sources.
>> None of the Makefiles seem to work and the pom.xml contains no
>> reference to a C compiler:
>>
>> -=(~/workspace/pljava/lathspell-master/C)$ make
>> make[1]: Entering directory
>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>> make[1]: /srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile:
>> No such file or directory make[1]: *** No rule to make target
>> `/srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile'.
>> Stop. make[1]: Leaving directory
>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>> make: *** [pljava_all] Error 2
>>
>> -=(~/workspace/pljava/lathspell-master/C/pljava)$ make
>> find: `/pljava': No such file or directory
>> make: Nothing to be done for `checkjavahome'.
>>
>> (I'm using gcc-4.7 and Oracle/OpenJDK-1.7.
>>
>> bye,
>>
>> -christian-
>> _______________________________________________
>> Pljava-dev mailing list
>> Pljava-dev at pgfoundry.org
>> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20130113/c4336b02/attachment-0001.html;
^ permalink raw reply [nested|flat] 3+ messages in thread
* [Pljava-dev] pljava.so wont compile - now it does! :)
2013-01-12 22:47 [Pljava-dev] pljava.so wont compile - now it does! :)
2013-01-13 10:54 ` [Pljava-dev] pljava.so wont compile - now it does! :)
@ 2013-01-13 10:58 `
0 siblings, 0 replies; 3+ messages in thread
From: @ 2013-01-13 10:58 UTC (permalink / raw)
Then again, perhaps this one, using the maven-nar-plugin, is a better:
http://blog.bigpixel.ro/2012/07/building-cc-applications-with-maven/
- thomas
On 2013-01-13 11:54, Thomas Hallgren wrote:
> I found a fairly good article outlining a way to build a mix of Java
> and C++ code with Maven. Perhaps this is the way to go?
>
> http://www.humboldt.co.uk/2009/02/wrapping-a-native-library-with-maven.html
>
> I'm not really a maven wizard myself so help on this topic is greatly
> appreciated.
>
> - thomas
>
> On 2013-01-12 23:47, Christian Hammers wrote:
>> Hello
>>
>> Wow, I finally got it working. Took me only 2h :-)
>>
>> I got a strange error message with the test suite though. Already tried to
>> replace the "UTC" with "GMT" but somehow it does not show any effect:
>>
>> java -cp /usr/share/java/postgresql.jar:target/pljava-jdbc-0.0.1-SNAPSHOT.jar:target/pljava-examples-0.0.1-SNAPSHOT.jar:target/pljava-api-0.0.1-SNAPSHOT.jar:target/org.postgresql.pljava.test.jar org.postgresql.pljava.test.Tester -user postgres -password geheim -database pljava
>> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
>> *** testTimestamp()
>> Timestamp = 2013-01-12 23:44:07.336, Timestamptz = 2013-01-12 23:44:07.338
>> org.postgresql.util.PSQLException: ERROR: java.lang.SecurityException: read on /usr/share/javazi/UTC
>> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
>> at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
>> at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
>> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
>> at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
>> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
>> at org.postgresql.pljava.test.Tester.testTimestamp(Tester.java:527)
>> at org.postgresql.pljava.test.Tester.testParameters(Tester.java:288)
>> at org.postgresql.pljava.test.Tester.main(Tester.java:227)
>>
>> What are your plans on integrating javah and the C sources into maven?
>> Is it possible to tell maven to first compile the java stuff and then
>> generate C header files from two sub-projects before finally compiling
>> the C project?
>>
>> bye,
>>
>> -christian-
>>
>>
>> Am Fri, 11 Jan 2013 20:40:13 +0100
>> schrieb Christian Hammers<ch at lathspell.de>:
>>
>>> Hello
>>>
>>> With the hellblazer git repository code I finally got four .jar files
>>> but now I wonder how to compile the shared library from the C sources.
>>> None of the Makefiles seem to work and the pom.xml contains no
>>> reference to a C compiler:
>>>
>>> -=(~/workspace/pljava/lathspell-master/C)$ make
>>> make[1]: Entering directory
>>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>>> make[1]: /srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile:
>>> No such file or directory make[1]: *** No rule to make target
>>> `/srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile'.
>>> Stop. make[1]: Leaving directory
>>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>>> make: *** [pljava_all] Error 2
>>>
>>> -=(~/workspace/pljava/lathspell-master/C/pljava)$ make
>>> find: `/pljava': No such file or directory
>>> make: Nothing to be done for `checkjavahome'.
>>>
>>> (I'm using gcc-4.7 and Oracle/OpenJDK-1.7.
>>>
>>> bye,
>>>
>>> -christian-
>>> _______________________________________________
>>> Pljava-dev mailing list
>>> Pljava-dev at pgfoundry.org
>>> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
>> _______________________________________________
>> Pljava-dev mailing list
>> Pljava-dev at pgfoundry.org
>> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20130113/f12e5915/attachment.html;
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2013-01-13 10:58 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-01-12 22:47 [Pljava-dev] pljava.so wont compile - now it does! :)
2013-01-13 10:54 `
2013-01-13 10:58 `
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox