Re: Failing to Prepare Postgres.jar file
On Fri, 30 Jul 1999, ALPESH KOTHARI wrote: Sorry for the delay in replying, but my Inbox is a tad full... > I am using Postgresql-6.4.3-2. I want to use JDBC. so as a first point > i need postgres.jar file. > when i execute the commands as follows it gives the error as follows: > > #cd /usr/src/pgsql/src/interfaces/jdbc > #make all > javac postgresql/CallableStatement.java > postgresql/CallableStatement.java:37: Can't subclass interfaces: > interface java.sql.PreparedStatement > public class CallableStatement extends PreparedStatement implements > java.sql.CallableStatement >^ > Note: postgresql/CallableStatement.java uses or overrides a deprecated > API. Recompile with "-deprecation" for details. > 1 error, 1 warning > make: *** [postgresql/CallableStatement.class] Error 1 > > > If any one of you have came across this error please help me. This is in the PostgreSQL JDBC FAQ. Try: unset CLASSPATH make You should find it will work now. The problem is caused by javac finding both the java.sql.* classes as well as the driver's classes. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: X-server
On Wed, 25 Aug 1999, Hanno Saks wrote: > Hi! > > Is out there available (or is even possible to do) any applets which can act > in framed HTML page as Xserver client There is a neat utility called VNC which allows you to access X or even Win32 servers using either a custom viewer or a Web Browser (using a Java Applet). At work I use this extensively, but the Linux version provides an X server which listens to port 5800 for http requests, and once connected you get a relatively decent X environment. It used to be available from http://www.orl.co.uk/vnc (I think thats correct), but since then they were taken over by AT&T, so the url changed. Hope that helps, Peter -- Peter T Mount [EMAIL PROTECTED]Tel +44 (0) 7990 898443 Homepage http://www.retep.org.uk Fax UK +44 (0) 870 0568837 PostgreSQL JDBC http://www.retep.org.uk/postgres/ US +1 734 661 0110 Java PDF Generator http://www.retep.org.uk/pdf/ More details on the website -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: idltojava
On Sat, 28 Aug 1999, Matthias Sprünglin wrote: > Hi everybody > > Is there a port of the idltojava-compiler for Linux. Where do I find it? I haven't seen one yet (I have to resort to using the Win32 version) :-( Peter -- Peter T Mount [EMAIL PROTECTED]Tel +44 (0) 7990 898443 Homepage http://www.retep.org.uk Fax UK +44 (0) 870 0568837 PostgreSQL JDBC http://www.retep.org.uk/postgres/ US +1 734 661 0110 Java PDF Generator http://www.retep.org.uk/pdf/ More details on the website -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: where get bunzip2?
On Tue, 31 Aug 1999, Roland Silver wrote: > To use I need to download and bunzip it with bunzip2. > > I don't think there's a bunzip2 with Red Hat Linux 6.0 -- which I > use. Where can I get it, for Linux/i386? I can't remember the rpm name offhand, as I use RH6.0 at work, but it is in there. I use SuSE here, and it has bunzip2 as an rpm. Peter -- Peter T Mount [EMAIL PROTECTED]Tel +44 (0) 7990 898443 Homepage http://www.retep.org.uk Fax UK +44 (0) 870 0568837 PostgreSQL JDBC http://www.retep.org.uk/postgres/ US +1 734 661 0110 Java PDF Generator http://www.retep.org.uk/pdf/ More details on the website -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: (no subject)
On Mon, 06 Sep 1999, [EMAIL PROTECTED] wrote: > Hi, > I installed Postgresql 6.5.1 on linux (RedHat 5.2 on Intel 686) and I can > download jdbc driver and odbc driver for 6.5.1. But I cannot find jdbc-odbc > bridge driver for postgresql 6.5.1. In order to build Jdk1.2.2 on linux, > jdbc-odbc bridge driver should be set up (set up ALT_ODBCDIR). How can I use > jdbc driver directly instead of jdbc-odbc bridge driver? jdbc-odbc is nothing to do with postgres. I'm the maintainer of the postgresql native jdbc driver. It's in the postgresql source, or precompiled on my web site. Peter -- Peter T Mount [EMAIL PROTECTED]Tel +44 (0) 7990 898443 Homepage http://www.retep.org.uk Fax UK +44 (0) 870 0568837 PostgreSQL JDBC http://www.retep.org.uk/postgres/ US +1 734 661 0110 Java PDF Generator http://www.retep.org.uk/pdf/ More details on the website -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: map display
On Thu, 9 Sep 1999, R MUTHUSWAMY wrote: > > hi > i am doing a project using maps in java. so is there any support > for maps displays in java. And where i can get some materials about maps > usage in java. I have some unpublished classes that handle layered vector based maps. It's Astronomical based, and hopefully in the next week or so (work load depending), it will be released. The only thing holding it back is a lack of documentation. It, like most of my code, will be covered by the LGPL. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: download postgresql 6.5.1
On Sun, 12 Sep 1999 [EMAIL PROTECTED] wrote: > Hi Peter, > Thanks for your reply. I have another question. I have postgresql, > postgresql-clients, postgresql-data, postgresql-devel of release 6.3.2-10 > with my redhat linux 5.2. I uninstalled them and installed postgresql, > postgresql-devel, postgresql-server, postgresql-jdbc, postgresql-odbc, > postgresql-perl of release 6.5.1-2. I could not find postgresql-clients and > postgresql-data of release 6.5.1-2. Then when I run su -l postgres -c > '/usr/bin/postmaster -S -D/var/lib/pgsql' I got the following error: > /usr/bin/postmaster does not find the database system. > Expected to find it in the PGDATA directory "/var/lib/pgsql", but unable to > open file with pathname "/var/lib/pgsql/base/templete1/pg_class". > I think I didn't install template database. Where can I download > postgresql-data? Do I need postgresql-clients? template1 is a special database that is used when creating new databases (ie, you shouldn't create any tables in there as when you create a new database, the table is copied as well). To create it, you run initdb. This is normally run only once, and creates all the system tables and the template1 database. For example: initdb --pgdata=/var/lib/pgsql --pglib=/usr/lib/pgsql I think /usr/lib/pgsql is correct. Oh, you must run this as the postgres user. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Mapping Classes
As I've had several requests from the Java-Linux list, mainly from a reply I made to a query on the list last week, I've placed an early release of my mapping class library onto the web. Now, this is an early version. It works, but I've yet to document it. It's available at: http://www.retep.org.uk/mapping/ I hope you find it useful. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDBC problem!
On Wed, 29 Sep 1999, [EMAIL PROTECTED] wrote: > Try converting the int into a string. > E.g. > > int pid1; > > pid1=din.readInt(); > > String pid1; > pid1 = Integer.toString(din.readInt()); > > > > I didn't test it, but this seems like the problem. > > Troy This shouldn't matter as his code is using setInt() on an int4 field. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDBC newbie question
On Mon, 25 Oct 1999, John N. Alegre wrote: > Has anyone else had this experience. I have been reluctant to move to > PostgrSQL for reasons of complexity and speed. Although I don't touch applets anymore, the problems with placing either all of the classes into a single jar file, or extracting the classes so they are downloaded individually are old, but tips I still give out when people ask me about problems with browsers. > Is the JDBC support that much more advanced in PostgrSQL? I should hope so, as it takes up a lot of my time :-) For the next release I'm hoping to have most of the JDBC2 spec complete, but mainly the BLOB and Array support. > All comments welcome. > > john > > On 24-Oct-99 Eric vanberkel wrote: > > I've been thru this. > > > > You go to check you have the 1.2.2 driver and not the > > 1.2.1, which did not work on my prev2 JDK + latest mysql > > > > Also for apps: > > java -cp .:$CLASSPATH proggie > > with a correct classpath set > > > > in applets $CLASSPATH won't work. > > You'll want to put into your html: > > > > > > .. > > .. > > > > > > put the mm jarfile in this tag and in the applet home dir. > > If there is no jar, copy the mm.mysql level into the applet > > home dir. I know it's a shame, butt... > > > > If you haven't got a jar you use the jar tools to pack the > > mm.mysql classes into a jar file. > > > > This knowledge cost me a lotta sweat. I hope it pays off > > for you brother... > > > > Oh, > > I managed to step over the line to PostgrSQL. Support for > > JDBC is much better. This might be a hint. They also > > upgraded to JDBC2 faster then mysql usually does > > > > Good luck, > > gr. Eric > > > > --- Jalaluddin Riaz <[EMAIL PROTECTED]> wrote: > >> hi, > >> I am a newbie to JDBC programming and am having some > >> problems. I am > >> using mysql rdbms and mm.mysql.jdbc-1.2 driver and have > >> jdk1.2preV2 > >> installed. the problem is everytime i try to run a prog. > >> i get class not > >> found exception. the prog is not able to find the driver > >> class files. i have > >> tried different CLASSPATH settings, still does no works.. > >> any ideas. > >> > >> thanks. > >> > >> __ > >> Get Your Private, Free Email at http://www.hotmail.com > >> > >> > >> > > -- > >> To UNSUBSCRIBE, email to > >> [EMAIL PROTECTED] > >> with a subject of "unsubscribe". Trouble? Contact > >> [EMAIL PROTECTED] > >> > >> > > > > __ > > Do You Yahoo!? > > Bid and sell for free at http://auctions.yahoo.com > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 25-Oct-99 > Time: 13:02:49 > > This message was sent by XFMail > -- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDBC newbie question
On Sat, 6 Nov 1999, John N. Alegre wrote: > Peter, > > I have no problem on my end. I have 4 years expeience with Server Side > Java. I want the most advanced JDBC driver/db combination. The question I am > rasing is which JDBC drier is more robust and closer to the JDBC 2.0 speck. > Once I have a solid driver, there is no problem writing code to use it here! I'm not certain about mySQL, but one item that is in PostgreSQL is transactions, which I believe mySQL doesn't have. Also the PostgreSQL JDBC driver is thread safe. That is more than one thread can use the same connection at the same time. As for the 2.0 spec, only parts of it is implemented so far. As I said earlier, BLOB and Array support is first on the list, then the other methods. Now that 6.5.3 is out, I'm about to start on this ready for 7.0 (which is the next release). > Do you know of any independent comparisons of the JDBC drivers for PostgresSQL > and mySQL? I just got back from the Colorado Software Summit and feedback > there was mixed. Not that I'm aware of, but I would be interested in reading them if there are any. What type of feedback did you get? Peter > john > > On 26-Oct-99 Peter Mount wrote: > > On Mon, 25 Oct 1999, John N. Alegre wrote: > > > >> Has anyone else had this experience. I have been reluctant to move to > >> PostgrSQL for reasons of complexity and speed. > > > > Although I don't touch applets anymore, the problems with placing either > > all of the classes into a single jar file, or extracting the classes so > > they are downloaded individually are old, but tips I still give out when > > people ask me about problems with browsers. > > > >> Is the JDBC support that much more advanced in PostgrSQL? > > > > I should hope so, as it takes up a lot of my time :-) > > > > For the next release I'm hoping to have most of the JDBC2 spec complete, > > but mainly the BLOB and Array support. > > > >> All comments welcome. > >> > >> john > >> > >> On 24-Oct-99 Eric vanberkel wrote: > >> > I've been thru this. > >> > > >> > You go to check you have the 1.2.2 driver and not the > >> > 1.2.1, which did not work on my prev2 JDK + latest mysql > >> > > >> > Also for apps: > >> > java -cp .:$CLASSPATH proggie > >> > with a correct classpath set > >> > > >> > in applets $CLASSPATH won't work. > >> > You'll want to put into your html: > >> > > >> > > >> > .. > >> > .. > >> > > >> > > >> > put the mm jarfile in this tag and in the applet home dir. > >> > If there is no jar, copy the mm.mysql level into the applet > >> > home dir. I know it's a shame, butt... > >> > > >> > If you haven't got a jar you use the jar tools to pack the > >> > mm.mysql classes into a jar file. > >> > > >> > This knowledge cost me a lotta sweat. I hope it pays off > >> > for you brother... > >> > > >> > Oh, > >> > I managed to step over the line to PostgrSQL. Support for > >> > JDBC is much better. This might be a hint. They also > >> > upgraded to JDBC2 faster then mysql usually does > >> > > >> > Good luck, > >> > gr. Eric > >> > > >> > --- Jalaluddin Riaz <[EMAIL PROTECTED]> wrote: > >> >> hi, > >> >> I am a newbie to JDBC programming and am having some > >> >> problems. I am > >> >> using mysql rdbms and mm.mysql.jdbc-1.2 driver and have > >> >> jdk1.2preV2 > >> >> installed. the problem is everytime i try to run a prog. > >> >> i get class not > >> >> found exception. the prog is not able to find the driver > >> >> class files. i have > >> >> tried different CLASSPATH settings, still does no works.. > >> >> any ideas. > >> >> > >> >> thanks. > >> >> > >> >> __ > >> >> Get Your Private, Free Email at http://www.hotmail.com > >> >> > >> >> > >> >> > >> > -- > >> >> To UNSUBSCRIBE, email to > >> >> [EMAIL PROTECTED] > >> >> with a subject of "unsubscribe". Trouble? Conta
Re: Printing with 1.2
On Thu, 11 Nov 1999, Greg Tomalesky wrote: > Hi Gang: > > Does anyone know where I can get some examples of printing under JDK > 1.2? The trick is to use the java.awt.PrintJob class. Take a look at my retepPDF library. Although it's not directly printing, it extends PrintJob, so the example code may help you. http://www.retep.org.uk/pdf Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Jar file with JDBC
On Mon, 27 Dec 1999, ALPESH KOTHARI wrote: > Hello all, > > I have written an application using Java2. It works > fine with JDBC interface. I prepared a jar file of all > the class file as well as 'postgresql.jar'.(I am using > postgresql-6.5 as db). > > At this time it gives null pointer exception whenever > it encounters a first create table statement. > The application works fine without making jar file. > > What can be possible cause of problem? Can you give me some more details please, as you are the second person in a week to tell me about a null pointer problem. Also, what exact version are you using, 6.5, 6.5.1, 6.5.2 or 6.5.3? Thanks, Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Jar file with JDBC
On Mon, 27 Dec 1999, ALPESH KOTHARI wrote:
ok, can you run it again for me, but add the following:
> String crt="create table xyz(sadd int4,tadd int4,pid
> int4,filen text,diff int2)";
> st.executeUpdate(crt);
>
> //While executing this statement it gives nullpointer
> exception
> }
> catch(IOException e)
> {
> System.out.println("Error "+e);
System.out.printStackTrace();
> }
This should give me the class/line that's throwing the exception.
> The program works fine if I dont prepare the jar file.
How are you preparing the jar file? Are you including all of the
postgresql classes in it, in the same directory structure?
Peter
--
Peter T Mount [EMAIL PROTECTED]
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Jar file with JDBC
On Tue, 28 Dec 1999, Edson Carlos Ericksson Richter wrote: > Try putting the postgresql.jar file in the /jre/lib/ext/ directory... > > Is possible to put the postgresql.jar file into another jar file (my > app.jar) and use them in my app? Not that I know of, other than extracting the files, but this may then break the Manifest. Personally I keep everything separate, and use the Manifest to add the jar files required by an app to its classpath. Peter [snip] -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Jar file with JDBC
On Wed, 29 Dec 1999, ALPESH KOTHARI wrote: > > Hi, > > When I added 'System.out.printStackTrace()' it told > while compilation > Method printStackTrace() not found in class > java.io.PrintStream. > > System.out.printStackTrace(); > > I have imported java.io.*; > What else I need to do? > I have included postgresql.jar in my jar file. > My classes are all in the same directory. Woops, printStackTrace() is a method of Exception not PrintStream. Thanks for the others who also spotted my mistake :-) Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: swing on suse linux on ldk1.2
On Thu, 20 Jan 2000 [EMAIL PROTECTED] wrote: > does any one know why swing is not working on a suse linux box with > jdk1.2? > generally what do i need to do to run swing with jdk1.2 What version of SuSE are you using? When I tried the most recent version from blackdown on my 6.3 box last week, Swing ran not just first time, but also faster than ever before. I'll soon know if it still works, as I've got a lot of JDBC & some Swing development to do from this weekend. Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage: http://www.retep.org.uk PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres Java PDF Generator: http://www.retep.org.uk/pdf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
