Re: reminder - this list is for Java & Linux
Hi > We've had a lot of discussions on the list recently that were generic > questions about Java, questions that had nothing to do with Linux. I'm > sending this note to remind everyone that this mailing list is about > Java on Linux. If you have generic Java questions, they do not belong > here. I encourage list members not to reply to questions unless they > have some interest to Linux users. > I apologize if this sounds unreasonable, but it's important that we > keep this mailing list focussed on Linux. There are plenty of other > places to ask generic Java questions. The same problem exists on the Advanced-Java list... kinda but it's more a, "Is that question advanced?" type issue. Even if it's not, somebody else answers the question and so people keep asking. They've considered moving the group to a "more" advanced-java mailing list, but then it's just getting silly. Eventually you'll get the Super-elite-extremely-really-really advanced java mailing list... I suppose what I'm really trying to say is: good sentiment, but don't expect miracles. Nicholas Anyways, I've got this Java program and it doesn't compile ;) === Nicholas WrightImperial Software Technology Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
FYI: IBM JDK1.1.8
Hi I recently had a customer of ours call up complaining of a problem with our software Visaj (http://www.visaj.com/). Anyway, it was the "ScrollBar flickers madly when scrolling sometimes" problem. He was using IBM JDK1.1.8. I thought it was kind of familiar and remembered this being a problem with one of the earlier Sun JDKs. Luckily, yesterday I went to a Java show in London, and IBM were there. I asked, "What JDK is IBM JDK1.1.8 based on?" The guy gave me a embarrassed smile and claimed that it is possible that 1.1.8 is actually based on Sun 1.1.6 source code, with their own patches and Sun patches applied, and that there may well be bugs that slipped through the net. This is just for your information and is in no way a dig at IBM - but something I did find interesting. Pre-P.S. IBM JDK 1.2 (based purely on the latest Sun sources) will be available early December apparently. Er... or was it January? Nicholas === Nicholas WrightImperial Software Technology Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun and Inprise Java 2 announcement
Hi > Without native threads support, this release is IMO useless for running > any kind of serious Java applications on Linux. Realistically, I'm sure it's just a matter of time. > While I will admit that I myself have been sometimes frustrated by the > speed of the Blackdown porting team, they have been doing a good job > quality-wise. I still don't understand why Sun would start their own > Linux JDK port and not use the Blackdown team's work as a base. I'm sure Inprise offered to do the JDK for Sun. For a "small" fee, Inprise would of agreed to continually upgrade and support the JDK. Because Inprise were being paid, Sun could expect and demand a quality product. Now, if you were Inprise, you could either say to Sun, "Give us the Blackdown sources and we'll finish it off for you." or "Give us the Community Source and we'll port it to Java." Which do you think Inprise would be able to charge more for? Also, if you were a big commerical company with say 15 good quality (not that the existing team aren't good) well paid programmers working 24/7 on this, and the company strategy was to move JBuilder to Unix environments, I think you'd be able to knock out a Linux port quickly-ish as well. Then again, Inprise don't really need the money - they were given $xx million dollars by Microsoft... perhaps Inprise will get something else from Sun in return. Nicholas P.S. Disclaimer: These are my opinions and not the opinions of my company. === Nicholas WrightImperial Software Technology Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: another possibility wrt the press-release.
Fair point. But if I were to be cynical, perish the thought, maybe Chris would prefer users not to go with JBuilder as it may hurt Netbean's popularity. As NetBeans was a asset acquisition, does Sun still give NetBeans money to keep it up to date? Nicholas > Resent-Date: Fri, 10 Dec 1999 08:14:07 -0700 (MST) > From: Michael Thome <[EMAIL PROTECTED]> > Mime-Version: 1.0 > Content-Transfer-Encoding: 7bit > Date: Fri, 10 Dec 1999 10:13:55 -0500 (EST) > To: Chris LeDantec <[EMAIL PROTECTED]> > Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Re: another possibility wrt the press-release. > Resent-Message-Id: <[EMAIL PROTECTED]> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/1974 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > > > "Chris" == Chris LeDantec <[EMAIL PROTECTED]> writes: > > ... > > inprise makes tools. they also partner with sun who just picked up two tools > > companies and has bcm a competitor. this is an interesting scenario since > > the owner of java technology is now a direct competitor with companies that > > are close partners. it would make sense, with a simple omission of fact in > > an initial press-release, to create an air of suspicion around sun -- being > > the bigger, more visible company they would of course take most of the heat > > (not withstanding previously rocky relationships with developers and the > > luke-warm reception of scsl). inprise then, is in perfect position to speak > > out to a grass-roots user base and say 'we worked on the port, but the way > > sun handled the release was a travesty of community development' then after > > some time passes: 'use our tool instead and show big company what's what.' > > "Never attribute to malice that which is adequately explained by > stupidity." (Hanlon's Razor?) > > PR folks working for large organizations typically don't have two > clues to rub together - not only about techical details and > development politics, but also about what is really important. I > wouldn't be surprised if Sun's and Inprise's PR people genuinely > thought that the Blackdown group consisted entirely of Sun employees > and paid ghostwriters. > > -mik > > -- > Michael Thome ([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]
Re: Retrieving data from mysql to an applet
Hi
It's *probably* due to Netscape thinking that "localhost" is the host the
browser is running on.
Try using "getCodeBase().getHost()" instead.
Nicholas
> I have an applet which is suppose to display data from a MySQL database
> to the web browser. This applet works fine with appletviewer but when I
> run it in a browser it gives an error;
>
> "Java.Sql.SQLException: cannot connect to mysql server on
> localhost:3306. Is there a mysql server running.."
>
> I use the following class and connection string:
> String url = "jdbc:mysql://localhost/dbname";
> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
>
> I load the MySQL server by C:\mysql\bin\mysqld.
>
> Any help would be appreciated.
>
> Thank you
>
> Abjin
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
===
Nicholas WrightImperial Software Technology Software Engineer
---
Email : [EMAIL PROTECTED] or [EMAIL PROTECTED]
Berkshire House120 Hawthorne Ave, #101
252 Kings Road Palo Alto
Reading RG1 4HP United Kingdom California 94301 USA
Tel: +44 118 958 7055 Tel: 650 688 0200
FAX: +44 118 958 9005 FAX: 650 688 1054
===
** VISAJ AT http://www.ist.co.uk/visaj **
===
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Blackdown JDK vs Sun/Inprise
Hi Re: 128MB minimum memory - JBuilder was a big application on Windows... what makes you think it would be smaller written in Java? Nicholas > Resent-Date: Fri, 17 Dec 1999 13:24:13 -0700 (MST) > Date: Fri, 17 Dec 1999 12:19:52 -0800 > From: Paolo Ciccone <[EMAIL PROTECTED]> > To: José Romildo Malaquias <[EMAIL PROTECTED]> > Cc: Adam Ambrose <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: Blackdown JDK vs Sun/Inprise > Mail-Followup-To: =?iso-8859-1?Q?Jos=E9_Romildo_Malaquias?= <[EMAIL PROTECTED]>, Adam Ambrose <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Mime-Version: 1.0 > Content-Transfer-Encoding: 8bit > Resent-Message-Id: <[EMAIL PROTECTED]> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/2071 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > > On Fri, Dec 17, 1999 at 04:10:05PM -0200, José Romildo Malaquias wrote: > > On Fri, Dec 17, 1999 at 09:37:51AM -0800, Adam Ambrose wrote: > > > Yes, you just need to fill out a million forms to get it, but you can > > > get it for free from the Inprise web site: > > > http://www.inprise.com/jbuilder/foundation/ > > > > The recommended minimum memory is 128MB! Is that really need? I have > > only 64MB. Would it be worth downloading and experimenting? Is anybody > > else using JBuilder under Linux with less than the recommended 128MB? > > I'm afraid it's what you need. The performance when using swapping might be > quite bad. You can probably run the IDE in 64Mb but for heavier tasks, like > running or debugging your app in the IDE you need 128. JDK 1.3 is supposed > to have a sensible optimization of memory but I doubt it will make a huge > difference. > > -- > Paolo Ciccone > JBuilder dev.team > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > === Nicholas WrightImperial Software Technology Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java Decompiler
;) Ever tried running a binary through a Java decompiler? Best Regards Nicholas > Resent-Date: Mon, 17 Jan 2000 04:02:48 -0700 (MST) > From: "Oliver Fels" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Mon, 17 Jan 2000 11:54:20 CET > Mime-Version: 1.0 > Content-Transfer-Encoding: 7BIT > Subject: Re: Java Decompiler > Resent-Message-Id: <[EMAIL PROTECTED]> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/2446 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > > On 17 Jan 00, at 17:48, MARUYAMA Fuyuhiko wrote: > > > > > I just accidentally deleted a bunch of my Java source files. Anyone know > > > a good decompiler that works under Linux? > > I think "Jad" is fast and stable. The only regrettable thing is no > > sources are available :-< > > So where is the problem then if that is the purpose of this tool ? :-) > Ever tried running it through itself ? > > Oliver > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > === Nicholas WrightImperial Software Technology Technical Support --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Forte vs Emacs? Your opinions, experiences
Hi I've heard that IST have a free version of their standalone GUI builder called Visaj. Check it out at: http://www.visaj.com/ Nicholas P.S. Umm... OK OK - I'm slightly biased ;) > Resent-Date: Wed, 18 Oct 2000 07:44:14 -0600 (MDT) > Date: Wed, 18 Oct 2000 15:47:29 +0200 > From: Jan Agermose <[EMAIL PROTECTED]> > X-Accept-Language: da, en > Mime-Version: 1.0 > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: Re: Forte vs Emacs? Your opinions, experiences > Resent-Message-Id: <[EMAIL PROTECTED]> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/4606 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from base64 to 8bit by iswarm.ist.co.uk id e9IEruF06353 > > how about a standalone GUI builder and emacs? Does any one know of a > standalone GUI builder? > > Barnet Wagman wrote: > > > I've been doing my Java development using emacs (actually xemacs) but am > > considering switching over to Forte (nee netbeans). > > > > Before I take the plunge in a non-trivial way, I'd like to hear other > > people's opinions about Forte, both in terms of its design and > > stability. (Early versions were unstable and/or unusably slow, but the > > current version, 1.0 build 849, seems ok, at least so far.) > > > > Obviously, Forte is a very different animal than emacs, and has some > > attractive features. particularly re building gui's. On the other hand, > > emacs is reliable, stable, etc. > > > > Thanks, > > > > Barnet Wagman > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > Mvh Jan Agermose > > http://www.agermose.dk > > > ôèPÔ ÿzf¢Ú#jöÿ)îÇúު笷øÚ½¯Û§$v'þàÂ+ajËç-¡ÿî˱ÊâmïÿNº.nWÿ > íiËdj¹ÿnVÚ0ú+ === Nicholas WrightImperial Software TechnologySenior Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with server sockets
Hi > I am somewhat new to java, and I am having a problem with a > server app that I wrote. > What is happening is that for each connection to the server, it returns a > Socket and continues the conversation. This is fine. The socket does > some simple tasks and then I close it. That is the problem. Under heavy > load - each new thread has gets the Socket passed to its run method. > What happens is that the ports on the box become used up. > netstat -t shows tons of ports with TIME_WAIT , waiting to shut down. > Now this shutdown is not happening fast enough, and as more requests come > in, more ports are unuseable until the box will not accept any more > connections. > > How does one get the ServerSocket to re-use ports instead of opening new > ones? 1. I'm assuming you are "NULL"ing the used sockets, so they get garbage collected? 2. Under heavy load, this kind of thing can be expected. Solutions to this are: a) Increase the number of possible file descriptors on your system, as each socket is a file descriptor, and hope that by the time you've maxed this number out, Java has decided to start GC'ing your existing connections. On Unix, find a file called /etc/system and add the lines: set rlim_fd_max=1024 set rlim_fd_cur=128 fd_max is the maximum number, change this to some big number, e.g. 65535. fd_cur is the current number. I'm afraid I don't know the Linux equivalent. b) It may be helpful to use pooling. I know that Resin (a JSP server) allows you to setup an object-pool for client-handling objects, which then reduces time needed to deal with socket, when then reduces the overall load on the server. c) Impose a wait before accepting the next client connection. I had to do some testing with Resin a while back under HEAVY loads. The result was: it does well, but once it starts getting a backlog of client connections to service, kiss it goodbye. I'm not blaming Resin, it's great, but I think the JVM just can't cope. This was with Java 2 Enterprise Edition from Sun on Solaris. I hope some of this helps. Best Regards Nicholas P.S. I am talking over 10 connections in 30 seconds here. P.P.S. I think I remember having problems with congestion, rather than running out of sockets as well. P.P.P.S. Apache did cope a lot more favourably. But then it sets up 4 processes, to load balance between each other. P.P.P.P.S. If you *REALLY* need that many connections, have multiple boxes, and load balance. === Nicholas WrightImperial Software TechnologySenior Software Engineer --- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Berkshire House120 Hawthorne Ave, #101 252 Kings Road Palo Alto Reading RG1 4HP United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 === ** VISAJ AT http://www.ist.co.uk/visaj ** === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
