Re: Java3D and 'main()'

1999-07-08 Thread Rob Nugent

Many thanks to everyone who answered me on this issue. Nathan managed to put me on the
right track:

The window was indeed visible until main() exited (I think I neglected to say this in 
my original post).

I was running with jdk1.2pre1 with green threads. Moving to native threads solved the 
problem, although
I can' explain why. This is a good enough solution for me until I can move to 
RedHat60/glibc2.1/jdk1.2pre2

Again many thanks
Rob

Nathan Meyers wrote:

> Rob Nugent wrote:
> >
> > I am sure that the following is a User Error on my part, but if anyone can explain 
>what I am doing wrong
> > I'd appreciate it:
> >
> > I have a Java3D program that runs just fine on WinNT. All my geometry/behaviours 
>etc are created
> > in a function called init() which is called from the 'main' of my first class.
>
> Has any plausible explanation shown up yet?
>
> You're running under JDK1.2 with native threads? And the application
> window is visible on the display until the unexpected exit?
>
> It might be worth trying green threads (java -green); the reason JDK1.2
> is still pre-release is instability with native threads.
>
> Nathan

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk

1999-07-08 Thread jools enticknap


>Anybody played around with the IBM-JDK for Linux?  I've run one
>test-program that creates 10 threads, allocates an array and puts some
>random numbers in that array.  It seems extremely fast.  It beats kaffe
>(by a large margin) and even the SUN-JDK on Solaris (with a faster
>processor)!
>

Yep, I evaluated it about a week ago. It's VERY fast and pretty reliable.

However it's only 1.1.6 and I really need 1.2 for my work, but I think it 
shows us that IBM is serious about Java.

--Jools


P.S.

Please note that IBM have only appeared to have released a version for glibc 
2.1 NOT 2.0. So don't bother unless you are running suse 6.1 or Redhat 6.0 
or a glibc 2.1 based system.

You can pick it up from;

http://www.alphaworks.ibm.com/tech/linuxjvm





__
Get Your Private, Free Email at http://www.hotmail.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Swing -- AWT dependencies

1999-07-08 Thread jools enticknap

>I was wondering to what extent Swing depends on the native AWT Toolkit in
>the JVM.  In (simplistic) theory the toolkit primarily needs to be able to
>supply a particular platform's implementation of a frame, and a drawing
>surface. In other words, the only heavyweight peers involved are for frames
>and images. Is this the case the way Swing is currently implemented? Is
>there any difference between 1.1 and 1.2 in this respect?
>

This is pretty much correct. The Idea is that AWT only supplies the minimum 
needed from the OS, and Swing then draws the actual components. This is why 
you can have the same look and feel on two different platforms, because the 
underlying OS does not draw the components.

If you have a look at the API docs that come with the JDK, or the swing 
download ( if you are using 1.1 ) you can see what I mean. If you look at 
say JButton;

java.lang.Object
  |
  +--java.awt.Container
  |
  +--javax.swing.JComponent
|
+--javax.swing.AbstractButton
  |
  +--javax.swing.JButton

And then the AWT button.( which is a Native Peer )

java.lang.Object
  |
  +--java.awt.Component
|
+--java.awt.Button

Regards

--Jools


__
Get Your Private, Free Email at http://www.hotmail.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk

1999-07-08 Thread Justin Lawler

how would you go about upgrading from glibc 2.0 to 2.1.
(it is glibc2.0 in redhat5.1, is it?) and is it a trivial matter,
or can it be very messy? I'm relatively new in Linux.

thanks.

Justin.

jools enticknap wrote:

> >Anybody played around with the IBM-JDK for Linux?  I've run one
> >test-program that creates 10 threads, allocates an array and puts some
> >random numbers in that array.  It seems extremely fast.  It beats kaffe
> >(by a large margin) and even the SUN-JDK on Solaris (with a faster
> >processor)!
> >
>
> Yep, I evaluated it about a week ago. It's VERY fast and pretty reliable.
>
> However it's only 1.1.6 and I really need 1.2 for my work, but I think it
> shows us that IBM is serious about Java.
>
> --Jools
>
> P.S.
>
> Please note that IBM have only appeared to have released a version for glibc
> 2.1 NOT 2.0. So don't bother unless you are running suse 6.1 or Redhat 6.0
> or a glibc 2.1 based system.
>
> You can pick it up from;
>
> http://www.alphaworks.ibm.com/tech/linuxjvm
>
> __
> Get Your Private, Free Email at http://www.hotmail.com
>
> --
> 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: IBM-jdk

