Re: how to catch stdout
Here's one way of trapping stdout from an unrelated program. I'm pretty sure there's better way, but this works in Blackdown 1.2v1. Process process = Runtime.getRuntime().exec("yourprogram"); process.waitFor(); // getInputStream() returns the input stream connected to the normal // output of the subprocess. BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream())); while((line = in.readLine()) != null){ System.out.println(line); // Or whatever } -Jerry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [OFF-TOPIC] Drawing Package Required For Java Linux Web Graphics
Here's the URL. Seems pretty busy, I'll try to download it tonight. http://www.sun.com/dot-com/staroffice.html -Jerry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: OT: Mailing list control
From: "Dimitris Terzis" <[EMAIL PROTECTED]> Date: Thu, 2 Sep 1999 21:40:06 +0100 >I have no connection to the blackdown people but, as a volunteer in some >social activities, I believe we should be a bit more tolerant... I appreciate what blackdown is doing. But it's a bit frustrating to not know what's going on when you're livelihood depends, to some extent, on the software that they are putting out. I'm not asking for working software, I just want to know what's going on so I can make a decision on whether to use their software. I think the answer is yes, but there's been some doubt about the future of the project on this list, and I'd like to put those fears to rest. >Regarding the issue of "read-only" lists presented in this thread, I can't >understand why there are still out there at the first place! For the >exchange of this type of information (i.e., of specific interest and never >too confidential), a newsgroup is immensely better. Just think of the >browsing facilities services like deja.com offer! Newgroups require a good news feed and have latency issues, I don't have a way of spoofing email addresses for newsposting, and mail is delivered, not picked up. Deja.com is not a great way to read recent news. And, since we are talking about issues in which timeliness can be important, a mailing list works very well indeed. When is the next 1.2 due out? -Jerry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Emacs and java...
Nice plug for O'Reilly, Albert ;-), but why this channel ? Personally I avoid emacs when ever possible having used vi for years (ok, decades). But - I recently came across a REAL programmers editor called slickedit while looking for a Java code beautifier - see www.slickedit.com This really made me sit up - it support emacs and vi (not to mention that old dos favourite brief) editing modes - including regular expressions. Good support for Java/C/C++/et al, and includes a great code beautifier. Even supported on Weird operating systems begining with W, but smile :), it also runs under X. "Linux - I can't believe it's not Microsoft" Jerry T[EMAIL PROTECTED] Albert Lai wrote: > I recommend reading a book on Emacs to get yourself started. I > learned Emacs by reading: > > @Book{Cameron:LGE-1996, > author = "Debra Cameron and Bill Rosenblatt and Eric S. Raymond", > title ="Learning {GNU} {E}macs", > publisher ="O'Reilly \& Associates", > year = 1996, > edition = "Second" > } > > Emacs is very easy to use, after you learn it. I even use it to read > emails and news now, even though half a year ago I used Pine and Trn. > > -- > "No brain, no life." > Albert Y.C. Lai [EMAIL PROTECTED] http://www.vex.net/~trebla/
Re: Beautifier - a fast, small and FREE automatic indenter for java source files
Hi Tal Thanks for your beautifier, but I'm afraid I can't use it because of your restrictive copyright - in particular: > * 7. Any software that makes use of this software must state in its documentation > *that "This software uses Beautifier - an Automatic Indentation Filter > *for Java(C) source files, created by Tal Davidson ([EMAIL PROTECTED]). > The point is that the software does not "use" Beautifier. It may at some point in it's creation have been passed through your filter once, possibly twice, but is no way dependent on it. Imagine if the same requirement were made for an editor - "This software uses Vi - ...", or worse, "This software uses cut -..." If you can remove this from your copyright I'd be happy to have a look. "Linux - I can't believe its not Microsoft" Jerry T. Tal Davidson wrote: > Hi! I have created a small (6K), fast and free (open-source) > automatic indentation filter of java source files, written in pure > java, named Beautifier. Beautifier can be used either from the command > line or as a java-class used by other java programs (such as editors, > pretty printers, etc...). Since posting it a few days ago I have > recieved a truely unanticipated amount of positive reviews about > Beautifier, including interest in making it part of the J.O.S. (a > letter which started with 'Wow' and 'fantastic'!) and FreeBuilder > projects.Beautifier is currently posted at: > http://www.bigfoot.com/~davidsont/beautifier Perhaps Beautifier can be > of help to the java-linux project, and java programmers on linux where > ever they are... Sincerely yours, Tal [EMAIL PROTECTED]
Re: linux on laptops
> >Isn't this rea;y the sort of thread that belongs on a hardware or linux >setup/install list? > >Jason Tan >On Fri, 31 Jul 1998, Maureen Lecuona wrote: > >> I have an IBM 770 ED running Linux RH5.1. The installation was done >> yesterday (took me less than an hour). So far XFree works at 1024x768. >>... Yeah, but it makes GREAT reading... -- /-----\ | Jerry McBride | | | |([EMAIL PROTECTED] | \-/
AudioPlayer
Hi All, Has anyone come across a way of detecting when an AudioPlayer has finished playing it's input stream ? I could subclass the input stream to detect this, but there might me a more elegant solution. Thanks Jerry T
MP3
Hi Anyone picked up on mp3 players for java ? Jerry
String to char conversion
Hi I've looked everywhere (except in the right place) and I can't find something that should be so obvious when you tell me it will smack me in the face and I'll hide in shame for a year! I have a string that contains the characters \u201a - that is a six character string. How do I convert this to a single Unicode char ? I would have expected the Character class to have a method valueOf (String), but it doesn't. Failing that at least a constructor that takes a string arg, but not to be found. This is stupid. There must be a simple elegant solution... Sorry this is a purely Java question on this channel but I *am* running under Linux ;) All the best Jerry
Re: jikes & '$' in variable names....
>On Thu, 21 Jan 1999, Nelson Minar wrote: > >> > 16. boolean Size$readonly = true; >> >*** Lexical Error: Illegal token >> >now standard javac has nothing t complain about this is there a >> >way i culd continue to use jikes? is it a problem with my setup? >> >> RTFM. Use "jikes -$". I'm not sure why they make that an option that's >> off by default, but you can turn it on. > >Because it's naughty. Shouldn't use $s in variable names. > Yeah, but John, everyone is doing it... -- /\ | Jerry McBride | | [EMAIL PROTECTED] | \/
Announce jrex v1.1 alpha
Hi >From the number of requests for info on the Java 2 port, it would seem that there are many other out there who are under pressure to move to Java 2. I've now developed a remote executor which allows for remote compilation of java. We will use this until Java 2 is release and stable, so we can move development on. Our environment is that we have a nice powerful Linux box, but use NT workstations. Using the remote executor we can retain our Linux development environment but submit compilation to the workstation. We can live with running the compiled program under NT only for the time being. If this sounds as though it might help you, drop me a request and I'll mail you the source. Who knows, it might even take some pressure off the Java 2 porting team. All the best Jerry Jerry Treweek Senior Programmer Linguistics Dept Lancaster University [EMAIL PROTECTED]
New interest channel for 1.2 questions...
Why don't we create a new interest channel for 1.2 (or 2) questions. That will strip a lot of crud out of this channel, and the porting team and any other patiently waiting people can filter it all out into /dev/null...
IBM to deploy LinuxPPC on RS6000 servers...
Wow! Have a gander at http://www.techweb.com/se/directlink.cgi?CRN19990208S0005 Basically, IBM has been very impressed with the way that Linux has kicked NT butt all-over the server market and is planing to bundle LinuxPPC on their RS6000 servers! It looks as though Big Blue is taking advantage of the delayed deployment of... Windows 2000! Wow! -- /\ | Jerry McBride | | [EMAIL PROTECTED] | \/
Re: JIT
Albrecht Kleine wrote: > Hi, > > I've just uploaded another TYA JIT release > to tya home site: > > ftp://gonzalez.cyberus.ca/pub/Linux/java/tya1.0.tgz > Thanks Albrecht for your work, I was looking out for a JIT for Java under Linux - we will give it a good testing. This poses the question - are there any other people/groups working on JIT's ? "Linux - I can't belive it's not Microsoft" Jerry T
Compilation hardware
Dear all, I've spend the last week or so trawling for info on CPU's, motherboards, chip sets et al, with the intention of upgrading my main linux machine. This machine (currently a now aging P90) sits in a cupboard and acts as a file server and compilation (Java and C) machine - i.e. a developers systems. Graphics are simply not an issue, as a separate machine acts as an X server. Needless to say both these machines are running Linux. A further machine runs NT to provide the (obligatory) Windows platform. There is a bewildering plethora of choice out there and I would be interested in seeing what opinions and experiences the java-linux community had to offer in respect of selecting components for a compilation machine, specifically, CPU Chip set Motherboard Memory It does seem that most CPU design is driven by the need of the games players on one hand, or the business community on the other and the benchmarks used seem to reflect that. This seems to me to miss the needs of developers somewhat, as we invariably require far more out of our systems than (pardon the term) 'mere users'. Not only must a developers machine meet the requirements of the systems being developed (which is a quite variable issue) they must also provide the shortest compilation times possible. My main concerns are (not necessarily in this order) reliability compilation speed longevity (upgrade ability etc.) price Any reasonable argument for your preferences would be most welcome. Jerry [EMAIL PROTECTED]
Re: How to measure efficiency?
I've had similar problems measuring bandwidth. The greatest difficulty was the limited resoution of the available timers. It's a darn shame that a high resolution counter isn't available given all these fancy hardware. Milliseconds! Pah! You can do an awful lot in a millisecond. Ever since the Pentium was release there have been high resolution counters available - anyone written some code to access them ? - back then it was all restricted access only! Does Intel give a damn now ? Jerry Nathan Meyers wrote: > Willi Richert wrote: > > > > I have written an ftp-client (connected to the ftp-server residing at > > the same computer) which I tried to measure how fast it can handle I/O. > > I used getCurrentTimeMillis() (or similar) which gave me for the same > > config (retrieve 1meg, same file) sometimes values that differed by a > > factor of 2. > > Now, how can I get "valuable values". Maybe I missed a similar > > discussion, so I would be thankful for every pointer. > > To explore a couple of obvious questions: > > 1) Are you sure the different values are wrong? Have you stood by with a > stopwatch to compare what the program is reporting with what is really > happening? > > 2) Is the time of what you're measuring long enough to make minor > variations insignificant? > > Perhaps the most important caveat is to realize that a call that reports > milliseconds or microseconds or whatever isn't necessarily accurate to > the millisecond or microsecond... it's only accurate to the resolution > of the underlying clock. If, to get a little extreme, your system ticker > is counting off in tenths of seconds, then you're always going to get a > time that's accurate to + or - 1/20th of a second. > > Nathan > > -- > 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: free obfuscator available
>It might be of interest to the java-linux community to know there is a >free and excellent class file obfuscator out there. It is available at > >http://www.elegant-software.com/software/jmangle/ > >and comes with source code. If he receives enough requests maybe the >author could be convinced to release it under a free license for >everybody to contribute and improve it? > Another nice one, almost free, is JAX at the www.alphaworks.ibm.com website. It is written java and not only obfucates, it will compress and JAR your project automatically. If the JAX development program is anything like the High Performance Java Compiler, I'd grab a copy before it get's promoted too... -- /\ | Jerry McBride | | [EMAIL PROTECTED] | \/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: free obfuscator available [truly OT/BS]
>--- Zhichao Hong <[EMAIL PROTECTED]> wrote: >> > Yeah. And nobody traded with the People's Republic >> of China. >> What do you mean on this ? American traded with >> People's Republic of >> China now. Nobody means Americans are not human >> beings? They are >> probably not since they throw bombs like patatos! >> Gready nation and >> hypocrites! > >Extremenly off topic threads like this are poping up >too often. Not too mention the redundant questions >which have been answered 50+ times each. Maybe, this >list should be moderated. > >Ohh, and a note to Zhichao. I'm an American and I can >tell you that many of use disagree with the practices >of our government. Clinton and his "Cruise Missle >Diplomacy" do not reflect the views and objectives of >the entire population. So please do not judge every >American by the actions of their government. And if >you feel compelled to reply to this, send it via >private e-mail please. > I too, an an American and a very proud one at that. May the next potatoe find it's way into Zhichao's cooking pot... :') -- /\ | Jerry McBride | | [EMAIL PROTECTED] | \/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.3, Tomcat 3.2.1, and CLASSPATH settings....
Two days ago, I installed JDK 1.3.0_02. Yesterday I installed Tomcat 3.2.1. I tried JSPs and they failed. I found a Tomcat FAQ that suggested I needed to add tools.jar to my CLASSPATH. So, I added JAVA_HOME/lib/tools.jar But that didn't work. Investigation on my machine shows that JAVA_HOME points to /usr/java/jdk1.3.0_02/jre there are lots of jar files in $JAVA_HOME/lib such as rt.jar But there are also several jar files in /usr/java/jdk1.3.0_02/lib such as tools.jar So, 1. What should JAVA_HOME be set to? 2. What is tools.jar? 3. Why the two different lib directories? 4. Is there a FAQ for this mailing list (I'd hate to repeat questions that have already been answered.) Thank you, Jerry Asher = Jerry Asher [EMAIL PROTECTED] 1678 Shattuck Avenue Suite 161Tel: (510) 549-2980 Berkeley, CA 94709Fax: (877) 311-8688 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
CLASSPATH anomolies
I have recently downloaded and installed Steve Byrne's JDK 1.1.3 and have run into several strange problems associated with setting of the CLASSPATH environment variable. On two of our systems, one running RedHat4.0, the other running Caldera's Standard OpenLinux 1.2, I cannot get 'javac' or 'appletviewer' to function unless I completely remove the CLASSPATH variable; when it is set to the "correct" value, niether 'javac' nor 'appletviewer' will function correctly! I'm wondering if you have seen this before, and if so, if you can tell me what the "correct" procedure should be? Thanks, -jerry solomon
Netscape and linux java
Although the latest version of Netscape Navigator, 4.05, claims to be using JDK 1.1.2, I have had problems with it not recognizing most of the event handler classes in the linux JDK 1.1.5 version that I run locally. In particular it cannot find such things as mouseMotionListener, etc. Anybody seen similar problems? -jerry solomon
appletviewer screen location
I believe someone mentioned this problem recently, but I do not recall any responses indicating how to "cure" it. We are running Linux JDK 1.1.5v7, and when we use 'appletviewer' to checkout java code the viewer invariable comes up initially rather close to the upper left corner of the screen; then, after about 2 seconds it jumps about 20 pixels up and 20 pixels to the left. This leaves the viewer only partially visible; and, since the upper part of the viewer is not visible, there is no way to reposition or even 'quit' it! Wondering if there is some way to control this annoying behaviour?? Thanks much, -jerry solomon
RedHat, libc, and glibc
Well, I suppose I should add my own observations to the general confusion over glibc and libc. I recently installed JDK1.1.5v7 on one of our RedHat 4.2 systems using the libc version, and it performs quite well with no problems (so far). I could not get the glibc version to work at all! Also, on this system the CLASSPATH environment must NOT be set in order for JDK to work properly! Perhaps someone will find this observation useful.-) Jerry Solomon
feedback on JDE's
Hello List, I have spent the past several weeks trying out two commercially available JDE's, Simplicity (datarepresentations.com) and SuperMojo (penumbrasoftware.com). Although I have not done an exhaustive evaluation, I am coming to the conclusion that these (and probably other) JDE's are not terribly useful for more than "toy" projects. I would greatly appreciate hearing from anyone who has actually used either of these products to produce real, substantial project code, and what their experiences might have been. Thanks in advance, -jerry
Problem running jdk/jre/rt with glibc21
When I start jre I am getting the following: /u00/local/jre1.1.7/bin/../bin/i686/green_threads/jre: error in loading shared libraries: /u00/local/jre1.1.7/bin/../lib/i686/green_threads/libjava.so: undefined symbol: _dl_symbol_value Attached you will find ldconfig -D output Regards, Jaroslaw Sosnicki Tech. Staff Eng. Motorola, Inc. ldconfig: version 1999-02-21 /usr/lib: ldconfig: warning: /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so has inconsistent soname (libstdc++-libc6.1-1.so.2) libutempter.so.0 => libutempter.so.0.3 libitk3.0.so => libitk3.0.so libitcl3.0.so => libitcl3.0.so libgimpui.so.1 => libgimpui.so.1.0.4 libORBitutil.so.0 => libORBitutil.so.0.4.2 libopcodes-2.9.1.0.23.so => libopcodes-2.9.1.0.23.so libORBitCosNaming.so.0 => libORBitCosNaming.so.0.4.2 libbfd-2.9.1.0.23.so => libbfd-2.9.1.0.23.so libORBit.so.0 => libORBit.so.0.4.2 libIIOP.so.0 => libIIOP.so.0.4.2 libamu.so.2 => libamu.so.2.0.0 libIDL-0.6.so.0 => libIDL-0.6.so.0.4.1 libsnmp.so.0 => libsnmp.so.0.3.6.1 libtk8.0.so => libtk8.0.so libtixsam4.1.8.0.so => libtixsam4.1.8.0.so libtix4.1.8.0.so => libtix4.1.8.0.so libtkx8.0.4.so => libtkx8.0.4.so libtclx8.0.4.so => libtclx8.0.4.so libtcl8.0.so => libtcl8.0.so libslang.so.1 => libslang.so.1.2.2 libreadline.so.3 => libreadline.so.3.0 libhistory.so.3 => libhistory.so.3.0 libqt.so.1 => libqt.so.1.44 libpisock.so.3 => libpisock.so.3.0.1 libnewt.so.0.40 => libnewt.so.0.40 libmikmod.so.1 => libmikmod.so.1.0.0 libuulib.so.5 => libuulib.so.5.0.13 libmimelib.so.1 => libmimelib.so.1.0.0 libjs.so.0 => libjs.so.0.2.0 libQwSpriteField.so.1 => libQwSpriteField.so.1.5.0 libpuke.so.0 => libpuke.so.0.0.1 libmediatool.so.2 => libmediatool.so.2.0.0 libkspell.so.2 => libkspell.so.2.0.0 libkimgio.so.2 => libkimgio.so.2.0.0 libkhtmlw.so.2 => libkhtmlw.so.2.0.0 libkfm.so.2 => libkfm.so.2.0.0 libkfile.so.2 => libkfile.so.2.0.0 libkdeui.so.2 => libkdeui.so.2.0.0 libkdecore.so.2 => libkdecore.so.2.0.0 libkab.so.2 => libkab.so.2.0.0 libjscript.so.2 => libjscript.so.2.0.0 libxml.so.0 => libxml.so.0.0.0 libguile.so.4 => libguile.so.4.0.0 libgtk.so.1 => libgtk.so.1.0.6 libgdk.so.1 => libgdk.so.1.0.6 libgtk-1.2.so.0 => libgtk-1.2.so.0.1.0 libgdk-1.2.so.0 => libgdk-1.2.so.0.1.0 libgpm.so.1 => libgpm.so.1.17.5 libBLT.so.2 => libBLT.so.2.4 libobgtk.so.1 => libobgtk.so.1.1.3 libobgnome.so.0 => libobgnome.so.0.0.0 libz.so.1 => libz.so.1.1.3 libxmltok.so.0 => libxmltok.so.0.1.0 libxmlparse.so.0 => libxmlparse.so.0.1.0 libwww.so.0 => libwww.so.0.1.0 libmd5.so.0 => libmd5.so.0.1.0 libvgagl.so.1 => libvgagl.so.1.3.1 libvga.so.1 => libvga.so.1.3.1 libungif.so.4 => libungif.so.4.1.0 libungif.so.3 => libungif.so.3.1.0 libtiff.so.3 => libtiff.so.3.4 libstdc++.so.2.8 => libstdc++.so.2.8.0 libstdc++.so.2.7.2 => libstdc++.so.2.7.2.8 libzvt.so.2 => libzvt.so.2.2.1 libg++.so.2.7.2 => libg++.so.2.7.2.8 libpng.so.2 => libpng.so.2.1.0.3 libgnorba.so.27 => libgnorba.so.27.1.5 libgnomeui.so.32 => libgnomeui.so.32.8.1 libjpeg.so.6 => libjpeg.so.6.0.1 libjpeg.so.62 => libjpeg.so.62.0.0 libgnome.so.32 => libgnome.so.32.3.1 librle.so.1 => librle.so.1.0.0 libppm.so.1 => libppm.so.1.0.0 libpnm.so.1 => libpnm.so.1.0.0 libpgm.so.1 => libpgm.so.1.0.0 libpbm.so.1 => libpbm.so.1.0.0 libfbm.so.1 => libfbm.so.1.0.0 libghttp.so.1 => libghttp.so.1.0.0 libPropList.so.0 => libPropList.so.0.1.1 libimlib-xpm.so.0 => libimlib-xpm.so.0.0.0 libimlib-tiff.so.0 => libimlib-tiff.so.0.0.0 libimlib-ppm.so.0 => libimlib-ppm.so.0.0.0 libimlib-png.so.0 => libimlib-png.so.0.0.0 libpanel_applet.so.0 => libpanel_applet.so.0.0.0 libgkb_applet.so.0 => libgkb_applet.so.0.0.0 libfish_applet.so.0 => libfish_applet.so.0.0.0 libgmp.so.2 => libgmp.so.2.0.2 libimlib-ps.so.0 => libimlib-ps.so.0.0.0 libimlib-jpeg.so.0 => libimlib-jpeg.so.0.0.0 libimlib-gif.so.0 => libimlib-gif.so.0.0.0 libimlib-bmp.so.0 => libimlib-bmp.so.0.0.0 libgdk_imlib.so.1 => libgdk_imlib.so.1.9.4 libImlib.so.1 => libImlib.so.1.9.4 libgtkxmhtml.so.1 => libgtkxmhtml.so.1.0.1 libgnorbagtk.so.0 => libgnorbagtk.so.0.0.0 libgnomesupport.so.0 => libgnomesupport.so.0.0.0 libart_lgpl.so.2 => libart_lgpl.so.2.0.0 libglib.so.1 => libglib.so.1.0.6 libgthread-1.2.so.0 => libgthread-1.2.so.0.0.1 libgmodule-1.2.so.0 => libgmodule-1.2.so.0.0