473,609 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

./configure --with-java fails

Hi!

I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache
Ant version 1.5 and j2sdk1.4.1_05 installed:

Verifiying ant:
# which javac
/usr/java/j2sdk1.4.1_05/bin/javac
# ant -version
Apache Ant version 1.5 compiled on October 15 2002

Verifying java-compiler:
# which javac
/usr/java/j2sdk1.4.1_05/bin/javac

Verifying environment variables:
# export|grep java
declare -x JAVA_BINDIR="/usr/java/j2sdk1.4.1_05/bin"
declare -x JAVA_HOME="/usr/java/j2sdk1.4.1_05"
declare -x JAVA_ROOT="/usr/java/j2sdk1.4.1_05"
declare -x JRE_HOME="/usr/java/j2sdk1.4.1_05/jre"
declare -x
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:
/usr/X11R6/bin:/bin:/usr/games:/opt/kde3/bin:/usr/java/j2sdk1.4.1_05/bin
:/usr/java/j2sdk1.4.1_05/jre/bin"

I ran the ./configure-script as follows:

../configure --prefix=/opt/pgsql --datadir=/var/lib/pgsql/data/base
--enable-locale --with-perl --with-java --enable-odbc --enable-syslog

The last lines of configure-output are

checking whether to build Java/JDBC tools... yes
checking for jakarta-ant... no
checking for ant... /usr/bin/ant
checking whether /usr/bin/ant works... no
configure: error: ant does not work

The configure.log contains the following relevant lines:

configure:3139: checking whether to build Java/JDBC tools
configure:3150: result: yes
configure:3157: checking for jakarta-ant
configure:3190: result: no
configure:3157: checking for ant
configure:3175: found /usr/bin/ant
configure:3187: result: /usr/bin/ant
configure:3198: checking whether /usr/bin/ant works
configure:3222: /usr/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml

conftest:
[javac] Compiling 1 source file
[javac] Modern compiler not found - looking for classic compiler

BUILD FAILED
file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml:3: Cannot use
classic compiler, as it is not available. A common solution is to set
the environment variable JAVA_HOME to your jdk directory.

Total time: 2 seconds
configure:3225: $? = 1
configure: failed java program was:
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
configure: failed build file was:
<project name="conftest" default="confte st">
<target name="conftest" >
<javac srcdir="." includes="conft est.java">
</javac>
</target>
</project>
configure:3241: result: no
configure:3245: error: ant does not work

Help would be very much appreciated; on second thoughts: Is it at all
necessary to build the JDBC-driver myself or can I safely use the
precompiled .jar-file from http://jdbc.postgresql.org/download.html on
my clients? And if I compile without the --with-java, will the resulting
PostgreSQL-server-installation have any shortcomings in integrating with
JDBC-applications? What exactly are the "Java/JDBC tools" aside from the
JDBC-driver jar-file?

Kind regards

Markus


Nov 23 '05 #1
1 3299


On Tue, 6 Jul 2004, Markus Wollny wrote:
I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache
Ant version 1.5 and j2sdk1.4.1_05 installed:

[javac] Modern compiler not found - looking for classic compiler

BUILD FAILED
file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml:3: Cannot use
classic compiler, as it is not available. A common solution is to set
the environment variable JAVA_HOME to your jdk directory.
Your setup looks good, perhaps changing the configure script to run ant
with -debug would help?
Help would be very much appreciated; on second thoughts: Is it at all
necessary to build the JDBC-driver myself or can I safely use the
precompiled .jar-file from http://jdbc.postgresql.org/download.html on
my clients? And if I compile without the --with-java, will the resulting
PostgreSQL-server-installation have any shortcomings in integrating with
JDBC-applications? What exactly are the "Java/JDBC tools" aside from the
JDBC-driver jar-file?


Configuring with --with-java does nothing other than build the JDBC
driver. There used to be some additional java tools, but these were
removed before the 7.4 release. The provided jar files are no different
than what you would build yourself so it's fine to use them.

Kris Jurka
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2835
by: Markus Wollny | last post by:
Hello! When I try to run ./configure --with-java, it complains that ant doesn't work. However ant is installed, as is the latest Java SDK 1.4.2 from sun, PATH and JAVA_HOME are set correctly; helles:/ # /usr/java/apache-ant-1.5.4/bin/ant -version Apache Ant version 1.5.4 compiled on August 12 2003 It complains about some unsupported class-version; does it require an
5
7280
by: Keith Bannister | last post by:
I'm new to .net so here goes. I'm tying to deserialize a class that is associated with an XML schema. I created the C# class with xsd.exe as below: xsd.exe /c /n:somenamespace properties.xsd this creates properties.cs
3
2290
by: Fabio Garufi | last post by:
Hi, all, I built the fftw-3.0.1-fma on a LynxOS 4.0 running on a board equipped with a PowerPC G4 7457. To compile it I had to slightly modify the configure script to use the -fvec instead of -faltivec and use the our-malloc16 function. I never could run the checks in tests directory, since they always failed with signal 11. Here follow the core dump and an excerpt from the config.log: core:
0
1308
by: Samuel M. Smith | last post by:
I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge when I run ./configure it fails with ../configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for --without-gcc... no checking for --with-cxx=<compiler>... no checking for c++... c++
9
1961
by: Paul Watson | last post by:
Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It appears that the CODEC_STATELESS macro is concatenating 'hz' with a number and text. building '_codecs_cn' extension cc -DNDEBUG -O -I. -I/home/pwatson/src/python/Python-2.4.2/./Include -I/home/pwatson/src/python/Python-2.4.2/Include -I/home/pwatson/src/python/Python-2.4.2 -c /home/pwatson/src/python/Python-2.4.2/Modules/cjkcodecs/_codecs_cn.c -o
2
1805
by: Lambuz | last post by:
Hello everyone, I have an applciation that uses remoting. When the application is run via a local copy it works. When it is run via an HTTP address RemotingConfiguration.Configure fails. Apparently this method can not find the configuration file even though other parts of my application can use ConfigurationSettings.AppSettings with no problem.
1
3583
by: Jim McCullars | last post by:
Greetings: Getting configure errors trying to build PHP 5.2.5 under Solaris 9. The configure command I use is this: ../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local and I get this error:
3
1395
by: mc | last post by:
Hi! I'm trying to compile on my Macbook with OS X 10.5. I have all updates and Xcode 3.0 installed. I checked python out with: svn checkout http://svn.python.org/projects/python/branches/py3k After that I did "./configure" in the created "py3k" dir. Everything went fine. But make fails with the following error message: ranlib libpython3.0.a gcc -u _PyMac_Error -o python.exe \ Modules/python.o \
3
1615
by: Mario Ruggier | last post by:
Hi, i had the following problem when installing py3.0rc1 on a Mac OS X 10.5.5. On this system, the default locale values are: $ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C"
0
8571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8220
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8404
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5509
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2530
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.