becoming a member
Hello, What does it take to become a member of the java development team ?
Re: Retrieving a fully qualified hostname under NT
Thanks alot for your help, looks like we've found something which isn't really write-once-run-everywhere like ... I don't like to implement something just because the java-port for a particular OS does NOT do what it should (according to the java-doc getHostName() retrieves the FQHN). For me, this behavior of NT shows at least one of those two things: a) NT is not a _real_ OS b) M$ doesn't like Java (or is Sun doing the port for NT ??) But this belongs to a different list Mark
Re: Two problems. (closing applets)
On Fri, 13 Nov 1998 07:12:00 -0500 Karthik Vishwanath <[EMAIL PROTECTED]> wrote > Hi all, > i am relatively new to Java and i am trying to learn the UI (or > the awt). ... code example removed ... > The code compiles ok, but then when i click on the "Exit" in the > appletviewer i get a load of exceptions thrown. If the System.exit() is > commented out, the applet still does not close. > > 1. how do i terminate an applet? It should terminate if you override the destroy() method and call dispose() in it. I'm not sure if you need to call setVisible(false) and stop(), but it should not hurt. I have an example at http://fieldrep.ed.umuc.edu/~crecord/ Click on the pinball game and verify that the quit button and close buttons work. You can also check out the source of the PinBallGameApplet.java. ... larry arnoldy
Re: Two problems. (closing applets)
On Mon, 16 Nov 1998, Larry Arnoldy wrote: > It should terminate if you override the destroy() method and call > dispose() in it. I'm not sure if you need to call setVisible(false) and > stop(), but it should not hurt. dispose()? I browsed through the api docs and found no reference to dispose()! Regards, -Karthik. +-+ | Karthik Vishwanath, Graduate trainee, | | National Centre for Biological Sciences, TIFR Bangalore, India. | | Ph: (080)344-4062/5615/3035 | Ext:315. | | mail to: [EMAIL PROTECTED]| +-+ Microsoft isn't the answer. Microsoft is the question and the answer is NO.
Re: Two problems. (closing applets)
On Mon, 16 Nov 1998 14:56:58 +0530 (IST) Karthik Vishwanath <[EMAIL PROTECTED]> wrote T > On Mon, 16 Nov 1998, Larry Arnoldy wrote: > > > It should terminate if you override the destroy() method and call > > dispose() in it. I'm not sure if you need to call setVisible(false) and > > stop(), but it should not hurt. > >dispose()? I browsed through the api docs and found no reference > to dispose()! dispose() is a method of the Window class, which is extended by the Frame class. This causes a frame that has been created by an applet to "go away". This is what I use when I have an applet that created a frame. Opps, this may not be the answer to your original question. Sorry. ... larry ... larry
Our Applet crashes on Netscape version 4.06 upwards
Help! I am Newbie on Java-Linux and i have a problem on our Applet, we developed. Under Internet Explorer 4 it runs without problems, on Netscape till version 4.05 also, but under the latest ns versions, it crashes or displays the characters not correctly. Maybe someone has an Idea and may take a look at our applet at: http://www.bl-boerse.de/java/order60.html I would be happy on every hint i can get Greetinx Manuel
Accepting sockets ?
Hi,
I am trying to write a server program that accepts a large number of
socket connection. However, when the number of sockets goes over about
250, the accept call either blocks, or throws an
InvalidArgumentException.
I did wonder if this is related to the maximum number of open file
descriptors allowed ? However, the problem occurs on NT and AIX as well
as Linux.
My server code can be summarized as follows:
import java.util.*;
import java.net.*;
import java.io.*;
public class Serv
{
ServerSocket ss;
public void go() throws IOException
{
ss = new ServerSocket(9876);
int i =0;
Vector v = new Vector();
while (true)
{
System.out.println(">");
Socket cs = ss.accept();
System.out.println("<");
v.addElement(cs);
System.out.println("Accepted " + (i++));
}
}
public static void main(String[] args) throws IOException
{
Serv s = new Serv();
s.go();
}
}
Can anyone suggest what I need to do to address this ? Thanks.
Rob
Re: Linux JDK Bug -
On Sat, 14 Nov 1998, Jim Arlet wrote: > Hello, > > Sorry to have to bother you with support questions, but I am an experienced > Java developer on Solaris, and I have been trying to get your JDK port to > run on my Linux machine, without luck. I have tried both the glibc and > libc5 versions of the JDK, and both have been unsuccessful, yet with > different results. > > My machine is configured as follows: > > Linux version: Red Hat 5.0 (Kernel 2.0.32) > Platform: Intel (P90) > JDK:jdk1_1_6-v2-glibc_tar.gz (first try) > jdk_1_1_7-v1a-libc5-x86_tar.gz (second try) > Path: my_install_dir/bin > > I assume I have glibc, because when I enter the "ls -l /lib/libc.so.*" > command is see the following: You certainly have glibc. I suggest you get ftp://sunsite.unc.edu/pub/Linux/distributions/redhat/contrib/hurricane/i386/jdk-sn-1.1.6-1.2glibc.i386.rpm which should install without any drama. If you have a fast connexion, you could even do this: rpm -i ftp://sunsite.unc.edu/pub/Linux/distributions/redhat/contrib/hurricane/i386/jdk-sn-1.1.6-1.2glibc.i386.rpm If you want online docs, your solaris docs are fine. ps Quite likely you have libc as well: I understand it gets installed as a compatibility measure as glibc isn't binary-compatible with libc. This command will tell you: rpm -q libc glibc and maybe return libc-5.3.12-24 glibc-2.0.7-19 Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index.
Re: Basic installation. Please Help.
On Sun, 15 Nov 1998, Kenny Freeman wrote: > Hi, you have to add the path to the jar files like (for example): > > export > CLASSPATH=$CLASSPATH:/usr/local/swing/swing.jar:/home/freeman/jars/net.jar:etc > > that should work a little better for you (once you've added the path to > each jar you want to use). I do hope someone comes up with a better idea than classpath RSN: mine runs to well over 2K. Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index.
Why no audio player for java-linux?
I was wondering if the Blackdown port for linux supports sound. I have never been able to get a single sound out of java-linux. I am using a debian linux distribution with glibc I have a soundblaster AWE64, but with the basic driver that treats it like an SB16 I am able to hear sound with various command line utilities and netscape plugins. I can dump messages to my audio devices (/dev/dsp and /dev/audio) and get sound I made sure that appletviewer (actually a simlink to .java_wrapper) has setuid root so it can access those devices. >From the properties menu selection I set unrestricted class access I downloaded an example program from O'Reilly's Java Examples In A Nutshell which uses the simple AudioClip.play() to produce a sound. Whenever I run the appletviewer with an applet that uses AudioClip.play() and it comes to to play the clip I get the following message sent to the terminal no audio device audio player exit The applet stops. I suspect this error message means the implementation I have is incapable of producing sound. I cannot find any mention of sound problems with java anywhere on the internet nobody answers any question I post related to this in newsgroups. Any leads would be greatly appreciated! -Chip Grandits
Re: Why no audio player for java-linux?
Absolut Nonsense. Have you tried using one of the examples from the JDK demos, if you downloaded them. I think one of the applets in the Graphics subdirectory has something which plays audio sounds. Is your sound card properly configured. The only game I know that used sound was `XGalaga'. I think the problem lies with your software treating AWE64 as a SB16. It may help to download the latest sound driver that you can get from Open Sound System, then recompile the linux kernel. I think it is `www.opensound.com' Pete __ Reply Separator _ Subject: Why no audio player for java-linux? Author: chipg ([EMAIL PROTECTED]) at lon-mime Date:16/11/98 15:56 I was wondering if the Blackdown port for linux supports sound. I have never been able to get a single sound out of java-linux. I am using a debian linux distribution with glibc I have a soundblaster AWE64, but with the basic driver that treats it like an SB16 I am able to hear sound with various command line utilities and netscape plugins. I can dump messages to my audio devices (/dev/dsp and /dev/audio) and get sound I made sure that appletviewer (actually a simlink to .java_wrapper) has setuid root so it can access those devices. >From the properties menu selection I set unrestricted class access I downloaded an example program from O'Reilly's Java Examples In A Nutshell which uses the simple AudioClip.play() to produce a sound. Whenever I run the appletviewer with an applet that uses AudioClip.play() and it comes to to play the clip I get the following message sent to the terminal no audio device audio player exit The applet stops. I suspect this error message means the implementation I have is incapable of producing sound. I cannot find any mention of sound problems with java anywhere on the internet nobody answers any question I post related to this in newsgroups. Any leads would be greatly appreciated! -Chip Grandits
servlets
Is anyone using servlets with Apache? What documentation is there? Thanks, Mark --
Re: servlets
Try java.apache.org. On Mon, 16 Nov 1998 [EMAIL PROTECTED] wrote: > > Is anyone using servlets with Apache? > > What documentation is there? > > Thanks, > > Mark > -- > > > >
Activator and JDK 1.1.7+TYA?
Hi, I'm probably asking a dumb question, but hope springs eternal...I'm sort of hoping the README isn't up to date... Can Java Activator run on JDK 1.1.7+TYA? (or even without TYA). I don't relish having to have two distinct JDK versions on the same machine, what with all the problems with environment vars pointing to the wrong version. According to the Java Activator README on blackdown: Versions The Runtime-plugin for Linux is available on both glibc and libc5 platforms. The following configurations are absolutely neccessary: glibc Steve Byrne's 1.1.5v5 glibc port of the jdk (jdk1.1.5v5-980311.tar.gz) libc-2.0.6.so libdl-2.0.6.so ld-2.0.6 The output of 'java -version' should return "cls:03/11/11-08:49" n libc5 Steve Byrne's 1.1.5v6 libc5 port of the jdk (jdk1.1.5.tar.gz) libc.so.5.4.44 or greater libm.so.5.0.9 or greater libdl.so.1.8.5 or greater The output of 'java -version' should return "Linux_JDK_1.1.5_v6"
Fantastic Product and Opportunity
Great Product Every Could Use - Consumer, Distributor, & Executive Everyone Can Afford - $21.95 a month Qualifier for Distributors & Executives. Free instant, fully operational, and personalized web page for everyone who signs up. Jump to Executive with a one time enrollment of $150.00, which allows unlimited growth unlimited income potential Strong product, strong company, and unlimited income potential. CHECK IT OUT!!! http://www.globalhealthtrax.com/4432/
Unix Programming Book
I'm looking for good intro book on unix programming. Know anyone that wants to sell one? Any sugestion will be appreciated. thanks
Re: Basic installation. Please Help.
John Summerfield wrote: > On Sun, 15 Nov 1998, Kenny Freeman wrote: > > > Hi, you have to add the path to the jar files like (for example): > > > > export > > CLASSPATH=$CLASSPATH:/usr/local/swing/swing.jar:/home/freeman/jars/net.jar:etc > > > > that should work a little better for you (once you've added the path to > > each jar you want to use). > > I do hope someone comes up with a better idea than classpath RSN: mine runs > to well over 2K. M I've allways wondered why there isn't a JARPATH environment variable (or something of the sort), where each .JAR or .ZIP within is treated as being on the CLASSPATH. This way it wouldn't be neccessary to add new .jar's to your CLASSPATH every time you want to install a new class library or application - just dump it in your JARPATH. On a related note, wouldn't it be nice if compiled runnable/executable classes (those with a main() method) had a different extension to other classes's (lets say .eclass or something). This would be completely transparent as far as the language is concerned and both executable/non-executable classes classes would be treated the same by the VM/classloader. The .eclass extension would allow legacy file managers, etc, to identify runnable classes and associate them with the VM, allowing users to launch them by double-clicking. Perhaps it would also be cool to be able to specify a default runnable class for a .jar file, allowing users to invoke an application (which comes distributed as a .jar) by typing java IMO, the cross-platform capabilities of java are seriously hurt by all the hoops that end-users have to jump through (setting up classpaths, .sh/.bat files, etc) just to get someone elses application to run. Admittedly, java installshield and the like do do a good job of setting this stuff up, but a more general (and built in) solution is required. [ bryce ]
testing
Re: Basic installation. Please Help.
> I do hope someone comes up with a better idea than classpath RSN: mine runs > to well over 2K. 1.2 does not use classpath, praise be. M.
Re: servlets
> Is anyone using servlets with Apache? > What documentation is there? I am, using the JServ module from Apache and the standard Sun docs. Works fine. M.