1999-07-08 Thread Chris Woods

jools enticknap <[EMAIL PROTECTED]> writes:
> P.S.
> 
> Please note that IBM have only appeared to have released a version for glibc 
> 2.1 NOT 2.0. So don't bother unless you are running suse 6.1 or Redhat 6.0 
> or a glibc 2.1 based system.

Hmm, this is not what I would think, since I'm running a glibc2.0 Red
Hat 5.2 system, and the jdk worked. I only tested it a little bit, since 
I also need 1.2, but it did work.

.c.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to detect a "blank" line.

1999-07-08 Thread Matthias Pfisterer

Hi,

In your java program, exchange the line
if (s1.charAt(0)!='#') { // not a comment or NULL line
with
if (s1.equals("") || s1.charAt(0)!='#') { // not a comment or NULL line

Explanation:
You get empty lines as empty strings from readLine(). So you first have
to check whether the string s1 is empty. This is done with
s1.equals(""). If this yields true, the evaluation of the conditionalin
the if-statement is terminated, you get true. I the string is not empty,
the evaluation is continued. Now, that you know that the string is NOT
empty, you can check for the first character. If you try to check the
first character without knowing for shure that the string is not empty,
this will throw errors, since empty strings have no characters.

I didn't investigate your C programm. I suppose it has a simular
mistake. If you can't figure out yourself, please mail again.


Matthias Pfisterer



Chien-Lung Wu wrote:
> 
> Hi,
> 
> The code in JAVA is as following:
> [...]
 
> C.L.
> 
> On Wed, 7 Jul 1999, Matthias Pfisterer wrote:
> 
> > Please show us the code you used. That would make it much easier to
> > understand your problem and to help you.
> >
> > Matthias Pfisterer
> >
> >
> > Chien-Lung Wu wrote:
> > >
> > > Hi,
> > > I try to read in a text file like follow,
> > >
> > > # comments
> > > #
> > > line1 with information
> > > line2 (blank)
> > > line3 with information
> > > line4 (blank)
> > > # comments
> > > #comments
> > >
> > > I write my program in C  and also try to use JAVA. One thing very
> > > interesting is my program can read-in this text file line by line (ether
> > > in C or in JAVA) if no any blank line. If I edit the text file with some
> > > blank line, I ether can not trin this line out (in C) or I get a error
> > > message " line out of range". How can I detect a blank line and trim it
> > > out?
> > >
> > > Any suggestion will be appreciated. Thanks,
> > >
> > > C.L.
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> 
> 
> Chien-Lung Wu   [EMAIL PROTECTED]
> Graduate Student of ECE (O) 919-513-1894
> at North Carolina State University  (H) 919-233-6724
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk

1999-07-08 Thread jools enticknap


>how would you go about upgrading from glibc 2.0 to 2.1.
>(it is glibc2.0 in redhat5.1, is it?) and is it a trivial matter,
>or can it be very messy? I'm relatively new in Linux.

It's not for the faint hearted, and it can get a bit messy.
Use a 2.1 based distribution if you can.

Check out the news groups for more information..

Regards

--Jools



__
Get Your Private, Free Email at http://www.hotmail.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk

1999-07-08 Thread Thomas M. Sasala

Justin,
I recently upgraded a RH 5.1 system to RH 6.0
without too much difficultly.  I sort of did the brute force
method.  I downloaded all the new RPMs and then installed them 
one by one, saving most of the libs for last.  Then I 
quickly rebooted.  Aside from a small networking problem,
things seem to work fine.  I did have to download a new
version of JDK though.  YMMV.

Also, I chose to install many of the RPMs,
rather than upgrade them.  That way the old versions
where still around (but most of them where unusable).
Use rpm -ih instead of rpm -Uh.

I am sure there is an easier way to do it.

-Tom

Justin Lawler wrote:
> 
> how would you go about upgrading from glibc 2.0 to 2.1.
> (it is glibc2.0 in redhat5.1, is it?) and is it a trivial matter,
> or can it be very messy? I'm relatively new in Linux.
> 
> thanks.
> 
> Justin.
> 

-- 
+---+
+  Thomas M. Sasala, Electrical Engineer   [EMAIL PROTECTED]   +
+  MRJ Technology Solutionshttp://www.mrj.com   +
+  10461 White Granite Drive, Suite 102(W)(703)277-1714 +
+  Oakton, VA   22124  (F)(703)277-1702 +
+---+


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Running Java app in non X environment

1999-07-08 Thread Robbie Baldock

Nathan Meyers wrote:

> Here's a possible (but problematic) CGI script:

Thanks very much for the detailed help.

> The problems?
> 1) Very expensive to start all this stuff up every time you need to do
> CGI.
> 2) Only one server can run at a time for a given display address (:0,
> :1, etc.); you'll have problems with two simultaneous requests.

