Re: To optimize or not

2000-11-03 Thread KIRKBRIDE Rob

Thanks for the responses.

I'll not bother with -O then!

I've given the profiler a go and I'm managing to understand parts of it. I've not 
looked at the sun site but if there is comprehensive info on the site then I'll look 
there as this probably isn't Linux specific any more.

By the way cpu:samples appears to work, cpu:times and cpu:old simply core dump almost 
immediately. The debugger doesn't give any strack trace only that it occurred in 
libjvm.so. However the output from samples appears useful enough for some analysis.

Rob



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




where is the "jre" executable ?

2000-11-03 Thread Olivier M.

Hello,

Sorry if it is a stupid question, but I didn't found an answer
in any doc or FAQ. Just installed latest SDK from Blackdown under
linux : javac and java are working fine, but I'm missing the
"jre" command.

I have some applications which are needing that (for example 
telebanking stuff) : 
exec jre -nojit -noverify -mx32m -ms32m -cp 
.:lib2:lib2/ap:lib2/ap.zip:lib2/br:lib2/br.zip:lib2/sw:lib2/sw.zip DN2

Thanks for any hint :)
Olivier

-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch


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




Re: where is the "jre" executable ?

2000-11-03 Thread Nathan Meyers

"Olivier M." wrote:

> Hello,
>
> Sorry if it is a stupid question, but I didn't found an answer
> in any doc or FAQ. Just installed latest SDK from Blackdown under
> linux : javac and java are working fine, but I'm missing the
> "jre" command.

It doesn't exist anymore; it's now the "java" command everywhere.

Nathan

>
>
> I have some applications which are needing that (for example
> telebanking stuff) :
> exec jre -nojit -noverify -mx32m -ms32m -cp 
>.:lib2:lib2/ap:lib2/ap.zip:lib2/br:lib2/br.zip:lib2/sw:lib2/sw.zip DN2
>
> Thanks for any hint :)
> Olivier
>
> --
> _
>  Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
> qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch
>
> --
> 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: where is the "jre" executable ?

2000-11-03 Thread Joi Ellis

On Fri, 3 Nov 2000, Olivier M. wrote:

> Hello,
> 
> Sorry if it is a stupid question, but I didn't found an answer
> in any doc or FAQ. Just installed latest SDK from Blackdown under
> linux : javac and java are working fine, but I'm missing the
> "jre" command.
> 
> I have some applications which are needing that (for example 
> telebanking stuff) : 
> exec jre -nojit -noverify -mx32m -ms32m -cp 
>.:lib2:lib2/ap:lib2/ap.zip:lib2/br:lib2/br.zip:lib2/sw:lib2/sw.zip DN2
> 

Just make a symlink from 'jre' back to 'java'.  There isn't a 
separate jre executable in 1.2+.

-- 
Joi EllisSoftware Engineer
Aravox Technologies  [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
   - Chris Johnson


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




Is there a socket-based chat implementation?

2000-11-03 Thread LE Thanh Loan

Hello,

I'd like to know if there is a socket-based chat implementation round there.
I've tried to write a chat server and I 've encountered some problems with
IO streams on client side.
I created 2 threads charged of read and write operations respectively and
passed in the socket reference, they issue the "Bad File Descriptor"
exception when they tried to flush data to the buffer with
DataOutputStream.writeUTF() and DataOutputStream.flush(). What is surprising
is that I got the Exception at flush call, but not writeUTF call.

Thanks for any help,

Loan.


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




Re: where is the "jre" executable ?

2000-11-03 Thread Olivier M.

On Fri, Nov 03, 2000 at 07:56:33AM -0800, Nathan Meyers wrote:
> It doesn't exist anymore; it's now the "java" command everywhere.

well, but then it's not backward compatible at all : nothing
is working (exceptions on start). I guess I will have to keep
both JDK on my system.

Thanks all for the informations :)
Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch


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




To optimze or not

2000-11-03 Thread Patrick LAM

