Writing A Java Pop Server for Linux

2000-09-08 Thread Santosh Dawara
, although the CLASSPATH variable has been set for the shell. I don't know if they are related. Santosh Dawara

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Hi Yavor and everybody else, Thank you for the detailed replies. Everybody advises writing a script to run the Pop Server, in more detail -> using SysV Script , nohup to dissasociate from the terminal. So heres the framework for the Java Code 1> Bind to the Pop Socket 2> Release Root Prive

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Hi all, In my earlier post I wrote >> > 1> Bind to the System Port I want to listen on > 2> Release Root Priveleges using JNI > 3> Begin accepting Client Connections. > > I have reservations about the steps above , will it really be as secure > as > a C application doing the same thing (ie beco

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Nathan Meyers wrote: > > You use 'forks' in quotes. Are they processes or threads? How were > they created? Proper Linux Processes, If you said "java Helloworld" for the simplest of code , 'ps uax ' will tell you 4 new Processes were Spawned , I am guessing they are for the JVMs Internal book ke

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Santosh Dawara
adir/sun/jd Thank you, that solves the problem, I read up on 'green' after you posted to the list, I used it and viola ... Thanks everybody for the timely Feedback ... Regards, Santosh Dawara Joi Ellis wrote: > > On Thu, 14 Sep 2000, Santosh Dawara wrote: > > > Nat

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Santosh Dawara
ick, because running as -green is not really a solution. Thank you, Santosh Dawara. Nathan Meyers wrote: > > On Thu, Sep 14, 2000 at 04:31:19PM +0200, Juergen Kreileder wrote: > > >>>>> "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes: > >

Re: Runtime.getRuntime().exec(message);

2000-10-05 Thread Santosh Dawara
Hi, What if someone tried a Runtime.getRuntime().exec("java"); ? or Runtime.getRuntime().exec("javac"); I get an IOException for the same. Wheras, native applications (like "ls" and "clear") work fine. Whats the differance between the two calls ? Regards, Santosh. Nathan Meyers wrote: > >

Re: Runtime.getRuntime().exec(message);

2000-10-05 Thread Santosh Dawara
Christopher Smith wrote: > > --On Thursday, October 05, 2000 4:55 PM +0530 Santosh Dawara > <[EMAIL PROTECTED]> wrote: > > What if someone tried a > > Runtime.getRuntime().exec("java"); ? > > or Runtime.getRuntime().exec("javac"); > >

Using AWT Classes on Linux

2000-12-01 Thread Santosh Dawara
Hi, I am having a slight problem with my X Setup, I can't run any of the Java Graphics. Could some one please help ! Regards, Santosh Dawara. The Error is reproduced here => Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using

Re: Using AWT Classes on Linux

2000-12-01 Thread Santosh Dawara
e shell (if it is a bash) before starting the JavaApp. > > Ingo > > On -1 xxx -1, Santosh Dawara wrote: > > > Hi, > > > > I am having a slight problem with my X Setup, > > I can't run any of the Java Graphics. Could > > some one please help ! > &g

Socket Exception out of Nowhere !!

2000-12-11 Thread Santosh Dawara
into a hard loop. So thats not what I want. Regards, Santosh Dawara. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Socket Exception out of Nowhere !!

2000-12-14 Thread Santosh Dawara
use a count to keep track of the number of times it occured. Anyhow, the reason why this happens is still not clear. Someone here must have something to say about this. I have never seen this happen on Windows. Thanks, Santosh Dawara. http://cravelinux.cjb.net Udo K Schuermann wrote: > > I do

JNI Question - I want to open a file for Read/Write

2001-02-07 Thread Santosh Dawara
One more JNI Questions. I am trying to open a file in the usual way, (fopen) However, fopen returns the an unusual NULL. At first I thought I probably did not have permissions. I am sure its not that. Maybe I am not clear as to what JNI can and cannot do. Would anyone be willing to hel

Using A Non-Blocking Connect Call with the Java Native Interface

2001-02-07 Thread Santosh Dawara
o, is a non-blocking connect outside its scope? If that is true, then would there exist some way of doing a non-blocking connect in Java? I am sure I can set a SO_timeout on the read call but can I do the same for connect? Thanks in advance. Regards, Santosh Dawara. http:

Re: JNI Question - I want to open a file for Read/Write

2001-02-15 Thread Santosh Dawara
Hi All, Thank you for replying. > > I am trying to open a file in the usual way, (fopen) > > However, fopen returns the an unusual NULL. At first > > I thought I probably did not have permissions. > > I am sure its not that. > > Check the errno after the fopen(). At least, you'll > no