In this particular implementation these aren't problematic as it's going
to be used in an admin section of a website and will only be used by one
person.

> 2) If you can find a way to support servlets in your web 
> server, you'll see a drastic speed improvement over having to 
> exec a java interpreter for every request.

I'm probably going to move it over to a servlet form if I can get it
working this way.  My only concern then is that presumably the servlet
will still require some sort of X emulator to be running?


Robbie


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk

1999-07-08 Thread yves

You can upgrade to glibc 2.1 from redhat 6.0 with rpm but you should be
carefull. When there is some problem while installing and you end up with
a half-installed glibc then your system will become unusable. Especially
when you're new fixing such system is not trivial and it would be better
to upgrade to the whole redhat 6.X using the installer.

-Yves

On Thu, 8 Jul 1999, Justin Lawler wrote:

> how would you go about upgrading from glibc 2.0 to 2.1.
> (it is glibc2.0 in redhat5.1, is it?) and is it a trivial matter,
> or can it be very messy? I'm relatively new in Linux.
> 
> thanks.
> 
> Justin.
> 
> jools enticknap wrote:
> 
> > >Anybody played around with the IBM-JDK for Linux?  I've run one
> > >test-program that creates 10 threads, allocates an array and puts some
> > >random numbers in that array.  It seems extremely fast.  It beats kaffe
> > >(by a large margin) and even the SUN-JDK on Solaris (with a faster
> > >processor)!
> > >
> >
> > Yep, I evaluated it about a week ago. It's VERY fast and pretty reliable.
> >
> > However it's only 1.1.6 and I really need 1.2 for my work, but I think it
> > shows us that IBM is serious about Java.
> >
> > --Jools
> >
> > P.S.
> >
> > Please note that IBM have only appeared to have released a version for glibc
> > 2.1 NOT 2.0. So don't bother unless you are running suse 6.1 or Redhat 6.0
> > or a glibc 2.1 based system.
> >
> > You can pick it up from;
> >
> > http://www.alphaworks.ibm.com/tech/linuxjvm
> >
> > __
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> > --
> > 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]
> 
> 

=
First, they ignore you.
Then they laugh at you.
Then they fight you.
Then you win.
  -- M. Ghandi


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to detect a "blank" line.

1999-07-08 Thread Larry Gates


