java stack size

2000-06-20 Thread yangyuexiang

> Hi

Who can tell me how to specify the size of java stack size when I run a
program?
If I specify not enough stack size, what will happen?

Thanks
yangyuexiang



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




Re: java stack size

2000-06-20 Thread Peter Schuller

> Who can tell me how to specify the size of java stack size when I run a
> program?

Use the "-Xss" switch in Sun's JDK:s.

> If I specify not eoough stack size, what will happen?

You'd get a StackOverFlowError during runtime. It's not something that
happens alot under normal circumstances though. So far it's only happened to
me when I've accidently entered an infinite recursive loop.

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrival: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://scode.infidyne.com


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




Re: JSplitPane.setDividerLocation(..)

2000-06-20 Thread Peter Graves

brEezE wrote:
> 
> I have a JSplitPane both contains an JScrollPane on
> top and bottom part of the splitpane.
> 
> When try to set the divider's location in v1.2.2 RC4,
> nothing seems to be happened. The same code works fine
> in v1.3.
> 
> Is this a bug in v1.2.2?
> 
> Thanks!

I've got code that does this, that works fine with both Blackdown 1.2.2
RC4 and IBM 1.3 (not to mention Sun 1.3, Sun 1.2.2, Blackdown 1.1.8 and
all the versions of Java for Windows that I've tried).  So I don't think
it's a bug in 1.2.2...

-Peter
http://armedbear.org


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




Re: JSplitPane.setDividerLocation(..)

2000-06-20 Thread allen petersen

i had a similar problem with setDividerLocation() on 1.2.2.  if i remember 
correctly, i actually had the problem both on linux and on solaris.

i was trying to set the divider location on a JSplitPane during 
initialization, and found that it didn't seem to do anything at all--the 
divider would just show up at a defult location no matter what i did.  on a 
suggestion from a friend, i tried moving the setDividerLocation() call from 
the constructor to addNotify():

public void addNotify() {
super.addNotify();
splitPane.setDividerLocation(...);
}

which worked much better.  

-allen

On Mon, Jun 19, 2000, 23:51, brEezE <[EMAIL PROTECTED]> wrote
>I have a JSplitPane both contains an JScrollPane on
>top and bottom part of the splitpane.
>
>When try to set the divider's location in v1.2.2 RC4,
>nothing seems to be happened. The same code works fine
>in v1.3.
>
>Is this a bug in v1.2.2?
>
>Thanks! 
>
>__
>Do You Yahoo!?
>Send instant messages with Yahoo! Messenger.
>http://im.yahoo.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]




about java servlet!

2000-06-20 Thread wangmq

I have installed jsdk2.1 on winnt, then I run the startserver command. It displayed 
"end point created: :8080". then I open http://localhost:8080 /
with ie3.0,but can't found the address.
why?

N…
I@R  隊[h«Ú–)îÆ·ª¹ë-«ÚnVœ‘Ú0žŠàÂ+aj˛ç-¡û§²æìr¸›y:è¹¹^
‰íiËdj¹[•§$vŒ'¢¸


Re: about java servlet!

2000-06-20 Thread forsythe

> I have installed jsdk2.1 on winnt, then I run the startserver command.
> It displayed "end point created: :8080". then I open
> http://localhost:8080 with ie3.0,but can't found the address.
> why?

You are missing an important piece of software on your machine.  It is
called "Linux."  If you install Linux on your machine, it will run all
of your software better.

Except Office 2000.

-- Charles


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




Re: java stack size

2000-06-20 Thread Chris Abbey

At 12:11 6/20/00 +0200, Peter Schuller wrote:
>Use the "-Xss" switch in Sun's JDK:s.

-Xoss for the native C stack size.

> > If I specify not eoough stack size, what will happen?
>
>You'd get a StackOverFlowError during runtime. It's not something that
>happens alot under normal circumstances though. So far it's only happened to
>me when I've accidently entered an infinite recursive loop.

another instance is if you have a hugely unbalanced tree and it
uses some form of method based tree traversal to manipulate the tree
(methods on the objects with their own internal intelligence as
opposed to a loop with pointers walking the tree from the outside)

this of course also assumes the jitter doesn't interfere... some I've
noticed can't properly detect this and take a segv instead (or other
random runtime errors).


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