Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: JDBC connection issue



Here is the build.xml file that I use to build, and test the program.

<project name="Xlang" basedir="." default="run">
  <property name="target" value="bin/${ant.project.name}.jar"/>
  <target name="build">
	<mkdir dir="build"/>
	<mkdir dir="bin"/>

	<javac srcdir="src" destdir="build" debug="true"/>
	<jar destfile="${target}" index="true" basedir="build" includes="**/*.class">
	  <manifest>
		<attribute name="Main-class" value="${ant.project.name}"/>
	  </manifest>
	</jar>
  </target>

  <target name="run" depends="build">
	<java jar="${target}" fork="true"/>
  </target>
</project>

Thanks!

-----Original Message-----
From: Jan de Visser [mailto:jdevisser(at)digitalfairway(dot)com]
Sent: Tuesday, July 13, 2004 1:17 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] JDBC connection issue


On July 13, 2004 02:05 pm, Young Nam wrote:
> I've included both jar files in the CLASSPATH.  Same error.

But you still haven't shown us how you start your program...

JdV!!

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser(at)digitalfairway(dot)com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group