Java 1.1 applets in Netscape Navigator
Hello all, I'm trying to get a Java 1.1 applet to work in Netscape 4.x. There's a Windows plug-in for it, but the Linux port of the Activator plug-in seems to have disappeared. I've downloaded the 1.1.7 JDK and can't use the appletviewer directly because the applet is sitting behind HTTP authentication. I need some way to view the page with Netscape and have it launch the appletviewer. Supposedly 1.1 support is in Navigator 4.5, but on one version I keep getting the message that I need the plug-in, and on another copy of 4.5 it just sits there. I've tried setting my preferences for applications (java archive) and application/x-java-applet to try and make them use the appletviewer, but no go. If anyone can point me in the right direction (even a "RTFM" and a link!) I'd really appreciate it. It's probably something simple. Thanks a lot! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with Emacs/JDE
Hopefully I can help a little with the JDE problem. I have been using JDE/XEmacs v20.4 as my development environment on Debian Linux/i386 for quite some time. The following are for XEmacs - YMMV. Automatic syntax and paren highlighting are in the Options menu. Remember to save your options after you set them. Automatic indentation has always worked for me - I don't remember doing anything to set it up. I installed the Debian packages for XEmacs and JDE (Then later installed JDE from source - but that didn't change anything we are talking about now.) then added: (require 'jde) to the ".emacs" file in my home directory. (ls -a will show all hidden files for those who want to see the .emacs file. . .) Use the JDE->Options menu to set your classpath, etc. Hope that helps! NOTE: My apologies to Justin, who will be receiving this for the second time. (I sent it straight to him - then noticed after the fact that it wasn't addressed to java-linux. Since multiple people were having similar problems, here it is.) Matthew Excell Chief Engineer OnLine Web Marketing excell at olwm dot com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Minor jdbc question.
Matt Zagni wrote: > > Ok, > > jdbc works for simple select statements like.. > > But how can you pass this statement > select count(*) from col That will depend on your DBMS - JDBC is just a pipe (for the most part,) sending information to the database back end. What database system are you using? Matt Excell Chief Engineer OnLine Web Marketing -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java3D working at all?!?
Wow, Peter... Well, I downloaded 4 versions of java inc the 1.2 beta 3 version. even with the iBSC2 module installed it still complained about corruption. The best pace to get it from was http://www.blackdown.org (the libc5 version 7) thats what I've been using, it works ok but linux 'wine' complains about a k32obj.c and it core dumps. You can get by the solaris problem, just remove the install script at the start of the file and save it when you get to the tar'ed compressed bit. run tar -xvzf and it unrapps before your eyes, but you won't be able to compile or run the appletviewer however much you try. Good luck Matt
Re: Java3D working at all?!?
Peter, I'm unsure of how the solaris version of 1.2 beta 3 is compiled but I think its to do with the libs. I found the same problem you think your there and any version of java will work on any platform, but once to download it and then attempt to use the javac or appletviewer it complains about .java_wrapper and its settings, then after working out the .java_wrapper you think your there then try the appletviewer and ... core dump (seg fault). Sorry but, I quite agree has anyone got a 1.2 beta 3 complied for linux if not could someone generate one for linux and place it on http://www.blackdown.org (subject to the correct say so of cause) ? Many thanks Matt
Re: ORB uder linux?
Rich, How was the install have you any pointers What JDK are you using ? Does it work with slackware too ? Many thanks Matt > From [EMAIL PROTECTED] Tue Sep 8 14:48:19 1998 > From: [EMAIL PROTECTED] (Rich Edwards) > Subject: Re: ORB uder linux? > > By far the best "free" CORBA implementation that runs on Linux is > ORBacus (formerly OmniBroker), from OOC (www.ooc.com). It has both C++ > and Java support, and is a top-notch product. It is free for > non-commercial uses, and royalty-free for commercial use, with a > development license structure. We have been using it for several months > now, and highly recommend it. > > Paul V. Drobnich wrote: > > > > Hi, > > > > Anybody knows anything about free CORBA2 ORB uder linux, > > or some idl2java precompiler for linux? > > -- > Rich Edwards > Senior Software Engineer > Codonics, Inc. > e-mail: [EMAIL PROTECTED] >
problem using appletviewer jdk1.1.5
Hi, Im getting the following errors when displaying Clock1.class basicaly I changed all the refs in the Clock2.class demo of jdk1.1.5 to Clock1 (ie from Class2 to Class1) recompiled and attempted to use appletviewer to display it to check that the compiler was working ok. However when I tried appletviewer I got the following errors. Both Linux and windows 95 produce the same errors /usr/local/jdk1.1.5/demo/Clock# appletviewer index.html File not found when looking for: Clock1 java.lang.NullPointerException at sun.applet.AppletPanel.createApplet(AppletPanel.java:462) at sun.applet.AppletPanel.runLoader(AppletPanel.java:398) at sun.applet.AppletPanel.run(AppletPanel.java:237) at java.lang.Thread.run(Thread.java) Does anyone know whats wrong ? Many thanks Mattz
Re: problem using appletviewer jdk1.1.5
Great it now works 100% in win95 but does a funny in linux.. The Clock2.class produces a time -1hr when run under appletviewer in linux but when viewed via netscape the time is correct. Intersting ? My orginal problem was solved by removing the following code from my .html file.. codebase "1.1.6" Then it worked great. Many thanks to all and most of all Pat for his helpfull assistance. Matt
**out of memory, exiting**
Hi, Well all looks great at the moment, how ever when I have netscape active when I attempt to compile (using javac) I get the following error **out of memory, exiting**. Has anyone else had his error or is it just my box. I am running a 200Mhz Pent Pro, 32MB RAM 3.1 Gig drive. linux 2.0.0.33, jdk1.1.5. I can compile and constuct applets but this is a bit of a down'er although I can get round it by not compiling whilst running netscape. Many thanks Matt
Re: **out of memory, exiting**
Ok.. I have no swap space.. (excuse me whilst I bash my head against a table, it may knock some more sense in me). Many thanks for all the kind replies. Matt
Is there a linux java editing tool
Hi, Could someone recommend a good editing tool for java that will run in linux for constucting classes and applets etc. Many thanks Matt
Re: javac problem
Mats, I have the same problem when I try to install netbeans. you mentioned that to over come this problem I should > This is an old one delete (or rename) the libc.so* and /or libdl.so* Are these major lib's and what other applications will the above impact ? Is there another way of correcting this or is it the only way ? Many thanks Matt > From [EMAIL PROTECTED] Thu Sep 17 07:54:56 1998 > On Wed, 16 Sep 1998, Calixto Melean (Personal) wrote: > > > I installed the corresponding jdk in my glibc linux system. the java > > command runs fine. however, the compiler (javac) gives me the following > > errors: > > > > SIGSEGV 11* segmentation violation > > > > Full thread dump: > > Monitor Cache Dump: > > Registered Monitor Dump: > > Monitor IO lock: > > Child death monitor: > > Event monitor: > > I/O monitor: > > Alarm monitor: > > Monitor registry: > > Thread Alarm Q: > > > > > > > > This is an old one delete (or rename) the libc.so* and /or libdl.so* > stuff in the /lib directory. Either of them (or both) clashes in some way > with the libraries you have currently on ur system. > > Regards, > Mats Petersson >
jdk1.1.6v4a and netbeans
Hi, Has anyone installed the new version of netbeans yet ? I am using jdk1.1.6v4a but the netbeans install is looking for java.exe in /usr/local/jdk1.1.6v4a/bin/bin/i586/green_threads/java I thought java would be in /usr/local/jdk1.1.6v4a/bin/i586/green_threads/java Have I managed to messup my PATH or CLASSPATH or is this a known bug in the new version of netbeans ? I'm using slackware 3.5, Pent 200Mhz, I installed the libc5 version of Java yesterday. Also I noticed that one of the dirs was for i686 is this of any relevance ? HELP Many thanks Matt
Re: jdk1.1.6v4a and netbeans
Wow, Many thanks to all that replied. Its now going fine.. Method.. Its this old lib problem.. I had to rename the libc and the libdl files as mentioned yesterday so they were out of the way then I managed to sort out the old class path problem (silly me I'm used to java1.2). Hit the install and all went fine. Any constructive tips on netbeans are welcome. Many thanks Matt > From [EMAIL PROTECTED] Fri Sep 18 10:31:19 1998 > > Where can I get net beans ? > > Incidentally, it looks to me like the PATH is wrong. Note the two 'bin's. > Maybe you should remove the 'bin' in your PATH statement ? > > Regards, > Pascal Chong > > -Original Message- > From: Matt Zagni <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Friday, September 18, 1998 5:03 PM > Subject: jdk1.1.6v4a and netbeans > > > > > >Hi, > > > >Has anyone installed the new version of netbeans yet ? > > > >I am using jdk1.1.6v4a but the netbeans install is looking > >for java.exe in /usr/local/jdk1.1.6v4a/bin/bin/i586/green_threads/java > > > >I thought java would be in > >/usr/local/jdk1.1.6v4a/bin/i586/green_threads/java > > > >Have I managed to messup my PATH or CLASSPATH or is this a > >known bug in the new version of netbeans ? > > > >I'm using slackware 3.5, Pent 200Mhz, I installed the libc5 > >version of Java yesterday. > > > >Also I noticed that one of the dirs was for i686 is this of > >any relevance ? > > > >HELP > > > >Many thanks > > > >Matt > > > > > >
Re: jdk1.1.6v4a and netbeans
Hi, Who is this [EMAIL PROTECTED] ? Why am I getting muti email messages ? Is there sometime wrong with the [EMAIL PROTECTED] mailing list ? Many thanks Matt > From [EMAIL PROTECTED] Fri Sep 18 10:49:44 1998 > > Hi, > > Has anyone installed the new version of netbeans yet ? > > I am using jdk1.1.6v4a but the netbeans install is looking > for java.exe in /usr/local/jdk1.1.6v4a/bin/bin/i586/green_threads/java > > I thought java would be in > /usr/local/jdk1.1.6v4a/bin/i586/green_threads/java > > Have I managed to messup my PATH or CLASSPATH or is this a > known bug in the new version of netbeans ? > > I'm using slackware 3.5, Pent 200Mhz, I installed the libc5 > version of Java yesterday. > > Also I noticed that one of the dirs was for i686 is this of > any relevance ? > > HELP > > Many thanks > > Matt > >
Re: jdk1.1.6v4a and netbeans
K.R. I installed it and it all went well, looking good.. Now how do I use it ? but thats for another day. Lib were a problem though but thats slackware and jdk1.1.6 Many thanks Matt > From [EMAIL PROTECTED] Fri Sep 18 16:33:59 1998 > > Matt Zagni wrote: > > > Hi, > > > > Has anyone installed the new version of netbeans yet ? > > > > I am using jdk1.1.6v4a but the netbeans install is looking > > for java.exe in /usr/local/jdk1.1.6v4a/bin/bin/i586/green_threads/java > > > > I thought java would be in > > /usr/local/jdk1.1.6v4a/bin/i586/green_threads/java > > > > Have I managed to messup my PATH or CLASSPATH or is this a > > known bug in the new version of netbeans ? > > > > I'm using slackware 3.5, Pent 200Mhz, I installed the libc5 > > version of Java yesterday. > > > > Also I noticed that one of the dirs was for i686 is this of > > any relevance ? > > > > HELP > > > > Many thanks > > > > Matt > > Matt, > > I am using what I would say (the best I can tell from your description) > the same setup you are using and the install worked fine for me. A note > about my environment: The only environment variables set with anything to > do with JDK are: > JDK_HOME="location of JDK root directory" and > PATH includes "$JDK_HOME/bin" and that's it. > No CLASSPATH, etc. > One other thing that might be different is that I downloaded the install > class and not the ".sh" > > Hope this helps, > K.R. > > -- > K.R. Foley > Alwan, Inc. > [EMAIL PROTECTED] > > >
Q how do I covert an applet to a Servlet
Hi, I have been presented with what I think must be a very common request. Can you convert an Applet to a Servlet ? I have just been presented with this task after a very large applet application has been created that contains quite a number of files. But the application now needs to be converted into a Servlet based application for security reasons. Can any one help ? Many thanks Matt
Start Office and Java
To All, Has anyone used StarOffice 5 for Java yet ? Is it any good ? I wonder if 'wine' will go the java route ? Matt
Re: jdk-1.1.6 v5 and kaffe-1.0b2 rpms
This may seem crazy but how do you install or deal with .rpm files ?
DNS and JavaWebServer1.1 installation
Hi, Problems in JavaWebServer1.1 I am having great problems configuring the DNS connections after a reinstall. Has anyone of you got any tips on configuring the DNS connections ? When I startup the httpd I get in the event_log loadStartupServlets: file invoker admin error ssinclude ssinclude : class = com.sun.sever.webserver.SSIncludeServlet, class URL = , arguments = I think that this is not communicating with my DNS setup to obtain my local host name/computer name, and as such not being able to fire up the http://:8080/ Would this be correct ? Could you help ? I have a PPP connection to my ISP and that looks fine however this connection looks problematic. Many thanks Matt
Re: rpm of jdk1.1.6 in libc5 format is in old i386 contrib
I take it your using red hat, rpm's seem to be the way now is this correct ? Many thanks Matt > From [EMAIL PROTECTED] Mon Oct 19 11:22:35 1998 > Just a note to let you know I found the libc5 > version in the old i386 contrib directory. > > Dunno what happened to glibc version. I'm > going to download the tarball from tux.org, > but I prefer rpm's because I can uninstall > the old version before installing the > new one. Cleaner that way. > > -- > J. Mark Brooks > [EMAIL PROTECTED] > http://www.nr.infi.net/~jmbrooks > > *** > * * > * "God works wonders now and then:* > * Behold, a lawyer, and an honest man." * > * --Benjamin Franklin* > * * > *** > >
request for a sendmail java script
Hi, Please could someone mail me an example of a sendmail java class file and .java file or even a url where examples are located. Many thanks Matt
JAD java decompiler
Hi, Does anyone know the link to JAD the java decompiler ? Is there a URL around that works ? Many thanks Matt
Re: JAD java decompiler
To All Re: JAD java decompiler Many thanks to all that replied. I have a copy now. Many thanks Matt
Re: JAD java decompiler
Ok well we seem to be missing JAD... I was sent two emails regarding this and countless requests for the info. The link at blackdown has gone (premissions) and the link on http://Meurrens.ML.org/ip-Links/Java/codeEngineering/ that Jauvane kindly gave has permission problems too (but I do like the site many thanks) D-Java has problems too. The only other way to find the JAD is to search on the www for jadnt or jadlx that info was kindly passed to me by Maureen. I used the NT version and it worked fine but I am not sure where the linux version is. Could someone update blackdown please (Steve) so that another link can be established. Many thanks to all that replied. Matt
Re: request for a sendmail java script
Many thanks Raymond, I'll make a note of that one. > From [EMAIL PROTECTED] Thu Oct 22 17:40:15 1998 > Date: Thu, 22 Oct 1998 14:13:05 -0230 > From: Raymond Lambe <[EMAIL PROTECTED]> > Mime-Version: 1.0 > To: "Nguyen, Tram N." <[EMAIL PROTECTED]> > Cc: 'Matt Zagni' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: request for a sendmail java script > Content-Transfer-Encoding: 7bit > > Matt, > > I would also sugest that you check out the O'Reilly book "Java Examples > in a Nutshell". You can download all the examples for this book at: > > http://www.oreilly.com/catalog/jenut/examples/ > > It includes a sendmail.java example almost identical to the one Tram has > show here. If you like seeing example code on how things work, I'd > suggest that you download these examples. > > Ray > > Nguyen, Tram N. wrote: > > > > The following example is a very simple sendmail tool using 'mailto:' > > protocol, you can write your own mail handler for smtp protocol or other > > ultilizing net, io package . > > > > import java.io.*; > > import java.net.*; > > > > /** > > * This program sends e-mail using a mailto: URL > > **/ > > public class SendMail { > > > > private String to, message; > > private String from, subject; > > final static String EmailServer = "company.com"; > > > > private URL u; > > private URLConnection c; > > private PrintWriter out; > > > > public SendMail (String t, String m) > > { > >to = t; > > > >message = new String ("You mesage "); > >subject = new String ("Your subject"); > >from = new String ("Sender name"); > > > > } > > public int send(){ > >int rtnStatus=0; > >try { > > System.getProperties().put("mail.host", EmailServer); > > u = new URL("mailto:" + to); > > c = u.openConnection(); > > c.setDoInput(false); > > c.setDoOutput(true); > > System.out.flush(); > > c.connect(); > > out = new PrintWriter(new OutputStreamWriter(c.getOutputStream())); > > > > out.println ("From: \"" + from + "\" <"); > > out.println ("To: " + to); > > out.println ("Subject: " + subject); > > out.println (); > > > > out.println (message); > > > > //out.close(); > > //System.out.println("Message was sent"); > > System.out.flush(); > > rtnStatus = 1; //if sucessful return 1 > >}catch (Exception e) > >{ > > System.err.println(e); > >}finally {out.close();return rtnStatus;} > > } > > } > > > > > -Original Message- > > > From: Matt Zagni [SMTP:[EMAIL PROTECTED]] > > > Sent: Thursday, October 22, 1998 3:45 AM > > > To: [EMAIL PROTECTED] > > > Subject: request for a sendmail java script > > > > > > > > > Hi, > > > > > > Please could someone mail me an example of a sendmail java class file > > > and .java file or even a url where examples are located. > > > > > > Many thanks > > > > > > Matt >
Java Web Server1.1 on Linux
Hi, On the blackdown web page it is possible to load the javasoft's JavaWebServer1.1 in linux only if the diff file is added. Question (a bit short of knowledge on this thing). Is there an easy way to apply the diff's, or is it a manual opperation by editing this file then that file and changing it line by line in each file ? Then recompiling the server ? Are there any tips or hints out there for compiling and how to apply the diff's etc. Many thanks Matt
Re: Java Web Server1.1 on Linux
Jim, So it is basicaly a look up in the man pages for patch, then run a make after the changes have been added manually line by line as the diff's have indicated ? I have the Slackware linux (big complete book) so it may have it in there too. diff -c > name.patch a command like.. patch -p0 or patch -cr Any ideas for someone who is totaly in the dark on diffs (who feels that he has a patch over each eye) ? Many thanks Matt > From [EMAIL PROTECTED] Mon Oct 26 14:24:32 1998 > > Matt Zagni wrote:Is there an easy way to apply the diff's, or is it a manual > > > operation by editing this file then that file and changing > > it line by line in each file ? > > enter > $ man patch > $ man make > > > Are there any tips or hints out there for compiling and how > > to apply the diff's etc. > > This is only my opinion, but there is no substitute but to read some > books, i got SAMS "Slackware Linux Unleashed" and WROX "Beginning > Linux Programming". > > The software is free but you need to spend some $$$ to find out how to > use it... > > jim watson > > > > > >
Re: Java Web Server1.1 on Linux
To All, Yep, I was'nt to sure of the diff file or how to apply it, but with the help of Jim I was doing to try it later on tonight. With the command line of.. > localhost:~/JWS/JavaWebServer1.1$ patch -p1 < jwebs-linux.diff But at the moment I am trying to get to grips with the solaris version of jws1.1 (and with the help of Joe, it appears to work ok) I am still trying to get to grips with the sample of MailServlet but thats another story... When I try running the jws1.1 under linux without applying the patch by running httpd.nojre, I get the errors of can't find the libs etc and when they do the result is as expected (not a elf file etc..) as it was ment for a Solaris box). Jim have you attempted to run the httpd.nojre after applying the patch ? Many thanks Matt > From: jim watson <[EMAIL PROTECTED]> > > > Matt Zagni wrote:Is there an easy way to apply the diff's, or is it a manual > > i went and got the JavaWebServer1.1 and applied the diffs from > http://www.blackdown.org/java-linux/products.html > > most of the diffs succeeded so i guess i have done it correctly, but a number > of the diffs rejected: > > it stopped at the start so i told it to look for startup_wrapper, but there is > no such file... > > is the diff out of date? > === > localhost:~/JWS/JavaWebServer1.1$ patch -p1 < jwebs-linux.diff > > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -- > |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 > |+++ startup_wrapper Thu Mar 5 00:39:06 1998 > -- > File to patch: localhost:~/JWS/JavaWebServer1.1$ patch -p1 < jwebs-linux.diff > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -- > |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 > |+++ startup_wrapper Thu Mar 5 00:39:06 1998 > -- > File to patch: startup_wrapper > No file found--skip this patch? [n] y > Skipping patch... > Hunk #1 ignored at 10. > Hunk #2 ignored at 87. > 2 out of 2 hunks ignored--saving rejects to startup_wrapper.rej > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -- > | > |--- ./bin/jserv.cls Wed Feb 4 15:52:32 1998 > |+++ ./bin/jserv Thu Mar 5 01:19:54 1998 > -- > Patching file bin/jserv using Plan A... > Hunk #1 succeeded at 560. > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -- > |--- ./native/Makefile.lnx.cls Thu Mar 5 01:21:16 1998 > |+++ ./native/Makefile.lnx Thu Mar 5 01:36:14 1998 > -- > (Creating file native/Makefile.lnx...) > Patching file native/Makefile.lnx using Plan A... > Hunk #1 succeeded at 1. > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -- > |--- ./native/UNIXUser.c.cls Wed Feb 4 15:34:15 1998 > |+++ ./native/UNIXUser.c Thu Mar 5 01:28:16 1998 > -- > Patching file native/UNIXUser.c using Plan A... > Hunk #1 failed at 35. > 1 out of 1 hunks failed--saving rejects to native/UNIXUser.c.rej > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -- > |--- ./native/UNIXUserEnumeration.c.cls Wed Feb 4 15:34:15 1998 > |+++ ./native/UNIXUserEnumeration.c Thu Mar 5 01:27:52 1998 > -- > Patching file native/UNIXUserEnumeration.c using Plan A... > Hunk #1 failed at 57. > 1 out of 1 hunks failed--saving rejects to native/UNIXUserEnumeration.c.rej > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -- > |--- ./etc/java-server.startup.cls Wed Feb 4 15:53:24 1998 > |+++ ./etc/java-server.startup Thu Mar 5 01:42:22 1998 > -- > Patching file etc/java-server.startup using Plan A... > Hunk #1 succeeded at 80. > Hunk #2 succeeded at 92. > Hunk #3 succeeded at 111. > Hunk #4 failed at 168. > 1 out of 4 hunks failed--saving rejects to etc/java-server.startup.rej > done > >
S.u.S.E 5.3 and Java opinions welcome
Hi, Has any one had any problems with S.u.S.E 5.3 glib and JDK, JSDK, and JavaWebServer1.1 ? I am going to move to S.u.S.E from slackware if all goes well, as I need glib and rpm support. Any tips would be great. Many thanks Matt > Resent-Date: Sat, 7 Nov 1998 10:06:08 -0500 > From: Michael Sinz <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Date: Sat, 07 Nov 1998 10:05:07 -0500 > Subject: Re: Which version of linux on which is JDK compiled? > Resent-Message-Id: <"YqAGO.0.HZ3.V76Hs"@shell> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/3364 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > Mime-Version: 1.0 > Content-Transfer-Encoding: 7bit > > On Sun, 01 Nov 1998 18:26:43 +0900, SHUDOH Kazuyuki wrote: > > >[EMAIL PROTECTED]("Michael Sinz") wrote: > > > >> >What platform on which does binary distribution of JDK > >> >for linux compiled? Which version of linux kernel? > > > >> On x86 we use the production kernels since most users will > >> be using such kernels. Other platforms may use other > >> kernels. > > > >On other processors, e.g. Alpha, PowerPC and SPARC, > >what version of kernel is used generally? > >What platform on which does binary distribution compiled? > > The PowerPC group tends to use a relatively new 2.1.x (2.1.100+) > kernel. There are some fixes that are in the kernels and the > glibc that are needed there. > > I don't know about Sparc but I would guess that it is RedHat > based given the RedHat support for the Sparc. > > The Alpha work I will be doing will be stable kernel based as much > as possible (such as 2.0.35, which is what I am currently running) > The base system started out as a RedHat 5.0 distribution but has > been updated with many things since then. > > The JDK 1.1.7 v1a release was compiled for glibc on a 2.0.35 kernel > with RedHat 5.0 (plus lots of updates) The libc5 was build on a > rather generic SuSE 5.2 distribution with only minor upgrades. > > Michael Sinz -- Director of Research & Development, NextBus Inc. > mailto:[EMAIL PROTECTED] - http://www.nextbus.com > My place on the web ---> http://www.users.fast.net/~michael_sinz > >
Re: RMI binding bug
The issue here is that the RMI registy is checking that the client's hostname matches the local hostname on bind() and rebind() calls. In addition the IP addresses are checked for a match. The logic is: InetAddress localhost = InetAddress.getLocalHost(); Class class = Class.forName(new StringBuffer(String.valueOf(RemoteRef.packagePrefix)).append(".UnicastServerRef").toString()); ServerRef serverRef = (ServerRef)class.newInstance(); String clienthost = serverRef.getClientHost(); InetAddress inetAddress = InetAddress.getByName(clienthost); if (!inetAddress.equals(localhost) && !clienthost.equals(localhost.getHostName())) throw new AccessException(string1 + " " + inetAddress + " != " + localhost); So if the hostname *and* the IP address don't match, an exception is thrown. A way to test what's going on here would be to write your own simple RMI service and see what the various values of localhost, clienthost, and their various 'getHostName()' and 'getByName()' values are. mdw
Re: Java programming env (newbie question)
You probably have Kaffe installed, which is a free Java Virtual Machine replacement. mdw Mike Song <[EMAIL PROTECTED]> writes: > Hello all, > > > I installed RH Linux 5.2 and I found that 'javac', 'java' and > 'appletviewer' > are already there and I am able to compile and run simple java programs. > > The question is: > Does this mean that I already have JDK installed? > > Thanks a lot > Mike > >
java/Netscape question
Hi, Is it possible to remove the Save, Send page, Send and View Page Source options from a browser when viewing a page so that the page is totaly secure ? Many thanks Matt
Re: Survey, what tool do you use?
Sze Yuen, Well, There are a few I have tried xemacs with jacob, xelfi this is 100% pure java, and emacs. I have also downloaded javabeans and freebuilder too. Basically there are a great deal of IDE's, if you are stuck for space try xelfi or freebuilder (I have as yet not tried freebuilder or javabeans) but I think that the space required is not to great, the same as xelfi. If any one has used javabeans could they inform me of how I should set it up please, and list the files needed as I have quite afew now, maybe more then I require. If you have lots of space try xemacs and jacob but its big, 180MB in all to build 50MB for the executable. Is very good and like emacs very powerfull, and the users a very helpfull (thanks to everyone who started me off). Other than that 'vi' is a good standard editor. Its a funny thing this IDE thing the only way is to try them out. Good luck. Matt
JDK 1.2 bogus license terms
JDK 1.2 is out, and the license (http://java.sun.com/products/jdk/1.2/LICENSE) contains the following language: > You may not publish or provide the results of any benchmark or comparison > tests run on Software to any third party without the prior written consent > of Sun. This is clearly a problem, and I'm wondering if we should speak to someone at Sun about it. My guess is that this clause isn't even enforceable by law, since publication of benchmark results doesn't appear to infringe on Sun's intellectual property rights in the Java software. Does anyone know of a case where a license restricting benchmark-results publication was successfully enforced in court? Or shot down in court? Matt Welsh
Re: [FYI] Java violates US patent?
Ernst de Haan <[EMAIL PROTECTED]> writes: > Found a link to this article on JavaLobby: > > http://www.pbs.org/cringely/pulpit/pulpit19981203.html > > Could turn out bad. Very bad. Unless it turns out that the patent is ill-founded because Java represents "prior art" in terms of the technology that the patent is claiming. mdw
Re: Segmentation violation with getLocalHost()
Kontorotsui, Was your SuSE version glib, or lib6, or lib5 ? Many thanks Matt (Attempting to get to grips with SuSE too). > Resent-Date: Wed, 9 Dec 1998 05:29:02 -0500 > Date: Wed, 09 Dec 1998 11:04:39 +0100 (MET) > From: Kontorotsui <[EMAIL PROTECTED]> > > The following code: > > --- begin --- > try > { > java.net.InetAddress ia = java.net.InetAddress.getLocalHost(); > } > catch (java.net.UnknownHostException e) > { > // Do something > } > --- end --- > > gives me this: > > --- begin --- > SIGSEGV 11* segmentation violation > stackbase=0xb1f0, stackpointer=0xb0f8 > > Full thread dump: > "Finalizer thread" (TID:0x4065a210, sys_thread_t:0x4139ef04, state:R) prio=1 > "Async Garbage Collector" (TID:0x4065a258, sys_thread_t:0x4137df04, state:R) > prio=1 > "Idle thread" (TID:0x4065a2a0, sys_thread_t:0x4135cf04, state:R) prio=0 > "Clock" (TID:0x4065a088, sys_thread_t:0x4133bf04, state:CW) prio=12 > "main" (TID:0x4065a0b0, sys_thread_t:0x818de00, state:R) prio=5 *current thr > ead* > java.lang.Runtime.loadLibrary(Runtime.java) > java.lang.System.loadLibrary(System.java) > java.net.InetAddress.(InetAddress.java) > NBody.main(NBody.java:57) > Monitor Cache Dump: > java.lang.Runtime@1080418848/1080793064: owner "main" (0x818de00, 1 entry) > Registered Monitor Dump: > Thread queue lock: > Name and type hash table lock: > String intern lock: > JNI pinning lock: > JNI global reference lock: > BinClass lock: > Class loading lock: > Java stack lock: > Code rewrite lock: > Heap lock: > Has finalization queue lock: > Finalize me queue lock: > Dynamic loading lock: owner "main" (0x818de00, 1 entry) > Monitor IO lock: > Child death monitor: > Event monitor: > I/O monitor: > Alarm monitor: > Waiting to be notified: > "Clock" (0x4133bf04) > Monitor registry: owner "main" (0x818de00, 1 entry) > Thread Alarm Q: > Abort > --- end --- > > It's interesting that with my other PC, using a different distribution > (SUSE) but the same JDK (1.1.7v1a) all works. > I suppose there is a system misconfiguration and I'll fix this, but > shouldn't getLocalHost() handle a bit better the problem and send an > exception, instead of crashing? > > > PS: can you guess how does Java tries to get the hostname? > > --- > Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at > University of Pisa - Italy - E-mail: [EMAIL PROTECTED] > My home page: http://www.cli.di.unipi.it/~controzz/intro.html > > Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). > Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... > > +-+ > |. * . | > | .__ . . | > |oq |po _ _| > | / #==>>>==#,-' (_)\ | > | | ,-|~\\ ///_ ,() ,_} | > | | |/|~]]] /// ,-~' .,~ / \| . | > | |\_|_|_\_\~~~~' \ (/|. | > | ./~ \___/ [m] \ \__// | > | _bo..__ // `-,.~~ | > | _-~ 0o.__( . | > | \ o . | > | . (_)00 | > |. \~~~*,,,* ~00 | > |~0 . | > | ~~~---~~ | > | .*| > +-+ > | An e-mail network of Space Cruiser Yamato and | > | StarBlazers Fans | > +-+ >
Re: Segmentation violation with getLocalHost(): SOLVED!
Gosh... Just a lucky educated guess I think. So have you now got lib6 working if so how did you use the SuSE rpm installer, I have only just moved to SuSE. I hope to upgrade to lib6 (glib I think) but am unsure of doing it. How did you do it any others out there have any advise on using it ? Also before someone asks about whats this to do with Java, how are you getting on with Java under linux on SuSE and lib6 (glib) or have I got my libs in a twist ? Is lib6 = glib ? Many thanks Matt > Resent-Date: Thu, 10 Dec 1998 06:01:50 -0500 > Date: Thu, 10 Dec 1998 01:15:39 +0100 (MET) > From: Kontorotsui <[EMAIL PROTECTED]> > > > On 09-Dec-98 Matt Zagni wrote: > >Kontorotsui, > > > >Was your SuSE version glib, or lib6, or lib5 ? > > > > I have the following libs on my SUSE: > > libglib.so.1 > libc.so.6 > libc.so.4.7.2 (old aout) > libc.so.4.7.6 (ELF) > libc.so.5.4.46 > > Here all works ok with the 1.1.7v1a. > > While on my old slackware, I have: > > no glib > libc.so.4.7.6 > libc.so.5.4.46 > > and I have this link: libc.so.6 => libc-2.0.4.so > > > You were right, it was a library problem. I used the SUSE rpm packets to > upgrade the gcc & libs stuff and now all works perfectly. > Thanks. > > --- > Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at > University of Pisa - Italy - E-mail: [EMAIL PROTECTED] > My home page: http://www.cli.di.unipi.it/~controzz/intro.html > > Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). > Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... > > +-+ > |. * . | > | .__ . . | > |oq |po _ _| > | / #==>>>==#,-' (_)\ | > | | ,-|~\\ ///_ ,() ,_} | > | | |/|~]]] /// ,-~' .,~ / \| . | > | |\_|_|_\_\~~~~' \ (/|. | > | ./~ \___/ [m] \ \__// | > | _bo..__ // `-,.~~ | > | _-~ 0o.__( . | > | \ o . | > | . (_)00 | > |. \~~~*,,,* ~00 | > |~0 . | > | ~~~---~~ | > | .*| > +-+ > | An e-mail network of Space Cruiser Yamato and | > | StarBlazers Fans | > +-+ >
Q - Tailing a log that include time
tail -f |grep -n displays a tail with against the line number in the . Q is there any way of displaying the tailing with a system time against the line number in a Java applet, so that the results could be displayed on browser or viewer ? Has anyone got any ideas on how this could be done as a starting block ? Many thanks Matt
RE: Where can I find JAD?
Peter, Yes that is correct I did ask for a copy of JAD and the link on blackdown does not appear to be any good At present, I managed to poke a copy from an old backup 1.5.5.3 like you. Could someone please contact blackdown or the jad developer, this tool is by far one of the best or better Still make the source code available so that the tool can be used/updated. I like many others would hate To see such a good tool lost in time. Many thanks Matt -Original Message- From: INTERNET:[EMAIL PROTECTED] Sent: Sunday, December 20, 1998 4:36 PM To: INTERNET:[EMAIL PROTECTED] Subject:Where can I find JAD? I looked in the archive for this list and found that a Matt Zagni managed to find a copy of JAD. Unfortunately there are no indications of where. I currently have version 1.5.5.3. Is this the latest version? Where can I get the latest version? Many Thanks, and sorry for the re-post. Peter. -- As long as our expression of gratitude is genuine, other people love it and remember it. This not only makes them feel good, but it also encourages them to help us again and to encourage others to do the same. -Richard Carlson, Ph.D.
Re: [ATTENTION]: Mailing List Changes
Is it fairly easy st set up a mailing list then ? How does one do it in linux - for general use ? Matt > Resent-Date: Tue, 12 Jan 1999 10:00:55 -0500 > Date: Tue, 12 Jan 1999 07:10:45 +0800 (WST) > From: John Summerfield <[EMAIL PROTECTED]> > > > > > I'd like to do one of two things with this mailing list, as it's really > > become a significant amount of traffic. Either move it to a newsgroup, > > Too open to spamming (we get too much now) and email-address harvesting. > > > > or move it to a place willing to host the java-linux and java-linux-digest > > lists. The world unfortunately isn't a place of free bandwidth forever > > and I have to make some decisions. > > java-linux is not a high-bandwidth mailing-list. > > I suggest looking at your configuration. I can imagine that if your system > transmits every email individually that your system sees a log of outgoing > traffic. Note that your IAP also sees this same traffic. If you configure > your sendmail to use your IAP's system as a mail relay, your outgoing mail > traffic will diminish enormously at little cost to your IAP. > > The best thing from your pint of view is that the improvement will be > immediate: it can be achieved today (yesterday my time). > > -- > Cheers > John Summerfield > http://os2.ami.com.au/os2/ for OS/2 support. > Configuration, networking, combined IBM ftpsites index. >
O'Reilly Linux Conference Call for Presenters
Hello, I'm the program chair for the O'Reilly Linux Conference (August 21-24, 1999 in Monterey, California). We're looking for talks and tutorials from Linux developers and enthusiasts to present at this conference, and I'd really like to encourage folks on these mailing lists to contribute. All of the information is at http://conferences.oreilly.com or by e-mail at [EMAIL PROTECTED] You can e-mail me if you have any questions or need other details. Thanks much! Matt Welsh, [EMAIL PROTECTED] University of California, Berkeley +1 510 643 7566 (voice) --- Announcement and Call for Invited Talks Linux Conference August 21-24, 1999 Monterey, California http://conferences.oreilly.com Sponsored by O'Reilly & Associates Co-sponsored by Linux International (Confirm with maddog) Invited Talks Committee Matt Welsh, Chair, University of California, Berkeley Jon "Maddog" Hall, Linux International Andy Oram, O'Reilly & Associates Greg Hankins, Georgia Tech Russ Nelson, Crynwr Software Erik Troan, Red Hat Software Overview The O'Reilly Linux Conference will be held August 21-24, 1999 at the Monterey Conference Center in Monterey, California. There will be two days of tutorials followed by a two-day, multi-track conference including sessions for submitted invited presentations on practical and experimental uses of Linux; daily Q and A sessions with leading Linux developers, and evening breakaway sessions for special interest groups. Practical Presentations, Talks, and Panels This is not a traditional solicitation for academic papers. We seek presenters for talks and panels that demonstrate the diversity and strength of Linux. In the practical spirit of Linux, this means not just showing the clever and interesting ways you use Linux, but how your experience and code can help others. We're interested in large stories, small stories, silly hacks, case studies from the trenches ("Introducing Linux in an NT Shop"), philosophical perspectives ("Can Linux replace NT?") and even more traditional computer science pieces ("Distributed Computing with Linux"). We welcome presentations on every aspect of Linux, from new applications to case studies of Linux at work to panels. If you have a use for Linux that saves time, money, and headaches for your and your organization, we would like to hear about it. In short, we encourage submissions that highlight Linux's features and benefits. Some suggestions for talks follow --- but are not limited to these topics. If you've got an idea that will benefit the Linux community, please let us know. * Kernel development and device drivers * Networking and communications * Databases, data mining, and storage management * System and network administration * Programming environments (C, C++, Java, Perl, etc.) * Graphical User Interface toolkits (X11, GTK, KDE, GNOME, ...) * Ports to non-Intel architectures (SPARC, Alpha, PowerPC, ...) * World Wide Web and Internet applications * High-performance and parallel computing (Beowulf, Extreme Linux, ...) * Experiences with Linux: Using Linux for WWW, databases, large installations, enterprise applications, etc. * Philosophical musings on the future and role of Linux What, How, and Where to Submit Speakers should submit an abstract (250 words) and a detailed outline of their talk. The abstract and outline should describe what your talk will be about, and be specific about problems, solutions, and conclusions. Both the abstract and outline will be used together to evaluate talks. All submissions will be held in confidence. Talks that do not include both an abstract and an outline will not be considered. Important deadlines: Submissions:February 15, 1999 Acceptances:February 22, 1999 Camera-ready presentations: June 30, 1999 Each submission must include: 1. An initial page with the: --complete title of the presentation --name and affiliation of a speaker who will be the primary contact --that person's complete contact information including phone, fax, email, postal address, --The names of all other speakers with their affiliations and email addresses B. An abstract as detailed above C. A detailed outline Abstracts should be sent to [EMAIL PROTECTED] Email inquiries should be sent to [EMAIL PROTECTED] Registration Information Complete conference and registration information will be available in mid-April. Keep checking the conference web site for the latest information: http://conferences.oreilly.com/ About O'Reilly & Associates Sponsor of Geekfest, the OpenSource Conference, O'Reilly & Associates is the leading publisher of books for UNIX, X, the Internet, and other open systems, as well as a pioneer in on-line publishing. We also publish the leading web server for Windows NT and Windows 95, and are defining new wa
Plug In
Do you know where I can download the port of the Java Plug-in for Linux? Thanks Matt __ Matt Choate EMail: [EMAIL PROTECTED] Phone: (617)679-5444 Senior Developer Enterprise Applications Group Cambridge Technology Partners 304 Vassar Street Cambridge, MA 02139 http://www.tiac.com/users/choate __
Re: Advanced Java books
O'Reilly has a number of good books on things like Java and distributed computing, the Java Virtual Machine, Java Security, and other low-level gritty topics. Not all of these topics are adequately covered in a single book. mdw Richard Jones <[EMAIL PROTECTED]> writes: > > Hi: > > Can someone on this list recommend a good _advanced_ > Java book.
Re: JDK 1.2 TimeTable Not Possible Yet, Status Report
Kevin, I totaly agree with you and fully appreaciate and am greatful of the work that has has gone into giving the Linux population the JDK's to date (I of cause am looking forward to 1.2), I am sure most of us can cope with using 1.1.7 etc.. for the time being. I am also sure that the porting team are pulling their hair out over 1.2 as I am sure they would like to use it too. All I can say is keep up the good work and place in big bold letters on the linux java pages '1.2 is not yet available'. But if someone out there has sucessfully build a linux jdk1.2 I hope they inform the porting team, so that the team can speed up the offical beta release and with luck stop all these crazy emails. Matt > Date: Wed, 20 Jan 1999 08:22:06 -0500 > To: [EMAIL PROTECTED] > From: "Kevin B. Hendricks" <[EMAIL PROTECTED]> > Subject: JDK 1.2 TimeTable Not Possible Yet, Status Report > > Hi, > > In an attempt to stop the flood of "when will jdk 1.2 be out", here is a > short status report: > > The JDK 1.2 runs "reasonably well" under native threads for x86, PPC and > Sparc. Work on other processors is continuing. BUT there are problems that > need to be resolved before we can ship. The most pressing concern is a > non-obvious problem in native threading (or linuxthreads?) which causes > hangs on single processor machines and seg-faults on SMP machines. This > prevents the JCK from completing which in turn prevents us from shipping it. > > We are attacking the problem in 2 ways. Dr. Phill Edwards, the author of > the 1.1.7 native threads is now looking at it (1.2 and 1.1.7 use different > native_threads implementations). Others are porting/fixing green_threads > to work on JDK 1.2. If we can pass the JCK under green_threads we can ship > and fix the native threads in a later release or visa-versa. > > So we can't actually quote a delivery date. As Steve pointed out, we > *must* pass the JCK *before* we can ship anything!. Until these problems > are solved, we simply can't get the JCK to run to completion without > hanging. > > We are *all* working on the problem and hope to come up with a solution > soon, but we simply can not promise any one date. > > Please be patient. Also, please remember, we are all volunteers with other > "real" jobs that must come first. We are doing our best. > > > > Kevin > > Blackdown Porting Team! > > > > -- > Kevin B. Hendricks > Associate Professor, Operations & Information Technology > School of Business, College of William & Mary > Williamsburg, VA 23187, [EMAIL PROTECTED] > http://business.tyler.wm.edu > >
jdk2.0 (jdk.12) options ?
Hi, Has anyone downloaded the solaris intel version of jdk2.0 Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ? Although the libs look as though they may need connecting together it may work ? I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but my knowedge of libs is not that great linking them etc it may fail but then again it just might work has anyone tried this version of jdk2.0 yet ? Any ideas ? Many thanks Matt ie.. /usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/ ldd appletviewer libthread.so.1 => not found libX11.so.4 => not found libjvm.so => not found libjava.so => not found libdl.so.1 => /lib/libdl.so.1 (0x40004000) libc.so.1 => /lib/libc.so.1 (0x40007000) libx.so.5 => /lib/libc.so.5 (0x40036000) ldd javac libthread.so.1 => not found libjvm.so => not found libjava.so => not found libdl.so.1 => /lib/libdl.so.1 (0x40005000) libc.so.1 => /lib/libc.so.1 (0x40008000) libx.so.5 => /lib/libc.so.5 (0x40037000) ldd java libthread.so.1 => not found libjvm.so => not found libjava.so => not found libdl.so.1 => /lib/libdl.so.1 (0x40004000) libc.so.1 => /lib/libc.so.1 (0x40008000) libX11.so.4 => not found libx.so.5 => /lib/libc.so.5 (0x40037000)
Re: jdk2.0 (jdk.12) options ?
Well, I haven't received any mail from anyone concerning this yet so I imagine you all must be downloading it to try ? Does the original message look like a good possiblity that it may work on Linux ? Any responces ? Matt > Resent-Date: Mon, 25 Jan 1999 04:36:55 -0500 > Date: Mon, 25 Jan 1999 09:34:54 + (GMT) > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > > Hi, > > Has anyone downloaded the solaris intel version of jdk2.0 > Solaris_JDK_1_2_01_dev06_i386.tar.Z from javasoft.com (solaris developers > collection site) yet and attempted to run it under Linux using glib2.0.7pre6 ? > > Although the libs look as though they may need connecting together > it may work ? > > I am running glibc2.0.7 due to staroffice5.0 and Oracle8.0.5 but > my knowedge of libs is not that great linking them etc it may fail > but then again it just might work has anyone tried this version of > jdk2.0 yet ? > > Any ideas ? > > Many thanks > > Matt > > ie.. > /usr/local/jdk1.2/SUNWjvdev/reloc/usr/java1.2/bin/i386/native_theads/ > > ldd appletviewer > libthread.so.1 => not found > libX11.so.4 => not found > libjvm.so => not found > libjava.so => not found > libdl.so.1 => /lib/libdl.so.1 (0x40004000) > libc.so.1 => /lib/libc.so.1 (0x40007000) > libx.so.5 => /lib/libc.so.5 (0x40036000) > > ldd javac > libthread.so.1 => not found > libjvm.so => not found > libjava.so => not found > libdl.so.1 => /lib/libdl.so.1 (0x40005000) > libc.so.1 => /lib/libc.so.1 (0x40008000) > libx.so.5 => /lib/libc.so.5 (0x40037000) > > ldd java > libthread.so.1 => not found > libjvm.so => not found > libjava.so => not found > libdl.so.1 => /lib/libdl.so.1 (0x40004000) > libc.so.1 => /lib/libc.so.1 (0x40008000) > libX11.so.4 => not found > libx.so.5 => /lib/libc.so.5 (0x40037000) > > >
Reminder: O'Reilly Linux Conference Deadline
This is a reminder that the deadline for submissions to the O'Reilly Linux Conference, to be held August 21-24, 1999 in Monterey, California, is: * MONDAY, FEBRUARY 15th, 1999. * We're looking for talks from Linux developers and enthusiasts to present at this conference. We already have a strong tutorial program put together, as well as several good invited speakers (including Eric Raymond and other well-known Linux developers). All of the details are at: http://conferences.oreilly.com You can e-mail me if you have any questions or need other details. Thanks much! Matt Welsh, Program Chair University of California, Berkeley E-mail: [EMAIL PROTECTED] Voice: +1 510 643 7566 --- Announcement and Call for Invited Talks Linux Conference August 21-24, 1999 Monterey, California http://conferences.oreilly.com Sponsored by O'Reilly & Associates Co-sponsored by Linux International (Confirm with maddog) Invited Talks Committee Matt Welsh, Chair, University of California, Berkeley Jon "Maddog" Hall, Linux International Andy Oram, O'Reilly & Associates Greg Hankins, Georgia Tech Russ Nelson, Crynwr Software Erik Troan, Red Hat Software Overview The O'Reilly Linux Conference will be held August 21-24, 1999 at the Monterey Conference Center in Monterey, California. There will be two days of tutorials followed by a two-day, multi-track conference including sessions for submitted invited presentations on practical and experimental uses of Linux; daily Q and A sessions with leading Linux developers, and evening breakaway sessions for special interest groups. Practical Presentations, Talks, and Panels This is not a traditional solicitation for academic papers. We seek presenters for talks and panels that demonstrate the diversity and strength of Linux. In the practical spirit of Linux, this means not just showing the clever and interesting ways you use Linux, but how your experience and code can help others. We're interested in large stories, small stories, silly hacks, case studies from the trenches ("Introducing Linux in an NT Shop"), philosophical perspectives ("Can Linux replace NT?") and even more traditional computer science pieces ("Distributed Computing with Linux"). We welcome presentations on every aspect of Linux, from new applications to case studies of Linux at work to panels. If you have a use for Linux that saves time, money, and headaches for your and your organization, we would like to hear about it. In short, we encourage submissions that highlight Linux's features and benefits. Some suggestions for talks follow --- but are not limited to these topics. If you've got an idea that will benefit the Linux community, please let us know. * Kernel development and device drivers * Networking and communications * Databases, data mining, and storage management * System and network administration * Programming environments (C, C++, Java, Perl, etc.) * Graphical User Interface toolkits (X11, GTK, KDE, GNOME, ...) * Ports to non-Intel architectures (SPARC, Alpha, PowerPC, ...) * World Wide Web and Internet applications * High-performance and parallel computing (Beowulf, Extreme Linux, ...) * Experiences with Linux: Using Linux for WWW, databases, large installations, enterprise applications, etc. * Philosophical musings on the future and role of Linux What, How, and Where to Submit Speakers should submit an abstract (250 words) about the talk and a short biography (a paragraph or so). The abstract should describe what your talk will be about, and be specific about problems, solutions, and conclusions. Both the abstract and biography will be used together to evaluate talks. All submissions will be held in confidence. Talks that do not include both an abstract and a bio will not be considered. Important deadlines: Submissions:February 15, 1999 Acceptances:February 22, 1999 Camera-ready presentations: June 30, 1999 Each submission must include: 1. An initial page with the: --complete title of the presentation --name and affiliation of a speaker who will be the primary contact --that person's complete contact information including phone, fax, email, postal address, --The names of all other speakers with their affiliations and email addresses B. An abstract as detailed above C. A short biography Abstracts should be sent to [EMAIL PROTECTED] Email inquiries should be sent to [EMAIL PROTECTED] Registration Information Complete conference and registration information will be available in mid-April. Keep checking the conference web site for the latest information: http://conferences.oreilly.com/ About O'Reilly & Associates Sponsor of Geekfest, the OpenSource Conference, O'Reilly & Associates is the leading publisher of books for UNIX, X, the Internet, and other open systems, as well as
Re: will there be a jdk 2.x??
I think it would be a terrific idea for the Blackdown web page to have a note explaining the progress of JDK 1.2 (as in "don't ask"). If I get one more message on this list about JDK 1.2 I'm going to explode! mdw Chris Tomlinson <[EMAIL PROTECTED]> writes: > There used to be a note that jdk1.2/2.0 was 'in progress' now that is no > longer there. What is the status for jdk 2.0 for linux?? > > Thanks and ciao, > Christine Tomlinson > >
Re: Linux jdk 1.,2 Jit
Both TYA and the ShuJIT are free JIT's which work with Linux and JDK 1.1 ... I am assuming that porting them to work with JDK 1.2 will not be (too) difficult. [EMAIL PROTECTED] writes: > Will the linux JDK 1.2 port have a JIT supplied with it, or will we > have to use a program like Kaffe ? > > Thanks > > > -- > 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]
green box!
Hi... I am new to the list. Congrats to the porting team on the green box! I think the chart is a good idea to keep us up to date on port progress. Doesn't seem like it would take long to update and it's very clear. Late- Butler [EMAIL PROTECTED]
Re: Don't download JDK1.2src! [Was: Re: JAVA2 source code]
Artur Biesiadowski <[EMAIL PROTECTED]> writes: > I don't think that signing electronic license would stand in any court. > With old licensing scheme, you had to sign it on paper and fax/mail it - > and this oligate you to something, but anybody can click license for me > - these passwords aren't very secure, are they ? This depends on the country you are in, to be sure. In the United States, various rulings have found that such "click-wrap" licenses can either be enforceable or non-enforceable, based on the terms of the license. Don't be so sure that such a license is non-binding. It may very well be. Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 on Linux at Linux World Expo
Yes, folks, it's true -- JDK 1.2 is running on Linux at Linux World Expo, in the Sun booth. I saw it with my own eyes. The Sun rep there said that it hasn't been released yet, but should be Real Soon Now -- meaning this week if at all possible. (Of course, he's not the one who should be making promises, so please don't get distressed if this doesn't actually happen. The key players doing the port are *at* Linux World Expo, apparently, so are busy doing other things at the moment). If you are at Linux World Expo, drop by the Sun booth and stress to the reps there how important Sun's support of Linux and Java is to you. Believe me, making noises at this level will permit something to propagate to higher-ups. Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java 2 initial impressions
Russ Pridemore <[EMAIL PROTECTED]> writes: > - RMI seems to have stopped working. I was able, with 1.1.7, > to run the Swing GUI on a NT machine, talking to the > the rest of the java application on Linux via RMI. The > Sun JDK on NT now complains: > java.rmi.ConnectException: Connection refused to host... This may have to do with the JDK 1.2 "policy" file. RMI has changed in JDK 1.2 to have a stricter security model -- read the information on Sun's website. This is not necessarily the Blackdown team's fault. And, yes, the Invocation API has changed under JDK 1.2. Everyone needs to familiarize themselves with the many changes Sun made in JDK 1.2 -- do not assume that code written for JDK 1.1 (especially if you're using native code, Invocation API, etc.) is going to be all the same. mdw -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Visibroker for Linux and JDK 1.1.6v2 problem
Richard, I hope you don't mind me asking but Where did you download it from, what was the URL ? How much space does it need ? Is it easy to install, what are the procedures you used ? I'm sure loads of people will be interested in this.. Many thanks Matt
Q: Extracting compressed images in java
I have a .gz compressed file that contains .gif images How can I uncompress these files using java/javascript ? Is there an example of java code that I could use for this ? If so please could someone mail it to me. Many thanks Matt
Linux/Java Studio woes
I'm new to this list. If this subject has already been discussed please excuse this. I have installed Sun's Java Studio per instructions on the blackdown site all works fine UNTIL I attempt to Generate anything... It works a bit and then gives me this message: "Generation of the ... failed, please make sure you have permission and space to save the generated code." Well... I've checked permissions and have Megabytes of disk space available. Any ideas? Thanks in advance. /matt
Re: Help mouse X-windows
Juan, Gosh well I had that problem, I used gpm on in the install (mouse setup in text mode (as you log in)). but after a few 4 o'clock mornings I had some email back regarding this problem. (it said - get some sleep) also it mentioned try disabling the gpm from the rc.d dir (rc.local file guess what it worked... #gpm -R -m /dev/mouse -t -ps2 But now I have to get over the other problem my laptop thinks that I have a 800 x 800 screen and not a 800 x 600 (in text mode) but it is ok in XFree86. I think that its the kernel and screen driver being 6A and I need kernel 2.1.x to support this display I think but thats a big jump from 2.0.34 Anyway this is a Java mailing list not a general Linux problem area. So I shall stop there. But if there is any one who could help me with this display problem please email me directly not via the Linux-Java mailing list. Many thanks Matt > From [EMAIL PROTECTED] Tue Sep 1 06:17:17 1998 > Resent-Date: Tue, 1 Sep 1998 01:24:23 -0400 > Date: Mon, 31 Aug 1998 22:05:50 -0700 (PDT) > From: Juan Carlos <[EMAIL PROTECTED]> > Subject: Help mouse X-windows > To: [EMAIL PROTECTED] > Resent-Message-Id: <"pztch2.0.AC5.6Kuwr"@shell> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/1819 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > X-Mime-Autoconverted: from 8bit to quoted-printable by shell.ncm.com id BAA21264 > Mime-Version: 1.0 > Content-Transfer-Encoding: quoted-printable > > Hi friend, > > I have the Linux Slackware 3.5. After of do the X-Windows > configuration (using xf86config), I observe that my mouse don´t work > when I enter at X-Windows system. > > What can I do? > > Thanks for your attention, > > Juan Carlos > > P.D. I have an Graphic Card Trio64V2, an Spacewalker mouse (microsoft > compatible, 3 buttons) and 2 MB of video. > _ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com >
Re: jdk servlets on Linux
Camilo Wilson wrote: > > Using Apache Jserv for servlets does work, but it requires a good dose > of masochism. Much, much easier is to use the Java Web Server from Sun > (free evaluation, under $300), Solaris version. About 1/10 the > configuration time, in my experience. You will need the JSDK classes > from Sun too. > > We have also found Apache Jserv servlets are slower than servlets served > by the Java Web Server on the same box. Probably due to inefficient > communication between Apache and VM (uses sockets). I don't think I'm a masochist, but I found no difficulty in installing Jserv for Apache. I've never used Sun's server so I can't comment on relative speed or simplicity, but I guess I saved myself $300 at least... Matt -- Matt Duckham Department of Geography [EMAIL PROTECTED]University of Glasgow http://m-duckham.geog.gla.ac.uk/~matt Tel:(0141)339 8855 x2228 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Status updates [Was: Re: ...]
I think the more relevant (and pragmatic) question is: What can we do to make the Blackdown team status more visible? Clearly many questions and concerns would be eliminated if the web pages had a regular status update -- this would help you to fend off flames and persistent questions as well. I realize that some effort has gone into this already, but the web pages currently only give the JCK status -- which, as you say, is not the entire story. I'm happy to help out in this regard, e.g., make a "Java porting news" web page with regular updates e-mailed to me from someone on the Blackdown team. It's probably easier for someone on the Blackdown team to maintain such a page, but you may not have the time. Clearly we are all appreciative of what you've done. Most of us are so used to the true "open source" model, however, that the fact that the Blackdown port is going on inside of a black box makes it difficult for people to know what's going on. When things move at "Internet speed", keeping us posted is that much more important. Thanks much! Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Reading from Socket doesn't work?
Apart from the liklihood that there's something wrong in your program, you could try upgrading to a new version of the Linux JDK (1.1.7v1 is the latest in the 1.1 series). Socket reads/writes have always worked for me under Linux. Michael Durket <[EMAIL PROTECTED]> writes: > I'm sure this is a known problem, but I've just started playing with > Java on Linux. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun Bashing 2
I usually can't stand flame bait like this but I wanted to point out one thing. Sun has clearly recognized some of the advantages of the Open Source model, which is the entire reason why they have adopted the 'Sun Community Source License' for a large number of their products -- including the JDK. This link is the paper 'Sun Community Source License Principles' which does a fair job at explaining the motivation behind the license: http://www.sun.com/981208/scsl/principles.html It would behoove one to familiarize oneself with this before ranting on about everything Sun is doing wrong -- there is a lot they're doing right, too. Sun is very concerned with the potential 'splintering' of Java standarization efforts. The idea is that if many offshoots of Java are propagated, this seriously weakens the overall adaptation of Java technology and would become a weak spot in Sun's desire to make Java a universal standard -- thereby allowing stronger market forces (such as Microsoft) to essentially destroy Java once and for all. I think we can all agree that this would be a Bad Thing. So, there is a clear tension between the desire to make Java truly Open Source and the desire to prevent it from fragmenting to the point where its market penetration is weakened. Clearly, as supporters of Java, we should be supportive of both goals. Otherwise it will be all too easy for someone else to come along with a "Java killer" which ends up dominating the market in its place. So, give Sun a little slack. They are making an honest effort to do the right thing. It is far more constructive to work within the framework which they are trying to build, and to provide useful feedback on that framework, than simply "jumping ship" on Sun altogether. That approach can't do anything good for Java in the long run. mdw -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun Bashing 2
Maksim Lin <[EMAIL PROTECTED]> writes: > This I'm afraid makes no sense to me. How does one splinter java by > standardising it ? I'm not saying that I agree with this, either --- I'm only conveying what I believe to be Sun's motivations for maintaining control over Java. mdw -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
HotSpot
Do you plan on porting HotSpot if and when Sun releases the source code? Thanks, Matt Lord -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.1.7v1 and glibc 2.1.1
Red Hat 6.0 comes with glibc 2.1.1. When attempting to run 'java' from the Blackdown jdk 1.1.7v1 release, we get the error message: /tmp/m/jdk1.1.7v1/bin/../bin/i686/green_threads/java: error in loading shared libraries: /tmp/m/jdk1.1.7v1/bin/../lib/i686/green_threads/libjava.so: undefined symbol: _dl_symbol_value In other words, _dl_symbol_value isn't found in the shared libraries for some reason. Under glibc 2.0.7 (from RedHat 5.2) this works fine, and I can see that symbol defined in the shared libs ... but it's not there in 2.1.1 for some reason. Looks like there should be a rebuild of JDK 1.1.7 against the latest glibc? (Yes, I know that JDK 1.2 is out, but we have a need for JDK1.1.7 support.) mdw -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JavaGrande
Hi Java Linuxers, JavaGrande (the ACM Conference on Java for High Performance Network Computing) is in San Francisco today and tomorrow -- see http://www.cs.ucsb.edu/conferences/java99/ for details. I'll be giving a dinner talk tonight on my system for enabling high-performance communication and I/O in Java ("Jaguar"). If anyone on the Java-Linux list is going to be there, I'll be at the conference most of today and tomorrow, and I'd like to meet you! Cheers- Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Arithmetic bug in Linux JDK 1.1.7v3
The following program causes the Linux JDK 1.1.7v3 to crash with a SIGFPE. This is because the x86 causes an arithmetic exception when you divide 0x8000 by -1; the JVM spec, however, says that the result of this should be 0x8000 with NO exception thrown. (The fix is to catch the SIGFPE and tweak the stack with the right value.) The IBM JDK 1.1.6 works correctly in this case. Matt Welsh, [EMAIL PROTECTED] -- public class divtest { public static int divfunc(int x, int y) { return x/y; } public static void main(String args[]) { int i = 0x8000; int j = -1; int k = divfunc(i,j); System.out.println("Result is "+Integer.toHexString(k)); } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdbc and oracle 8.0.5 using jdk1.2
Hi, I have installed java jdk1.2 and oracle 8.0.5 Installed net8 and all is working fine. refed the CLASSSPATH for jdbc as $ORACLE_HOME/jdbc/lib/classes111.zip The java source compiles ok, but when I run the .class file I am getting the following error. Exception in thread "main" java.lang.NoClassDefFoundError: nt Any ideas on how I can correct the problem ? Many thanks Matt --- bash-2.02# java nt Exception in thread "main" java.lang.NoClassDefFoundError: nt By ref the classpath I am getting the following.. bash-2.02# javac -classpath .:/$ORACLE_HOME/jdbc/lib/classes111.zip jj.java bash-2.02# java nt Exception in thread "main" java.lang.NoClassDefFoundError: nt Without the classpath added.. bash-2.02# javac jj.java jj.java:8: Class oracle.jdbc.driver.OracleDriver not found. oracle.jdbc.driver.OracleDriver()); The above result without the classpath was expected, but I just wanted to see what the classpath would be looking for. - Below is the test script. Where is changed to my host name ref'ed in listener.ora Where is changed to my oracle_sid Where is changed to the oracle database password (system = uid and your_password = manager). - import java.sql.*; class nt { public static void main (String args []) throws SQLException { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection conn = DriverManager.getConnection ( "jdbc:oracle:thin:@oracle_host:1521:oracle_sid", "system","your_password"); Statement stmt = conn.createStatement (); ResultSet rset = stmt.executeQuery ( "SELECT name, value FROM V$SYSSTAT"); while (rset.next ()){ System.out.println (rset.getString (1)); System.out.println (rset.getString (2)); } } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JavaWebServer1.1.3 build probs. Now Working
Well the problem is now fixed and the WebServer is ok. A few teething problems on the build but all is working Are there any problems with the Server in general that anyone has found ? I wish to create servlets and connections to Oracle via jdbc. Many thanks Matt - Below are the files for future ref if anyone needs them. - ### # @(#)Makefile.sol 1.11 97/11/06 # # Solaris-specific makefile for building optional native library support. # Use this as a starting point for porting to other UNIX platforms. # REMEMBER THE TABS BETWEEN THE $ signs. # # Path to top of Java Web Server distribution tree TOP = .. # Name of the library we're making (given to System.loadLibrary) LIBNAME = server # Location of Java Developer's Kit (and runtime) JAVA_HOME= # Java runtime flags JAVAH=$(JAVA_HOME)/bin/javah CLASSPATH=$(TOP)/classes:$(TOP)/lib/classes.zip:$(JAVA_HOME)/classes:$(JAVA_HOME )/lib/classes.zip # OS and machine type OS =genunix ARCH = unknown OBJ = $(OS)/$(ARCH) # Preprocessor, compiler, linker, and related flags CC =cc CFLAGS =-shared -fPIC CPPFLAGS = -I$(OS) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(OS) LDFLAGS = #-G -h $(LIBNAME) INSTALL = /usr/bin/install LIBDIR =$(TOP)/lib/$(OBJ) LIBRARY = $(OBJ)/lib$(LIBNAME).so OBJS = $(OBJ)/server.o \ $(OBJ)/UNIXUser.o \ $(OBJ)/UNIXUserEnumeration.o \ $(OBJ)/com_sun_server_ServerProcess.o \ $(OBJ)/com_sun_server_realm_unix_UNIXUser.o \ $(OBJ)/com_sun_server_realm_unix_UNIXUserEnumeration.o default all: $(LIBRARY) $(LIBRARY): $(OBJS) $(LINK.c) -o $@ $(OBJS) $(OBJ)/server.o: server.c $(OS)/com_sun_server_ServerProcess.h $(COMPILE.c) -o $@ server.c $(OBJ)/UNIXUser.o: UNIXUser.c $(OS)/com_sun_server_realm_unix_UNIXUser.h $(COMPILE.c) -o $@ UNIXUser.c $(OBJ)/UNIXUserEnumeration.o: UNIXUserEnumeration.c \ $(OS)/com_sun_server_realm_unix_UNIXUserEnumeration.h $(COMPILE.c) -o $@ UNIXUserEnumeration.c $(OBJ)/com_sun_server_ServerProcess.o: $(OS)/com_sun_server_ServerProcess.c $(COMPILE.c) -o $@ $(OS)/com_sun_server_ServerProcess.c $(OS)/com_sun_server_ServerProcess.c: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) -stubs com.sun.server.ServerProcess $(OS)/com_sun_server_ServerProcess.h: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) com.sun.server.ServerProcess $(OBJ)/com_sun_server_realm_unix_UNIXUser.o: $(OS)/com_sun_server_realm_unix_UNIXUser.c $(COMPILE.c) -o $@ $(OS)/com_sun_server_realm_unix_UNIXUser.c $(OS)/com_sun_server_realm_unix_UNIXUser.c: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) \ -stubs com.sun.server.realm.unix.UNIXUser $(OS)/com_sun_server_realm_unix_UNIXUser.h: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) com.sun.server.realm.unix.UNIXUser $(OBJ)/com_sun_server_realm_unix_UNIXUserEnumeration.o: \ $(OS)/com_sun_server_realm_unix_UNIXUserEnumeration.c $(COMPILE.c) -o $@ $(OS)/com_sun_server_realm_unix_UNIXUserEnumeration.c $(OS)/com_sun_server_realm_unix_UNIXUserEnumeration.c: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) \ -stubs com.sun.server.realm.unix.UNIXUserEnumeration $(OS)/com_sun_server_realm_unix_UNIXUserEnumeration.h: $(JAVAH) -d $(OS) -classpath $(CLASSPATH) \ com.sun.server.realm.unix.UNIXUserEnumeration install: $(LIBRARY) $(INSTALL) -d $(LIBDIR) $(INSTALL) -c $(LIBRARY) $(LIBDIR) clean: rm -rf $(OS) .INIT: -@mkdir -p $(OBJ) .KEEP_STATE: --- /* * @(#)UNIXUserEnumeration.c1.4 97/09/09 * * Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. * * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING * THIS SOFTWARE OR ITS DERIVATIVES. * * CopyrightVersion 1.0 */ #include #include"com_sun_server_realm_unix_UNIXUserEnumeration.h" /* * Native methods supporting the enumeration of user names. * * This uses the standard UNIX/POSIX calls for
Minor jdbc question.
Ok, jdbc works for simple select statements like.. select * from col But how can you pass this statement select count(*) from col or a more complex statement. Many thanks Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Migrating Applets to Servlets
Hi, I think this has been asked before perhaps many times however I am unable to find it in the archive listing. Question. I have an application written in java applets. I would like to migrate it to be a servlet based application however I don't realy wish to rewrite the original app again. Is it possible to easily migrate the applet application over to become a servlet based one ? ie I would like to keep the .class files remotely away from the odd prying eye, so that they can't be de-compiled. If it is could someone please inform me. Many thanks Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Migrating Applets to Servlets
Nathan, > Depends what it does. If it's GUI-intensive, you need to redesign your > UI to work through HTML interactions instead of windows and pointers. What if the application was browser based in the first place would the same apply then ? Many thanks Matt > Date: Mon, 26 Jul 1999 08:46:37 -0700 > From: Nathan Meyers <[EMAIL PROTECTED]> > To: Matt Zagni <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > Subject: Re: Migrating Applets to Servlets > > > Matt Zagni wrote: > > > > Hi, > > > > I think this has been asked before perhaps many times > > however I am unable to find it in the archive listing. > > > > Question. > > > > I have an application written in java applets. > > I would like to migrate it to be a servlet based application > > however I don't realy wish to rewrite the original app again. > > > > Is it possible to easily migrate the applet application over > > to become a servlet based one ? > > Depends what it does. If it's GUI-intensive, you need to redesign your > UI to work through HTML interactions instead of windows and pointers. > > Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JWS on Linux
Adil, About a week ago I posted my results on installing the JavaWebServer1.1.3 it has been done before (My system is running SuSE6.1). I installed a very old installationof JWS on Slackware and SuSE5.3 too (but that was after a major build of the glib libraries). I also posted my patched files too, for future reference. (you will have to midify it with your location of java_home and the jshome too). Try searching in the archive list for the search words of JavaWebServer it will be there. Good luck Matt > Resent-Date: Wed, 28 Jul 1999 06:54:13 -0500 > From: Adil Atilgan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: JWS on Linux > Date: Wed, 28 Jul 1999 14:42:25 +0300 > MIME-Version: 1.0 > Resent-Message-ID: <[EMAIL PROTECTED]> > Resent-From: [EMAIL PROTECTED] > X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/928 > X-Loop: [EMAIL PROTECTED] > Resent-Sender: [EMAIL PROTECTED] > > I am trying to Install Java Web Server on redhat 6.0 . > There is a jwebs-linux.diff file which lets you to use sparc version of > JWS on Linux. > > When applied jwebs-linux.diff file I got an error message . > I am using > patch -p0 < jwebs-linux.diff > > I got an error message of > > can't find file to patch at input line 3 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -- > |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 > |+++ startup_wrapper Thu Mar 5 00:39:06 1998 > -- > > Does anybody succesfully applied JWS on Linux > > TIA > > Adil Atilgan > > > -- > 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: Debugging Native code on Linux
No, 'dbx' is a debugger similar to 'gdb'. It's not a Java debugger like jdb. Under Linux, try using gdb and running the 'debug' version of the JVM (e.g., 'java_g' rather than 'java'). My .gdbinit has the following: set env THREADS_TYPE=green_threads set env JAVA_HOME /home/cs/mdw/src/java/download/jdk117_v3 set env CLASSPATH .:/home/cs/mdw/src/java/download/jdk117_v3/lib/classes.zip set env LD_LIBRARY_PATH .:/home/cs/mdw/src/java/download/jdk117_v3/lib/i686/green_threads exec-file /home/cs/mdw/src/java/download/jdk117_v3/bin/i686/green_threads/java_g This should allow you to say, e.g., (gdb) run MyClass You can also set breakpoints and so forth in your native code, probably by specifying source lines or function names before you run the JVM. Otherwise you could have a native method which has one line: __asm__("int $0x3"); which will cause the program to trap to the debugger where you can set breakpoints, examine state, etc. Of course this isn't useful for debugging Java code -- but a huge help for debugging native code. (I'm using it to debug a JIT compiler which are written as a combination of C and Java!) "Christian Cryder" <[EMAIL PROTECTED]> writes: > Hi folks! > > This one is stumping me: Has anyone been able to debug JNI code on Linux? > I am having absolutely zero success :-/ > > I've been trying to follow the debugging examples in Rob Gordon's > Essential JNI, and can not get any of them to work (on either NT or > Linux). He refers to dbx for Solaris...my install of Linux doesn't have > this. Is this the equivalent of Sun's jdb??? If so, I've been able to run > that and actually load/execute Java classes. The problem appears to be > that its not finding the shared library files when it does a > System.loadLibrary() call. > > The code works fine when I run it normally (ie. outside jdb). > Suggestions? I feel like I'm really close and its bugging me :-) > > Oh to see into that little black box of native code... > Christian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Debugging Native code on Linux II
This is really getting into gdb questions, rather than Java questions. First, it helps if you use both java_g and be sure to compile your native library with gcc -g (so you have debugging information). "Renaming" the library to use the _g suffix isn't the point; such a library is meant to be compiled with the -g option. As I suggested before, you can insert a dummy native method in your code which traps the debugger. Calling this method forces the native code to be loaded, returns you to the gdb prompt, and voila! You can set breakpoints. You can also use the gdb 'load' command to force the symbols for your shared object to be loaded into gdb, allowing you to set breakpoints. Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JWS on Linux
John, Many thanks for replying to my original enquiry, I have since managed to get the server working, however I am still having problems connecting and adding an oracle servlet (using oracle 8.0.5) and adding/registering it to the javaserver. I think mysql databases work fine however I am attempting to use an oracle database. If anyone can help regarding the correct protocols to use and syntax for connecting oracle and an http javawebserver it would be great so that I can use a homepage to query my database. Many thanks Matt > > From: "John N. Alegre" <[EMAIL PROTECTED]> > To: Matt Zagni <[EMAIL PROTECTED]> > Subject: Re: JWS on Linux > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > > There is a link at the blackdown site > > http://www.blackdown.org/java-linux/products.html > > Follow the instructions in the "JavaWebServer" section and it all just works. > > john > > On 28-Jul-99 Matt Zagni wrote: > > Adil, > > > > About a week ago I posted my results on installing the JavaWebServer1.1.3 > > it has been done before (My system is running SuSE6.1). > > I installed a very old installationof JWS on Slackware and SuSE5.3 too > > (but that was after a major build of the glib libraries). > > > > I also posted my patched files too, for future reference. > > (you will have to midify it with your location of > > java_home and the jshome too). > > > > Try searching in the archive list for the search words > > of JavaWebServer it will be there. > > > > Good luck > > > > Matt > > > > > > > >> Resent-Date: Wed, 28 Jul 1999 06:54:13 -0500 > >> From: Adil Atilgan <[EMAIL PROTECTED]> > >> To: [EMAIL PROTECTED] > >> Subject: JWS on Linux > >> Date: Wed, 28 Jul 1999 14:42:25 +0300 > >> MIME-Version: 1.0 > >> Resent-Message-ID: <[EMAIL PROTECTED]> > >> Resent-From: [EMAIL PROTECTED] > >> X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/928 > >> X-Loop: [EMAIL PROTECTED] > >> Resent-Sender: [EMAIL PROTECTED] > >> > >> I am trying to Install Java Web Server on redhat 6.0 . > >> There is a jwebs-linux.diff file which lets you to use sparc version of > >> JWS on Linux. > >> > >> When applied jwebs-linux.diff file I got an error message . > >> I am using > >> patch -p0 < jwebs-linux.diff > >> > >> I got an error message of > >> > >> can't find file to patch at input line 3 > >> Perhaps you used the wrong -p or --strip option? > >> The text leading up to this was: > >> -- > >> |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 > >> |+++ startup_wrapper Thu Mar 5 00:39:06 1998 > >> -- > >> > >> Does anybody succesfully applied JWS on Linux > >> > >> TIA > >> > >> Adil Atilgan > >> > >> > >> -- > >> 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] > > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 02-Aug-99 > Time: 18:44:02 > > This message was sent by XFMail > -- > > > -- > 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: How can I help?
For what it's worth, I've written a Tiff reader in Java. I'd love to 'contribute' it. It would be my first work. Where do I read about how to make it available to anyone who cares? Larry Gates wrote: > ...I don't believe there are any free .MPEG, .avi, or .vivo players > available (mtv has the annoying "register" popup all the time). A > Java class to do this would be really slick. Also, I don't think > there are any open source Java classes to load .tiff or .pnm formats. > ... > -Larry Gates -- Matt Sexton [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bad sync problem??
With an application of this complexity it seems a lot more likely that there is a deadlock or other synchronization bug in your own code, rather than something wrong with the (relatively straightforward) implementation of thread synchronization in the JDK. If you can come up with a simple example program which The fact that you haven't seen this problem under Solaris or WinNT isn't a good argument for a bug in the Linux JDK; these things may be cropping up due to race conditions, or else differing (but correct!) implementations of the threading system. Matt Welsh "R.W. Shore" <[EMAIL PROTECTED]> writes: > I suspect that there's a bad problem with thread > synchronization. Has anybody else seen similar symptoms?? > > Platform: Cyrix M-II running RedHat 6.0 > JDK: 1.1.7 from Blackdown > Green threads, default JIT setting (on?) > Classes compiled with JDK 1.1.6 on a WinNT platform > (VisualCafe) > > Problem: I've got an application that, among other things, > maintains an "event log". Since the log entries can go to > several places, including but not limited to a local file, > and since I didn't want the logging threads to have to wait, > I put the logging into a separate thread. The interface > between the log-maintenance thread and the rest of the app > is a "bucket" object, which is a limited-size FIFO queue. A > thread can put a log request into the bucket; the > log-maintenance thread extracts the request from the bucket, > processes it, and loops back to get the next request. The > bucket uses synchronized blocks with wait() and notifyAll() > calls to coordinate the maintenance thread with the other > threads. This approach has worked fine on WinNT and Solaris > 2.7. > > The first thing I noticed when running the app on the > Blackdown JDK was mysterious hangs. To fix this, I first > inserted some yield() calls outside the synchronized blocks, > after each bucket put and get. This helped but didn't > completely solve the problem. I then modified the > maintenance thread so that it runs at a thread priority of > 1+whatever the default is -- no more hangs. Hmmm... > > Now, the actual environment involves three separate > platforms. Call 'em A, L, and C, where L is the Linux > platform. Platform A sends a request to L via CORBA, which > processes it and sends the result to C. All three platforms > maintain logs of requests. What I'm seeing now is an > occasional double logging on L. That is, A logs requests 1, > 2, and 3; C logs results 1, 2, and 3; but L logs processing > 1, 2, 2, and 3. Keep in mind that I don't see any such > behavior on either WinNT or Solaris. Hmmm... > > I'm concluding that there's something seriously wrong with > thread synchronization, at least on this platform. Proper > synchronization of threads is critical to this application, > and I'm starting to wonder if there are other processing > anomalies on the Linux box that I'm simply not seeing. > Although I haven't made extensive tests, the problem doesn't > appear to be JIT related -- at least, the original app hangs > persisted when I turned the JIT off (java.compiler=NONE). > > My questions include: > > o Has anybody seen similar synchronization behavior? > > o Anybody want to venture an opinion on the likelihood of a > chip-related problem vs a JDK-related one? > > > -- > 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: Windows'98 / Linux disparity.
First off, you have to be running a JIT compiler of some sort -- the standard release of JDK 1.1.7 for Linux does not include a JIT. There are several available (such as ShuJIT and TYA). Amlan Saha <[EMAIL PROTECTED]> writes: > Hi people > > I tried the Java benchmark "Caffeine Mark 3.0" on both a Windows'98 > machine and a Linux machine running the JDK 1.1.7 from SUN. The > configuration for the Linux machine was RedHat 6.0 distribution, > 2.2.6 kernel and running JDK 1.1.7. Both the machines are Pentium > II-300. > > The results are as follows - > > Windows'98 Linux 2.2.6 > == === > Sieve 4710 552 > Loop 18308 440 > Logic 67904 503 > String 4945 910 > Float 7566 439 > Method 7434 501 > Graphics 445 964 > Image177 532 > Dialog 180 122 > > I am at a loss to understand as to why Linux fared so BADLY in > comparison to Windows and also why graphics under Linux is so much > better than under Windows. > > Has anybody done anything similar and any explanations ? > > -amlan. > > -- > Amlan Saha [EMAIL PROTECTED] > [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: Help Support Blackdown
Riyad Kalla <[EMAIL PROTECTED]> writes: > I was sent this by Joel McCarty and think it might be a > good thing for us to sign up and vote "Java-Linux > Blackdown" to a project that we wish to be funded. This would be great, if the Sun Linux port of the JDK were even remotely Open Source! This is not to knock the Blackdown team. I'm just pointing out that Java is *not* Open Source. I would love to see a good, Open Source Java implementation for Linux, but most of the options out there are commercial and use non-Open Source licenses. As such, I believe they are ineligible for support by projects like SourceXchange. I doubt that most people would consider the Sun Community Source License to be Open Source, either. What we really should be doing is lobbying Sun (or other vendors, like IBM) to release their Java implementations as Open Source. Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
oracle/jdbc Image retrival from achive
Hi, This may seem complicated but I would like to retrive a number of images from a zip'ed/jar file where the location and image file is stored in the database. The jdbc/oracle query selects the user, returns the location of the image/photo and the image name. userid = location = /usr/local/image archive = archive.jar image file = photo1.jpg Is it then possible to display the image in a homepage stuctured by the servlet after the image is retrived from the database if so how without storing the image in the oracle database ? Many thanks Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug in v1.1.7_v3 Native Threads?
I have a very simple program which spawns two threads. Running this using native threads on JDK 1.1.7_v3 (Red Hat 6.0 w/glibc 2.1) on a 2-way SMP machine only allows one of the threads to run; the other doesn't even appear to start! Using green threads, one thread always runs while the other is starved. This is "correct" behavior for green threads in this case. However, with native threads one would expect both threads to run simultaneously. Using "top" shows that only one 'java' thread is running; there are multiple additional 'java' threads which are all sleeping. On JDK1.2 and the IBM JDK 1.1.6 this program works correctly, with two running 'java' kernel threads. Could this be a problem with glibc 2.1, or something similar? The program is appended below. Compile and run it with: $ javac TestT.java $ java -native TestT Thanks, Matt Welsh, [EMAIL PROTECTED] -- import java.lang.*; public class TestT implements Runnable { public void run() { int j=0, k=1; System.err.println("Thread " + Thread.currentThread().getName() + " going"); for (int i=0; i<10; i++) { if (i%100 == 0) { System.out.println(Thread.currentThread().getName() + ": " +i); } j= k*i; k+=i; } } public static void main(String args[]) { TestT a1 = new TestT(); Thread foo1 = new Thread(a1, new String("thread 1")); TestT a2 = new TestT(); Thread foo2 = new Thread(a2, new String("thread 2")); foo1.start(); foo2.start(); while (true) { try { Thread.sleep(1000); } catch (Exception e) {} } } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Building JDK 1.2.2 on Linux ?
Hi Steve and the Java-Linux team, We've been running into some strange crashes and native thread problems with JDK 1.2 on a glibc-2.1.1 system (two-way x86 SMP). Since we're completely stuck when things like this break, I decided to go ahead and get the sources for JDK 1.2 from Sun and apply your patches, so I can build my own version from scratch. Having the sources should help us find and fix some of these bugs ourselves, hopefully. The sources I got from Sun were JDK v1.2.2, however, not v1.2, so the patch set from Blackdown did not go in cleanly. I did a bit of work tonight to apply the rejected chunks by hand and the sources are compiling as we speak. I noticed a number of the changes made for Linux to v1.2 have already made their way into the Sun 1.2.2 tree. I got the v1.2.2 sources from Sun because that's all that was offered to me on the website after agreeing to the SCSL. If you know how I can get an older v1.2 tree that would be helpful too. In case I run into problems, have you (or anyone else) tried to port Sun's v1.2.2 tree to Linux? It would save me a lot of effort if I can get the patches. Otherwise, I will send you a new patch set against 1.2.2 sometime very soon (I hope!) Cheers, Matt Welsh, [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Building JDK 1.2.2 on Linux ?
Chris Woods <[EMAIL PROTECTED]> writes: > Excellent! I went that route a couple weeks ago myself, but didn't have > the time to try to make the patches go. If you don't mind, if for > whatever reason you're not able to get the patches up on the > distribution site, would you mind making them available elsewhere? As soon as I have them working I can make them available. I'll let the Blackdown folks advise me on that, since I'm not sure what I'm allowed to post by the SCSL. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Bug in v1.1.7_v3 Native Threads?
"James H. Cloos Jr." <[EMAIL PROTECTED]> writes: > > But 1.1.7_v3 w/ native threads failt to output *anything*. This is exactly the behavior we're seeing - looks like native threads in 1.1.7_v3 are simply broken. Juergen says that he doesn't have this problem with the (yet to be released) 1.1.8 build. It could be that 1.1.7_v3 was compiled against glibc 2.0 and I'm using glibc 2.1. I did manage to compile JDK1.2 (from source!) against Lesstif and it seems to be working fine. We are having some strange crashes in the socket libraries which I hope I can start to debug myself now... Matt Welsh, UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: native threads broken on jdk1.2pre-v2 under SMP
Bart Locanthi <[EMAIL PROTECTED]> writes: > i've been periodically trying out native threads, hoping to get full > usage from an SMP sytem. so far, no luck. finally abstracted the problem > into a simple, repeatable form. > > the following program creates M threads that each make and quit from N > Sockets to an SMTP_HOST. > > java NT SMTP_HOST M N > > it always works, for any M, on a uniprocessor, always fails for M>1 on > SMP, sometimes with a shared library load error (!). This program seems to be demonstrating the same problems we have seen with native threads on JDK 1.2 (which is *different* from the problems we saw with 1.1.7_v3!) Our program, which uses multiple threads and sockets, would often mysteriously lock up, and other times would fail to run at all -- the shared library load error was seen as well. Juergen did tell me that he has made some fixes to socket support in the JDK1.2 native VM which may fix these problems; this has not yet been released, though, so I anxiously await the patch! Cheers, Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: native threads, SIGSTOP, and Invocation API
I had quite a few problems using native threads with JDK 1.1.7v3. These were never resolved but the Blackdown folks said that the forthcoming 1.1.8 release might fix some of the problems. You should be able to use gdb to find out what's going on; you can tell gdb to report the various signals that each thread is receiving. For this you need a VERY RECENT version of gdb which includes Linux Threads support. I use gdb-4.18 which I obtained from the Red Hat "rawhide" archive. Note that this is not a standard gdb 4.18; it includes Linux Threads patches. Since it took me a while to find this I'll put it on my web site here: http://www.cs.berkeley.edu/~mdw/gdb-4.18-4.i386.rpm Using the "handle" command in gdb you should be able to specify whether each signal is reported, blocked, etc. Note that in order to see the signals being delivered to the GC thread, say, you need to be tracing that particular thread; the "info threads" and "thread" command give you a list of threads and allow you to attach to a particular one, respectively. Hopefully this will help you to discover what's going on inside the black box. Good luck! Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Why is Linux thread locking so slow?
Hi folks, I have a simple Java program where 2 threads spin in a tight loop each grabbing the same lock and releasing it. This is on Linux x86 and has been tested using GCJ 2.95.1, Blackdown JDK 1.1.7v3 (native threads), and IBM JDK 1.1.8 (native threads). Note that I am on an SMP system (IBM Netfinity Dual PIII Xeon). When the lock is uncontended, performance is fine: about 2,000 loop iterations per millisecond. But with more than one thread trying to grab the lock, performance decreases considerably: down to 25 or 30 iters/millisecond! Note that GCJ, IBM, and Sun's JDK all exhibit the same performance penalty for contended locks. So I'm thinking this is a Linux Threads issue, not a GCJ issue. However, I can't seem to duplicate the same problem when writing a simple pthreads program in C -- the C program performance doesn't decrease anywhere near as badly as Java. I believe I am using the same locking mechanisms in C as are used in GCJ. I don't know how they are implemented in the Sun and IBM JDK's, but I suspect it's similar. Note also that using Green Threads on the Sun JDK has pretty reasonable performance even in the contended case, as we would expect. Native Threads are the culprit. Both programs are appended below. Can someone shed some light on why contended locks on Linux perform so poorly? Thanks! Matt Welsh, UC Berkeley --- /* TestLock.java * Compile with: gcj -O2 -o TestLock --main=TestLock TestLock.java * Run as: ./TestLock */ import java.lang.*; public class TestLock implements java.lang.Runnable { public Object lock; public TestLock() { lock = new Object(); Thread t1 = new Thread(this); Thread t2 = new Thread(this); t1.start(); t2.start(); } public void run() { int i=0; long before, after; before = System.currentTimeMillis(); while (true) { synchronized(lock) { i++; if (i%10 == 0) { after = System.currentTimeMillis(); printTime(before, after, 10); before = after; } } } } private static void printTime(long long1, long long3, int int5) { long long6 = long3 - long1; double double8 = (double) int5 / (double) long6; double double10 = double8; System.out.println( int5 + " iterations in " + long6 + " milliseconds = " + double10 + " iterations per millisecond" ); } public static void main(String args[]) { TestLock tl = new TestLock(); } } - /* lock-test.c * Compile with: gcc -O2 -o lock-test lock-test.c -lpthread * Run with: ./lock-test */ #define MAX_THREADS 2 #include #include #include pthread_key_t _Jv_ThreadKey; pthread_mutex_t themutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; struct my_starter { void (*method) (void *); int tnum; char *name; }; int my_mutex_lock() { return pthread_mutex_lock(&themutex); } int my_mutex_unlock() { return pthread_mutex_unlock(&themutex); } void *my_start(void *x) { struct my_starter *info = (struct my_starter *)x; pthread_setspecific (_Jv_ThreadKey, info); info->method(info); return NULL; } void print_time(char *name, struct timeval *before, struct timeval *after, int num) { float msec = ((after->tv_sec) - (before->tv_sec)) * 1.0e3; msec += ((after->tv_usec) - (before->tv_usec)) / 1.0e3; fprintf(stderr,"%s: %d iters in %f msec, or %f iters/msec\n", name, num, msec, num/msec); } void *my_threadrun(void *x) { struct my_starter *info = (struct my_starter *)x; int i = 0; struct timeval before, after; fprintf(stderr,"my_threadrun called for %s\n", info->name); gettimeofday(&before, NULL); for (;;) { my_mutex_lock(); i++; if ((i%10) == 0) { gettimeofday(&after, NULL); print_time(info->name, &before, &after, 10); gettimeofday(&before, NULL); } my_mutex_unlock(); } } int main(int argc, char **argv) { int i; pthread_key_create (&_Jv_ThreadKey, NULL); for (i = 0; i < MAX_THREADS; i++) { struct sched_param param; pthread_attr_t attr; struct my_starter *info; pthread_t thread; fprintf(stderr,"CREATING THREAD %d\n", i); param.sched_priority = 0; pthread_attr_init (&attr); pthread_attr_setschedparam (&attr, ¶m); info = (struct my_starter *) malloc (sizeof (struct my_starter)); info->tnum = i; info->method = my_threadrun; info->name = (char *)malloc(80); sprintf(info->name,"thread-%d", i); pthread_create (&thread, &attr, my_start, (void *) info); //pthread_attr_destroy (&attr); } fprintf(stderr,"main() spinning.\n"); for (;;) ; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Why is Linux thread locking so slow?
Juergen, You are absolutely right. This one was staring me right in the face and I didn't even know it; the C program now runs about as badly as the Java program (I suppose this is a good thing, no?) The only change was the do a pthread_join() rather than a busy loop in the main thread. Thanks for the help. Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ddd as a java debugger
> Being something of a doit-yourself type (as I imagine we all are), I'm > still trying to put together a debugging environment that is > 'satisfying'. Although not directly relevant to the Blackdown JDK, GCJ (the Java front-end to GCC) supports Java debugging with GDB. This is amazingly useful: you can debug a Java program with native methods all within the same debugging environment, examine the C->Java stack trace, debug programs which use multiple (native) threads, and so forth. Matt Welsh, UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Const in java
Robert, Since most of your questions are general Java questions and have nothing to do with the Linux port of the JDK, can you please direct them elsewhere? The USENET group comp.lang.java.programmer is probably a good place to ask. Thank you, Matt Welsh, UC Berkeley "Robert Simmons" <[EMAIL PROTECTED]> writes: > This is a multi-part message in MIME format. > > --=_NextPart_000_0552_01BF1593.39A8C1C0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I was always the real proponent of type and instance safety in c++. for = > example.=20 > > class Foo { > private BarClass _bar; > > public const BarClass& getBar(); > public setBar(const BarClass const &bar); > } > > This snippet guarantees that someone doesnt pull a getBar() then set the = > return result. ie:=20 > > void main { >Foo f =3D new Foo(); >BarClass c =3D new BarClass(); >BarClass b =3D g.getBar(); >b =3D c; // DOH we just changed bar inside of the f instance > }=20 > > Also it guarantees the following cant happen:=20 > > Foo::setBar(const BarClass const &bar) { > bar =3D new BarClass(); // DOH, just overwrote the var outside the = > method > } > > Since everything in java is passed by reference this becomes even more = > of an issue.=20 > Therefore can I do the following to achieve the desired safety ?=20 > > class Foo { > private BarClass _bar; > > public final BarClass& getBar(); > public setBar(final BarClass bar); > } > > Thanks for your time. > > --rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: reminder - this list is for Java & Linux
Jacob Nikom <[EMAIL PROTECTED]> writes: > Currently our traffic is not bad at all. We have about 10 - 15 > messages per day. This is not a lot comparing for example with > Java for Media Framework listserver - more than 30 per day. Multiply 10-15 msgs/day with the number of mailing lists I'm on and you have a problem. I'd prefer that the list remain limited primarily to Linux-based Java questions. A good way to limit traffic is not to reply to the entire list when someone asks an off-topic (e.g., generic Java) question. Matt Welsh, UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDBC for mysql?
There is an interface called "mm.mysql.jdbc" at http://www.worldserver.com/mm.mysql/ I've used it and it works well. Matt Welsh, UC Berkeley Brian Gilman <[EMAIL PROTECTED]> writes: > Hello all! > > although this is not *exactly* a java Linux question, I > believe it is close enough.Can someone point me to a mysql driver > for jdbc? Thanks in advance! > > sincerely, > > Brian Gilman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Benchmark results for Linux JVMs (formatted for 70 columns)
> I wonder how much speedup can be achieved by using tools like > Jopt ( http://www-i2.informatik.rwth-aachen.de/~markusj ). Are there any > benchmarks yet? My guess is that all good JIT compilers do pretty advanced optimizations which trump whatever JOpt is doing. In fact, some JIT compilers probably expect that the bytecode they're compiling is *not* pre-treated by a tool such as JOpt, which would make it harder for them to do certain optimizations. So it's possible that JOpt could actually slow things down! Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Urgently Looking for RMIRegistry Implementation
You could borrow the implementation from NinjaRMI, a free "RMI like" package from: http://www.cs.berkeley.edu/~mdw/proj/ninja I think it should be easy to adapt the NinjaRMI Registry implementation to work with Sun RMI. Cheers, Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Segmentation Fault (JDK12pre2/AWT/RedHat6.0)
libpthread.so.0 => libpthread-0.8.so libnss_nisplus.so.2 => libnss_nisplus-2.1.1.so libnss_nis.so.2 => libnss_nis-2.1.1.so libnss_hesiod.so.2 => libnss_hesiod-2.1.1.so libnss_files.so.2 => libnss_files-2.1.1.so librt.so.1 => librt-2.1.1.so libnss_dns.so.2 => libnss_dns-2.1.1.so libnss_db.so.2 => libnss_db-2.1.1.so libnss_compat.so.2 => libnss_compat-2.1.1.so libnss_nis.so.1 => libnss1_nis-2.1.1.so libnss_files.so.1 => libnss1_files-2.1.1.so libnss_dns.so.1 => libnss1_dns-2.1.1.so libnss_db.so.1 => libnss1_db-2.1.1.so libnss_compat.so.1 => libnss1_compat-2.1.1.so libnsl.so.1 => libnsl-2.1.1.so libm.so.6 => libm-2.1.1.so libdl.so.2 => libdl-2.1.1.so libdb.so.2 => libdb1-2.1.1.so libdb.so.3 => libdb-2.1.1.so libcrypt.so.1 => libcrypt-2.1.1.so libc.so.6 => libc-2.1.1.so libSegFault.so => libSegFault.so libNoVersion.so.1 => libNoVersion-2.1.1.so libBrokenLocale.so.1 => libBrokenLocale-2.1.1.so ld-linux.so.2 => ld-2.1.1.so Thankyou kindly for your time. Kind Regards, Matt __ MATT DAVIES Implementation Team Ldr / Project Ldr Global Banking and Securities Transactions mailto:[EMAIL PROTECTED] http:www.gbst.com ph 0412 793 239/07 3331 5666 fax 07 3367 0181 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling shared objects for JNI
> libhwrld.so: HelloWorld.C HelloWorld.h > g++ $(CXXFLAGS) $< -o $@ This isn't the right way to generate a .so file. You need to use the -shared switch on gcc (I presume this is also supported by g++, but you can use gcc to transform a g++-generated .o file into a .so). Matt Welsh, UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Open up the JDK porting effort already!
[EMAIL PROTECTED] (Nelson Minar) writes: > I really don't want to be too critical of Blackdown. They've done a > lot of really good work in a very difficult environment. But the > releases and communication from Blackdown in the past few months have > been pretty bad. We're fairly far behind in ports. Worse, though, is > the lack of communication. We're told a new release is coming out "any > day", then don't hear anything for weeks. I agree. I have felt for a long time that the solution is to do away with the closed porting team, and simply release the JDK source code *and* Linux-specific patches under the SCSL license. That way those of us with a vested interested in getting Java to actually work on Linux can help. I am sure that the participants on this mailing list alone have broad enough experience, and a large enough set of hardware environments, to help develop and test the JDK for Linux. One thing I noticed is that apparently nobody on the Blackdown team has an SMP system, nor are they testing the JDK against big workloads or anything with many threads. The thing is, you can get the JDK 1.2 sources under the SCSL from Sun. And you can get Linux patches from the Blackdown team. But guess what? The two don't go together. The Blackdown patches are against an (apparently unreleased) JDK tree internal to Sun, newer than the one you can get under the SCSL. I tried in vain to merge the JDK sources with the Blackdown patches, but there are too many conflicting changes. This porting effort is clearly not working. It hasn't been working for a long time. If Sun is serious about supporting Java on Linux they'll put the SCSL to the test and use it in this case. Otherwise, everyone will simply jump ship and move over to using IBM's JDKs. I know many already have. Matt Welsh, UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Native vs. green threads
[EMAIL PROTECTED] (Nelson Minar) writes: > > However, I disagree that native threads are required for serious > applications. Green threads work surprisingly well for many > applications. In some, they work better. I recently wrote a spider > program that was invoking another program in a subprocess and blocking > on IO to it. When I had 20 threads (and 20 subprocesses) the green > threads did much better than native threads. That's not entirely > surprising, either. This is all fine and good until you need to exploit an SMP system! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: VMs with processor specific code generation
Wolfgang Hoschek <[EMAIL PROTECTED]> writes: > That's the reason the PentiumIII introduces new helper > instructions for prefetching memory and hiding memory latency. I doubt that many C compilers take advantage of these instructions yet. However, a large number of JIT compilers do in fact perform architecture-specific optimizations - however, perhaps not as esoteric as the ones you are describing. > Seems to indicate that VM vendors are still struggling to > get functionality and stability right, and have not yet found time to > work on important levels of optimization. Not true. I know that the IBM and Sun JIT compilers both do fairly advanced optimizations. The IBM compiler is really impressive; having worked on several JIT compilers myself I can say that they have done considerable work to have it generate extremely efficient code. Also keep in mind that IBM is supporting not only Linux/x86 but about a dozen other platforms as well. It's pretty impressive. You have to remember that optimizations such as inlining and loop unrolling become more complicated in an OO environment, especially with Java. Java raises a number of very interesting optimization challenges, many of which are quite different from their variants in C++ and Smalltalk (not to mention Self, or even C). A lot of the difficulty arises in preserving the exact semantics of the Java programming language, many of the rules you'd really like to bend to get better performance. Sun has occasionally had to revise the JVM spec in order to get it to mesh well with their compilers; for example, the semantics of locks (JVM spec sec 8.13) were changed slightly in the second edition of the JVM spec to accommodate some specific optimizations in HotSpot. The speed of Java code is not entirely based on the efficiency of the code generated by the JIT; it's also a function of thread synchronization, garbage collection and other memory system overhead, traversals to and from native code, and other aspects of the runtime -- most of which are outside of the domain of the JIT. If you are interested in some of these issues, a good source of information are the various white papers by the EVM (Exact VM) team at Sun Labs, as well as earlier work on Self (some of which was done by the same people). Unfortunately there's not much in print about the IBM JIT, although some other interesting problems are dealt with by the IBM Ninja (not to be confused with Berkeley Ninja) and Jalapeno projects, which you can find from the IBM Research web pages. It's unlikely that such a low-level optimization as memory prefetching on the Pentium III can be attributed to much of the performance imbalance between Java and, say, C. There are a lot of other more critical performance problems to solve first. Matt Welsh, [EMAIL PROTECTED] UC Berkeley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]