>Date: Thu, 08 Jul 1999 12:48:49 +0200
>From: Matthias Pfisterer <[EMAIL PROTECTED]>
>
>Hi,
>
>In your java program, exchange the line
>   if (s1.charAt(0)!='#') { // not a comment or NULL line
>with
>   if (s1.equals("") || s1.charAt(0)!='#') { // not a comment or NULL line


or it could be a return character? Then, you would need

if (s1.equals("\n") || s1.charAt(0)!='#') { // not a comment or NULL line

-Larry Gates


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Peter Pilgrim

It is been well over 6 months since we have seen Java 2.
It has been available for Solaris and Windows (NT) since the launch,
but linux is faltering still not released yet. I presume this is
the status for other platforms like hp-unix, aix, apple etc.

I am wondering if Sun has overstretch itself in trying to develop so
many APIs? It seems to me that they are struggling and there is enough
support and help to help outsiders (like Blackdown who done an excellent
job porting the software)? 

I wonder what the mailing list thinks about this?
Whats changes are needed to bring JDK 1.2 and other core or extended
api to the mass audience quicker?

-- 

Cheers
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
"Old Trafford, the theatre of dreams (that finally came true)."


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Oliver Fels

At Thu, 08 Jul 1999 Peter Pilgrim wrote:
>It is been well over 6 months since we have seen Java 2.
>It has been available for Solaris and Windows (NT) since the launch,
>but linux is faltering still not released yet. I presume this is
>the status for other platforms like hp-unix, aix, apple etc.

AFAIK, IBM has a JAVA2 beta for AIX and I'll bet the final will be out soon.
Apple is still recovering from Microsoft dropping support for MRJ, so they had
terrible problems in delivering a stable 1.1 release.
According to some Apple guy I talked to at JavaONE, Apple still concentrates
finishing 1.1 support and will start Java2 support later on.

>I am wondering if Sun has overstretch itself in trying to develop so
>many APIs? It seems to me that they are struggling and there is enough
>support and help to help outsiders (like Blackdown who done an excellent
>job porting the software)? 
IMHO the JDK has reached a stage in which it wont be extended a lot more.
SUN is now concentrating on the enterprise and embedded versions, so it is
easier for porters to keep track.
SUN is no charity organisation, so they are still looking how to get some bucks
out of the technology. They won't help eg IBM or HP or even Apple finishing
their JRE, as those directly compete with SUN in the Server market.
It would be a consequent step if they started charging the enterprise edition
(though it is not propable).
Delivering a complete solution makes it also difficult for other technologies
to keep track (eg. Microsofts COOL technology) and gives more reasons using
JAVA instead of some other architectures.

I don't think they will continue spitting out so many different new APIs and
concentrate on finishing and supporting the existent ones.

Oliver 

--
___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security |
Friedrichshafen, Germany   | 
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Martin Schröder

On 1999-07-08 14:19:44 +0100, Peter Pilgrim wrote:
> It is been well over 6 months since we have seen Java 2.
> It has been available for Solaris and Windows (NT) since the launch,
> but linux is faltering still not released yet. I presume this is
> the status for other platforms like hp-unix, aix, apple etc.

I just checked:
- IBM: <= 1.1.8
- Compaq: 1.2.1 for True64, 1.1.8 else
- HP: 1.1.7
- IRIX: 1.1.6 released; 1.2.1 developer
- MacOS: 1.1.7
- SCO: 1.1.7
- Linux: You know it. :-{
- FreeBSD: 1.1.8
- NetBDS: 1.1.6
- BS2000: 1.1

Most of them have announced Java2 for 1999.

Seems that Java2 runs only on Solaris, W$, Linux, True64 and IRIX. :-(

BTW: I'm missing Linux at 
   http://java.sun.com/cgi-bin/java-ports.cgi?other=true

Best regards
   Martin
-- 
  Martin Schröder, [EMAIL PROTECTED]
ArtCom GmbH, Grazer Straße 8, D-28359 Bremen
   Voice +49 421 20419-44 / Fax +49 421 20419-10

 PGP signature


Exception in jdb (jdk1.2)

1999-07-08 Thread wchang

I installed jdk1.2 v2 on RH6 and everything worked until I tried jdb.
It (jdb) kind of worked if I did not set any break points. (the program
prints "Hello world" then exits, but jdb reports "1" is not a valid
thread id)  If I set a break point (stop in test.main) then run, the
following error occurs:

Breakpoint hit: [Internal debugger error: unexpected eof]
java.lang.InternalError
at sun.tools.debug.RemoteAgent.error(RemoteAgent.java:1409)
at sun.tools.debug.RemoteAgent.getReply(RemoteAgent.java:553)
at sun.tools.debug.RemoteAgent.dumpStack(RemoteAgent.java:691)
at sun.tools.debug.RemoteThread.getStack(RemoteThread.java:278)
at sun.tools.debug.RemoteThread.dumpStack(RemoteThread.java:129)

at sun.tools.ttydebug.TTY.breakpointEvent(TTY.java:80)
at sun.tools.debug.AgentIn.run(AgentIn.java:75)
at java.lang.Thread.run(Thread.java:479)
Reaped pid = 5580, status = 0
[Internal debugger error: unexpected eof]
Exception in thread "main" java.lang.InternalError
at sun.tools.debug.RemoteAgent.error(RemoteAgent.java:1409)
at sun.tools.debug.RemoteAgent.getReply(RemoteAgent.java:553)
at sun.tools.debug.RemoteAgent.listThreads(RemoteAgent.java:640)

at
sun.tools.debug.RemoteThreadGroup.listThreads(RemoteThreadGroup.java:66)

at sun.tools.ttydebug.TTY.indexToThread(TTY.java:35)
at sun.tools.ttydebug.TTY.setThread(TTY.java:260)
at sun.tools.ttydebug.TTY.run(TTY.java:322)
at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1578)
at sun.tools.ttydebug.TTY.(TTY.java:1680)
at sun.tools.ttydebug.TTY.main(TTY.java:1809)

Can anyone help?

Walter



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Java3D and 'main()'

1999-07-08 Thread Nathan Meyers

Rob Nugent wrote:
> 
> Many thanks to everyone who answered me on this issue. Nathan managed to put me on 
>the
> right track:
> 
> The window was indeed visible until main() exited (I think I neglected to say this 
>in my original post).
> 
> I was running with jdk1.2pre1 with green threads. Moving to native threads solved 
>the problem, although
> I can' explain why. This is a good enough solution for me until I can move to 
>RedHat60/glibc2.1/jdk1.2pre2
> 

This is comforting in a troubling sort of way :-). I had hoped moving to
green threads would solve the problem, and ended up having it backwards.
Apparently, the AWT threads are being started... yet the application
terminates when the main thread ends. Sounds buggy to me. Has anyone had
an opportunity to try this under pre2?

Nathan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Rob Nugent

According to the following:

http://www.ibm.com/java/jdk/other/portingplans.html

IBM's GA date for JDK1.2 on AIX  isn't until December 1999.

Rob

Oliver Fels wrote:

> At Thu, 08 Jul 1999 Peter Pilgrim wrote:
> >It is been well over 6 months since we have seen Java 2.
> >It has been available for Solaris and Windows (NT) since the launch,
> >but linux is faltering still not released yet. I presume this is
> >the status for other platforms like hp-unix, aix, apple etc.
>
> AFAIK, IBM has a JAVA2 beta for AIX and I'll bet the final will be out soon.
> Apple is still recovering from Microsoft dropping support for MRJ, so they had
> terrible problems in delivering a stable 1.1 release.
> According to some Apple guy I talked to at JavaONE, Apple still concentrates
> finishing 1.1 support and will start Java2 support later on.
>
> >I am wondering if Sun has overstretch itself in trying to develop so
> >many APIs? It seems to me that they are struggling and there is enough
> >support and help to help outsiders (like Blackdown who done an excellent
> >job porting the software)?
> IMHO the JDK has reached a stage in which it wont be extended a lot more.
> SUN is now concentrating on the enterprise and embedded versions, so it is
> easier for porters to keep track.
> SUN is no charity organisation, so they are still looking how to get some bucks
> out of the technology. They won't help eg IBM or HP or even Apple finishing
> their JRE, as those directly compete with SUN in the Server market.
> It would be a consequent step if they started charging the enterprise edition
> (though it is not propable).
> Delivering a complete solution makes it also difficult for other technologies
> to keep track (eg. Microsofts COOL technology) and gives more reasons using
> JAVA instead of some other architectures.
>
> I don't think they will continue spitting out so many different new APIs and
> concentrate on finishing and supporting the existent ones.
>
> Oliver
>
> --
> ___
> Oliver Fels| e-mail:
> Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
> Team Manager JAVA-/IT-Security |
> Friedrichshafen, Germany   |
> ---
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



JAVA multithread questions.

1999-07-08 Thread Chien-Lung Wu


Hi,

I am doing java networking program. Since my project have a little trick
architecture, I am planning to use JAVA as my design language.

The Questions are:
1. one of my machine called PS have to connect to 3 different servers (R1,
R2, and R3) to collect info. So PS have to make connect with R1, R2, and
R3. I want PS to connect Servers independently, that means, the
connection is concurrent, not sequence. How can I do that?

2. I think PS is a very important part in my project. As I mentioned on 1.
PS is a client to communicate with 3 servers. However, PS is also a serevr
to be trigger by Q. How can I deal with this situation? Is JAVA
multithread can solve my question?



The configuration I try to solve is as following.


 +-<-->R1
/   
Q<-> PS-<---> R2
\
 +---<---> R3

How can I use java multithread to desigm my program, such that PS can
communicate with R1, R2, and R3 respectly, and PS also can receive Q's
triger to satisfy Q's request?

Can anyone give me some hints or guideline to do it? Do anyone can point
out some material about JAVA multithread and java network programming?

Any suggestion will be appreciated.


C. L.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread jools enticknap

>I am wondering if Sun has overstretch itself in trying to develop so
>many APIs? It seems to me that they are struggling and there is enough
>support and help to help outsiders (like Blackdown who done an excellent
>job porting the software)?



Perhaps this is a direct result of trying to bring an open technology to 
market, and at the same time protect the one thing that makes Java useful in 
the first place (write once, run everywhere(TM)).

Also once a technology is invented it needs time for the comunity to 
evaluate and comment on whats been done, and these comments must also be 
evaluted and the next step then taken.

This all takes time, however I for one and happy this does take place.

As for porting assistance, I think that you will find that SUN has __very__ 
close links with the blackdown guys and do offer help when it's requested.


 ( for what it's worth )

Regards

--Jools


__
Get Your Private, Free Email at http://www.hotmail.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Debugging Java on Linux

1999-07-08 Thread Christian Cryder

Hi all,

Can anyone offer any pointers on debugging on Linux? I'm coming from the NT
/ GUI Debugger world and am not real familiar with Sun's command line
alternative. Basically, I'm looking for something can debug native and
optionally has a nice gui.

Suggestions?

TIA,
Christian

Christian Cryder
Software Engineer - UHR Infrastructure
REALM Information Technologies -  http://www.realminfo.com
Adventures in UHR - http://realm.granitepeaks.com
Plugin Version Control for Java (PVCj 1.0) - http://www.pssg.com/pvcj

 "What a great time to be a geek"



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: JAVA multithread questions.

1999-07-08 Thread Alex M.

You create threads by making classes that implement runnable or extend
thread.  Calling .start() on those classes will make the code in the run()
method of those classes execute in a new thread.  So, that code should be
your network connecting code.

Good place to start is java.sun.com, follow the link to the Java Tutorial,
there is a section on threading that walks you through the basics.

Good luck!

On Thu, 8 Jul 1999, Chien-Lung Wu wrote:

> 
> Hi,
> 
> I am doing java networking program. Since my project have a little trick
> architecture, I am planning to use JAVA as my design language.
> 
> The Questions are:
> 1. one of my machine called PS have to connect to 3 different servers (R1,
> R2, and R3) to collect info. So PS have to make connect with R1, R2, and
> R3. I want PS to connect Servers independently, that means, the
> connection is concurrent, not sequence. How can I do that?
> 
> 2. I think PS is a very important part in my project. As I mentioned on 1.
> PS is a client to communicate with 3 servers. However, PS is also a serevr
> to be trigger by Q. How can I deal with this situation? Is JAVA
> multithread can solve my question?
> 
> 
> 
> The configuration I try to solve is as following.
> 
> 
>+-<-->R1
>   /   
>   Q<-> PS-<---> R2
>   \
>+---<---> R3
> 
> How can I use java multithread to desigm my program, such that PS can
> communicate with R1, R2, and R3 respectly, and PS also can receive Q's
> triger to satisfy Q's request?
> 
> Can anyone give me some hints or guideline to do it? Do anyone can point
> out some material about JAVA multithread and java network programming?
> 
> Any suggestion will be appreciated.
> 
> 
> C. L.
> 
> 
> --
> 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 Java on Linux

1999-07-08 Thread Alex M.

Well, JDE for emacs is supposed to have a nice debugger interface, but I
haven't used it.  If you are coming from the windows GUI world, you would
probably like the JDE.  It's on the third party java-linux tools on
blackdown's page.

On Thu, 8 Jul 1999, Christian Cryder wrote:

> Hi all,
> 
> Can anyone offer any pointers on debugging on Linux? I'm coming from the NT
> / GUI Debugger world and am not real familiar with Sun's command line
> alternative. Basically, I'm looking for something can debug native and
> optionally has a nice gui.
> 
> Suggestions?
> 
> TIA,
> Christian
> 
> Christian Cryder
> Software Engineer - UHR Infrastructure
> REALM Information Technologies -  http://www.realminfo.com
> Adventures in UHR - http://realm.granitepeaks.com
> Plugin Version Control for Java (PVCj 1.0) - http://www.pssg.com/pvcj
> 
>  "What a great time to be a geek"
> 
> 
> 
> --
> 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 Java on Linux

1999-07-08 Thread Peter Eddy


You might also want to look at DDD, an X GUI wrapper for many different
debuggers.  Recent versions have support for Java/jdb.  I've had success
with small programs but it or jdb chokes on my approximately 2000 file
source tree.  You should be able to find DDD at http://www.freshmeat.net

Peter

Christian Cryder wrote:
> 
> Can anyone offer any pointers on debugging on Linux? I'm coming from the NT
> / GUI Debugger world and am not real familiar with Sun's command line
> alternative. Basically, I'm looking for something can debug native and
> optionally has a nice gui.
> 
> Suggestions?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Alexander Schatten

I guess this is a necessary policy. If sun would not offer JDBC 2,  3D api, RMI,
... these technology would be developed from a third party as they are demanded.
the consequence would be a drifting of Java to a lot of different systems. then
you could finally forget the write once run everywhere strategy, which has
enough problems right now.

btw. I am quite happy about that, as the sun components are of high quality as
far as I see it. I guess everybody who tried the horrible components from KGroup
(JBuilder 1) e.g. table and compares them with Swing tables will understand
this.


Alex




Dipl.Ing. Alexander Schatten
Email: [EMAIL PROTECTED]
URL: http://www.bigfoot.com/~AlexanderSchatten
Address: Gallitzinstr.7-13/7/71160 Vienna/Austria
Tel: +43 1 914 29 84   FAX: +49 89 666 176 2292





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IBM-jdk Where can I get it

1999-07-08 Thread sgee


Where can I download the JDK from IBM for Linux?


_
Steve Gee
Java Developer
Maxor National Pharmacies
Information Technologies

[EMAIL PROTECTED]
806.324.5540
www.maxor.com
806.324.5400


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: IBM-jdk Where can I get it

1999-07-08 Thread Aravind Selvaraje


http://www.alphaworks.ibm.com/tech/linuxjvm


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 8 July 1999 23:37
> To: [EMAIL PROTECTED]
> Subject: Re: IBM-jdk Where can I get it
> 
> 
> 
> Where can I download the JDK from IBM for Linux?
> 
> 
> _
> Steve Gee
> Java Developer
> Maxor National Pharmacies
> Information Technologies
> 
> [EMAIL PROTECTED]
> 806.324.5540
> www.maxor.com
> 806.324.5400
> 
> 
> --
> 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: IBM-jdk Where can I get it

1999-07-08 Thread Nathan Meyers

[EMAIL PROTECTED] wrote:
> 
> Where can I download the JDK from IBM for Linux?

http://alphaworks.ibm.com

Look for the JVM link -- you can't miss it.


Nathan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



displaying directory..

1999-07-08 Thread R MUTHUSWAMY


Hi all,

I did a small httpd server which supports the file display and ran
it. That worked fine. Now i want to add the display of files in the
particular directory which i have tried which is giving many errors.

Any help is appreciated. Advance Thanks.

bye,
MUTHU.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]