Re: Memory prolems
> Steve writes: Steve> Hi. I'm currently developing a Linux project with Steve> JDK1.1.7_v3 and JMF1.1 all-platforms release. Recently Steve> (well, today actually) I've had problems when I run the Steve> applet (which is JAR'd up) as when appletviewer tries to Steve> run it, it gets an OutOfMemory exception. Steve> I am aware of ways of increaseing the memory in java, but Steve> not in appletviewer. You can use the '-J' option, e.g. $ appletviewer -J-ms64m -J-mx128m ... Juergen -- Juergen Kreileder, Blackdown Java-Linux Porting Team http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Out of Office AutoReply: appletviewer missing fonts
All you that replied on my postings: I received it on my private address I set as a REPLY-TO. Should be fixed ;-) --- !Ken Horn <[EMAIL PROTECTED]> wrote: > > __ 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]
Jozilla?
Folks, I am looking for a nice coffee and cream project and came across this Jozilla browser, said they needed help, were part of a grand project called JOS. I downloaded the user version but since it runs on 1.1 I decided to upgrade the lot to 1.2 myself. But I've got a few little questions (why the docs do not match the software etc) but haven't been able to contact anyone. Does anybody know about this proj being dead or slumbering? I feel it quite interesting to lift the browser to 1.2 even if nobody's waiting on it; it's nice software though ;-) For tech's sake anyway. Anyone? __ 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]
RE: package problem
The Java VM is expecting to find the Foo class in a subdirectory call foobar. To solve this problem go to the directory ../foobar and try "java foobar.Foo" . This is essentially telling the JVM that you wish to run the class file "Foo" in package "foobar". Happy hacking, peter -Original Message- From: Roland Silver [SMTP:[EMAIL PROTECTED]] Sent: Saturday, September 11, 1999 6:57 PM To: [EMAIL PROTECTED] Subject:package problem I have a problem with packages that has me stumped. I've boiled it down to two simple classes, defined in Foo.java and Bar.java; both are in the directory /home/rollo/Java/foobar on my i386 Linux machine. //Foo.java package foobar; import java.util.*; public class Foo { public Foo() { Bar bar = new Bar(); } public static void main(String[] args) { System.out.println("Foo here"); } } //Bar.java package foobar; public class Bar { public Bar() { Foo foo = new Foo(); } } Current directory is /home/rollo/Java/foobar, and CLASSPATH specifies the following three paths: /usr/local/jdk117_v3/lib/classes.zip /home/rollo/TIJ/exercises /home/rollo/Java The command javac Foo.java compiles OK, as does javac Bar.java putting Foo.class and Bar.class in the foobar directory, but java Foo complains: Can't find class Foo I'd really appreciate it if someone can help me with this problem! * What am I doing wrong? * How do I fix it? I am running Blackdown JDK version 1.1.7-V3 on an i386 machine under Red Hat Linux 6.0. -- Roland Silver <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
SV: Quetion on IDEs
>I'm quite happy with IBM"s Visual Age preview release for Linux, except for a 500 >class limitation and no support for JDK2 yet. It did take some getting used to >though. You can register for a free download at http://www.ibm.com/developer/java/ > >Also there's an IDE comparison at >http://www.software.ibm.com/developer/library/lw-emacs/index.html The 500 class limit thing was supposed to have been removed over a month ago. IMHO VAJ really is a great IDE but as one can understand it is quite slow on Linux. Currently I am developing on NT due to the slowness on Linux... but when the speed problems have been resolved I will be quite happy to change. /isaac elias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: SV: Quetion on IDEs
Where did you see that the 500 class limit was removed? I've seen no mention of this. Its certainly present in my copy. It's not at all slow. Its the fastest one I've tried (I've tried Netbeans and Visual Cafe mainly). At 4:49 PM +0200 09/12/1999, Isaac Elias wrote: > >I'm quite happy with IBM"s Visual Age preview release for Linux, except for a 500 >class limitation and no support for JDK2 yet. It did take some getting used to >though. You can register for a free download at http://www.ibm.com/developer/java/ >> >>Also there's an IDE comparison at >http://www.software.ibm.com/developer/library/lw-emacs/index.html > > > >The 500 class limit thing was supposed to have been removed over a month ago. > >IMHO VAJ really is a great IDE but as one can understand it is quite slow on Linux. >Currently I am developing on NT due to the slowness on Linux... but when the speed >problems have been resolved I will be quite happy to change. > >/isaac elias --- Dr. Brad Cox [EMAIL PROTECTED] (update your address book) Phone: 703 361 4751 Fax: 703 995 0422 Cellular: 703 919-9623 http://virtualschool.edu A Project with Paradoxical Goals PGP Signature: E194 C6E5 92D8 B8FB 20E8 8667 929A 95A0 FCB6 7C62 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
SV: SV: Quetion on IDEs
I am sorry maybe I have made a misstake might have mixed up VAJ1.2 preview with the Linux preview I am very happy to here that it isn't slow. When I tried it though (about two months ago) it felt significantly slower than the Win version. /isaac -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Thread scheduling problem in Linux jdk-1.1.7B
Thread scheduling problem in Linux jdk-1.1.7B = I am currently developing a GUI for an upcoming game server "VC" (telnet external.nj.nec.com 4000). After finishing the graphics part I thought the rest - that is connecting the GUI to the server via socket - would be trivial. Well - it's not. It seems that the thread scheduler doesn't continue threads which wait for I/O although all other threads are waiting. The appended code illustrates the problem. "TestSocket" connects an applet to the text-based server (VC), awaits keyboard input which it sends to VC, and writes VC messages to stout. Depending on the global flags RUN_TICKER and COMMUNICATE TestSocket's behaviour can be changed to illustrate the problems. On my machine (kernel 2.2.5, RedHat 6.0, jdk-1.1.7B-glibc, green_threads) the program - started by "java TestSocket" - behaves like follows: RUN_TICKER = false, COMMUNICATE = false : no connection to VC, keyboard input echoed to stdout. OK RUN_TICKER = false, COMMUNICATE = true : connection to VC established - OK, but keyboard input is no longer being echoed. br.readLine() seems to hang. Messages from VC are correctly written to stdout, though. unusable RUN_TICKER = true, COMMUNICATE = true : connection to VC established - OK. "ticker" is a max-priority thread which stays in a loop sleeping and printing dots. Now, keyboard inputs are echoed but not sent to the server. This indicates that a socket related thread is hanging. The funny thing, however, is that when a message is sent to the applet from the server it is correctly displayed as before and seems to unlock the write routine. After reading a message from VC the keyboard command gets delivered to VC. better, but still unusable In this application all threads are sleeping most of the time. Unless I am a victim of some nasty selfmade deadlock I think the reported behaviour is due to a scheduler bug. NB.: The original applet is working under Netscape-4.6 Java. Comments - and especially workarounds - are very welcome. -- Michael Buro [EMAIL PROTECTED] NEC Research Institute 4 Independence Way, Tel: +1 (609) 951-2703 Princeton NJ 08540 USA Fax: +1 (609) 951-2488 http://www.neci.nj.nec.com/homepages/mic Appendix: = Here is how to log on VC to repeat the experiments: > telnet external.nj.nec.com 4000 > ... asking for login & password (arbitrary) > tell mic hi sends "hi" to the applet > who reports connected users. Typed into the stdin window, the list of connected users should be sent to the applet and written on stdout. The code: // TestSocket.java import java.io.*; import java.net.*; import java.applet.*; import java.awt.*; import java.awt.event.*; import SocketComm; import Ticker; // not yet a real applet. start via "main" public class TestSocket extends Applet { public static final boolean RUN_TICKER = false; public static final boolean COMMUNICATE = true; SocketComm sc = null; VCReader vcr = null; Thread ticker = null; class VCReader extends Thread { public VCReader() { // connect to VC String s = ""; try { s = sc.connect("external.nj.nec.com", 4000, "mic", ""); } catch(UnknownHostException f) { throw new Error("" + f); } catch(IOException f) { throw new Error("" + f); } // print all received messages System.out.println(s); } public void run() { // handle messages coming from VC while (true) { String s = sc.read_line(); System.out.println(s); } } } TestSocket() { sc = new SocketComm(); ticker = new Thread(new Ticker(1000)); ticker.setPriority(Thread.MAX_PRIORITY); if (RUN_TICKER) ticker.start(); if (COMMUNICATE) { vcr = new VCReader(); vcr.start(); } } public static void main(String[] args) throws IOException { TestSocket ts = new TestSocket(); BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); System.out.println("so far so good"); while (true) { String line = br.readLine(); System.out.println("input was: " + line); if (TestSocket.COMMUNICATE) ts.sc.write_line(line); } } } /// // SocketCom.java import java.io.*; import java.net.*; import java.util.*; class SocketComm { private String host; private intport; private Socket so; private BufferedReader br; private BufferedWriter bw; public SocketComm() { host = null; port = 0; so = null; br = null; bw = null; } public void write_line(String line) { try { bw.write(line); bw.newLine(); bw.flush(); } catch(IOException e) { System.out.printl
download postgresql 6.5.1
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? Thanks in advance Leon Yu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Thread problem on Linux
Hello, taking off from Michael's problem, we are also facing another problem, we are using JDK1.2 on Linux 6.0 with JSDK2.0 and GNUJSP0.9.10 and ours is a web application where the development is on JSP technology. Now we have to perform database queries on the server side depending on the requests from the client side. We found out the following : 1. When we do a httpd start, about 11 process entries corresponding to httpd are shown on doing a ps ax | grep http 2. For every database query that is fired, we get, as a sample 15696 ? S0:03 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15720 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15721 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15722 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15723 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15724 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15725 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 15738 ? S0:00 /home/jserv/jdk1.2/bin/i386/native_threads/java org.apache.j 3. Upto this point everything is fine. In my code I have a finally phrase where I have a close() method written specifically for destroying any databse connection associated with any particular class. It does simply rs.close() and con.close() where rs is of the type ResultSet and con is a Connection class object. 4. But I realise that even on destroy(), the entries in point 2. still persist although they should not have been there. So this creates problems when multiple users are testing the application, then we get arbitrary databse connection errors. This, I think is the problem of native threads being spawned, but not SIGTERMed when the finally method is called. 5. Is the diagnosis given in point 4 correct If so then what can be the solution for native thread problem If the diagnosis is wrong, then what is the problem ??? Please let me know Thanks and regards Aditya -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]