Shameless self-promotion:

The Soot framework developed at McGill University
(www.sable.mcgill.ca/soot) does Java optimization.  You can run your
programs through Soot and they should come out a bit faster.  Instructions
for doing so are found at

http://www.sable.mcgill.ca/soot/tutorial/optimizer/

Soot is free software (licensed under the LGPL).

pat



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




Re: where is the "jre" executable ?

2000-11-03 Thread Joi Ellis

On Fri, 3 Nov 2000, Olivier M. wrote:

> On Fri, Nov 03, 2000 at 07:56:33AM -0800, Nathan Meyers wrote:
> > It doesn't exist anymore; it's now the "java" command everywhere.
> 
> well, but then it's not backward compatible at all : nothing
> is working (exceptions on start). I guess I will have to keep
> both JDK on my system.

What's wrong with a simple symlink?  That's what I did.

-- 
Joi EllisSoftware Engineer
Aravox Technologies  [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
   - Chris Johnson


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




Re: where is the "jre" executable ?

2000-11-03 Thread Olivier M.

On Fri, Nov 03, 2000 at 01:49:46PM -0600, Joi Ellis wrote:
> On Fri, 3 Nov 2000, Olivier M. wrote:
> 
> > On Fri, Nov 03, 2000 at 07:56:33AM -0800, Nathan Meyers wrote:
> > > It doesn't exist anymore; it's now the "java" command everywhere.
> > 
> > well, but then it's not backward compatible at all : nothing
> > is working (exceptions on start). I guess I will have to keep
> > both JDK on my system.
> 
> What's wrong with a simple symlink?  That's what I did.

well, the software is running fine under 1.1.8, and
not at all under 1.3.  (telebanking software from www.youtrade.ch)

Olivier

-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch


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




Re: where is the "jre" executable ?

2000-11-03 Thread Bob Love

"Olivier M." wrote:
> 
> On Fri, Nov 03, 2000 at 07:56:33AM -0800, Nathan Meyers wrote:
> > It doesn't exist anymore; it's now the "java" command everywhere.
> 
> well, but then it's not backward compatible at all : nothing
> is working (exceptions on start). I guess I will have to keep
> both JDK on my system.
> 

In your application you are setting your min and max heap sizes.  You
will have to modify these arguments because the syntax of the min/max
heap size arguments has changed.  Run the command "java" without any
arguments to get usage info.  Also, if your classpath points to the old
JDK 1.1.x class libraries you will have to remove these from the
classpath.


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




Re: where is the "jre" executable ?

2000-11-03 Thread Nathan Meyers

"Olivier M." wrote:

> On Fri, Nov 03, 2000 at 07:56:33AM -0800, Nathan Meyers wrote:
> > It doesn't exist anymore; it's now the "java" command everywhere.
>
> well, but then it's not backward compatible at all : nothing
> is working (exceptions on start). I guess I will have to keep
> both JDK on my system.

Who claimed backward compatibility? JDK1.2 does a remarkably good job at
compatibility, given the immensity of the change from 1.1. But some
things don't make the move smoothly; as far as I know, Sun's HotJava
browser is still unusable under 1.2 because of its tight dependencies on
the 1.1 security architecture. It sounds like your code may have similar
problems. You might try the "oldjava" launcher, which emulates the old
environment enough to sometimes work with such code.

The move away from "jre" was a mixed blessing, and has its own issues
above and beyond the compatibility problems. Under 1.1, "jre" was
redistributable and "java" was not, so lots of existing deployed product
scripts with dependencies on "jre" are automatically broken by the
change. And, while the JDK1.2 "java" subsumed such "jre" options as
"-cp", the difference in how classes are loaded can still lead to
occasional surprises.

Nathan

>
>
> Thanks all for the informations :)
> Olivier
> --
> _
>  Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
> qmail projects: http://omail.omnis.ch  -  http://webmail.omnis.ch
>
> --
> 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]