Memory Allocation

1998-11-15 Thread Steve Byrne

Chris Sommers writes:
 > Estmeemed wizards,
 > How can I estimate how much memory an object or bunch of
 > objects consume - besides indirectly, e.g. looking at
 > Runtime.getRuntime().totalMemory()? For example, how big is
 > a Vector containing 10,000 of class Double? I'm sure it will
 > be JVM/platform-dependent, but there must be a way to
 > estimate it.
 > 
 > Is there documentation on this topic? It seems fundamental.

It's very VM dependent, and given that memory is dynamically allocated, you're
not supposed to have to worry about it.

In objects, each data member consumes 4 bytes, except for doubles, which take
8.  Additionally, there's some per-instance overhead, say a class pointer, an
object table pointer, and maybe a size indicator, so figure another 12 bytes
overhead per instance (although 16 bytes per comes to mind from some previous
analysis that I did).   For a double[10], figure 8*10 + the overhead for the
arrya, so probably about 92-96 bytes.  

Steve



Enerprise JavaBeans Question

1998-11-15 Thread Alexey Lukin

Hi, All!

Is anybody working on free open-source implementation of Sun's EJB
specification?
IMHO EJB is something real that could make Java technology serios for
enetrprise computing.

We tested EJBHome 0.4 (www.ejbhome.com) - looks promising, but... 
It's very unclear about licensing and source availability. Seems that
guys are from NT world :-(

We also tested WebLogic's Tengah and found it too big and monstrous -
too much features and modules.
Fnd no source ever.

I think that GPL-ed EJB implementation with PostgreSQL or so could
become good competitors for commercial products like Oracle Application
Server 4 + Oracle8 or Informix Dynamic Server 7 for small enterprises.
 
RedHat's model of commercial support of GPL-ed software is gaining
sucess and shows, IMHO, the right way.

-- 
With respect,
Alexey Lukin,
JSC "CINET" http://www.ci.net.ua
phone/fax +380-462-101710, 101263



Re: Enerprise JavaBeans Question

1998-11-15 Thread Carl Hewitt


I would be interested in an open source EJB implementation as well.
Carl
Alexey Lukin wrote:
Hi, All!
Is anybody working on free open-source implementation of Sun's EJB
specification?
IMHO EJB is something real that could make Java technology serios for
enetrprise computing.
We tested EJBHome 0.4 (www.ejbhome.com) - looks promising, but...
It's very unclear about licensing and source availability. Seems that
guys are from NT world :-(
We also tested WebLogic's Tengah and found it too big and monstrous
-
too much features and modules.
Fnd no source ever.
I think that GPL-ed EJB implementation with PostgreSQL or so could
become good competitors for commercial products like Oracle Application
Server 4 + Oracle8 or Informix Dynamic Server 7 for small enterprises.
RedHat's model of commercial support of GPL-ed software is gaining
sucess and shows, IMHO, the right way.
--
With respect,
Alexey Lukin,
JSC "CINET" http://www.ci.net.ua
phone/fax +380-462-101710, 101263

-- 
* ---
Carl Hewitt
CTO / oop.com
Tools and training for enterprise 
business object development
* ---
JBOT - business object toolkit for Java
www.oop.com
* ---
 

begin:vcard 
n:Hewitt;Carl 
x-mozilla-html:TRUE
org:oop.com
version:2.1
email;internet:[EMAIL PROTECTED]
title:CTO
note;quoted-printable:=0D=0A
x-mozilla-cpt:;0
tel;work:877-891-5846
fn:Carl  Hewitt
end:vcard



Re: Enerprise JavaBeans Question

1998-11-15 Thread James Seigel

I would be interested in helping to develop it.

J.

Pooh Bear -- "I am just a bear of little brain"


On Sun, 15 Nov 1998, Carl Hewitt wrote:

> I would be interested in an open source EJB implementation as well.
> 
> Carl
> 
> Alexey Lukin wrote:
> 
> > Hi, All!
> >
> > Is anybody working on free open-source implementation of Sun's EJB
> > specification?
> > IMHO EJB is something real that could make Java technology serios for
> > enetrprise computing.
> >
> > We tested EJBHome 0.4 (www.ejbhome.com) - looks promising, but...
> > It's very unclear about licensing and source availability. Seems that
> > guys are from NT world :-(
> >
> > We also tested WebLogic's Tengah and found it too big and monstrous -
> > too much features and modules.
> > Fnd no source ever.
> >
> > I think that GPL-ed EJB implementation with PostgreSQL or so could
> > become good competitors for commercial products like Oracle Application
> > Server 4 + Oracle8 or Informix Dynamic Server 7 for small enterprises.
> >
> > RedHat's model of commercial support of GPL-ed software is gaining
> > sucess and shows, IMHO, the right way.
> >
> > --
> > With respect,
> > Alexey Lukin,
> > JSC "CINET" http://www.ci.net.ua
> > phone/fax +380-462-101710, 101263
> 
> --
> * ---
> Carl Hewitt
> CTO / oop.com
> Tools and training for enterprise
> business object development
> * ---
> JBOT - business object toolkit for Java
> www.oop.com
> * ---
> 
> 
> 



Re: Mouse Clicks

1998-11-15 Thread John Summerfield

On Sat, 14 Nov 1998, Karthik Vishwanath wrote:

> Hi all,
>   On receiving a mousePressed, how does one determine which mouse
> button is the one clicked?
>   
> ps: i am sorry if this is a purely java based question, but then i do not
> know where else i can post it.
> 
See
javap java.awt.event.MouseEvent
javap java.awt.event.InputEvent

Use getModifiers() in conjunction with the info the above commands provide.
Read the online docs for more.

Be aware that isPopupTrigger() is active on mousepress on Unix,
mouserelease on WIN* and OS/2. This is consistent with the host
environment, but  a great way to trick programmers into writing
non-portable code.


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



Re: Enerprise JavaBeans Question

1998-11-15 Thread Alexey Lukin

Hi!
James Seigel wrote:
> 
> I would be interested in helping to develop it.
> 

Just found two interesting links:

General EJB page:

http://adams.patriot.net/~tvalesky/ejb.html

And open-source EJB server (not complete yet)

http://www.m31.org/index.html

Dowloading to test it...

With respect,
Alexey Lukin,
JSC "CINET" http://www.ci.net.ua
phone/fax +380-462-101710, 101263



Basic installation. Please Help.

1998-11-15 Thread Pierre LATECOERE

Hello,

I am new to the Linux world. I have developped a large Java app on Win32
using Borland JBuilder and want to port it to Linux.
I have downloaded the jdk116 from java.blackdown.org. I use several
*.jar packages for my app (i.e. Swing).

javac doesn't load my jar files. I must have done something wrong in
setting my CLASSPATH environment.

Here is what I have in my .bashrc file:

# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
 . /etc/bashrc
fi

export PATH=/home/Pierre/jdk116_v5/bin:$PATH
export CLASSPATH=/home/Pierre/jdk116_v5/lib:$CLASSPATH

Thank you for your help.

Pierre



Re: Basic installation. Please Help.

1998-11-15 Thread Kenny Freeman

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).
__
Kenny Freeman <[EMAIL PROTECTED]>

"a population that gives up its freedoms in the name of order will
 ultimately end up losing both." 

On Sun, 15 Nov 1998, Pierre LATECOERE wrote:

> Hello,
> 
> I am new to the Linux world. I have developped a large Java app on Win32
> using Borland JBuilder and want to port it to Linux.
> I have downloaded the jdk116 from java.blackdown.org. I use several
> *.jar packages for my app (i.e. Swing).
> 
> javac doesn't load my jar files. I must have done something wrong in
> setting my CLASSPATH environment.
> 
> Here is what I have in my .bashrc file:
> 
> # .bashrc
> # User specific aliases and functions
> # Source global definitions
> if [ -f /etc/bashrc ]; then
>  . /etc/bashrc
> fi
> 
> export PATH=/home/Pierre/jdk116_v5/bin:$PATH
> export CLASSPATH=/home/Pierre/jdk116_v5/lib:$CLASSPATH
> 
> Thank you for your help.
> 
> Pierre
> 



JDK1.1.1 is not working on Debian/GNU Linux 2.0

1998-11-15 Thread Edgar Eduardo Reyes Torneros

Hi:

I'm using Debian GNU/Linux  version 2.0, and when i try to run "java" or "jdc" or any 
program of the JDK1.1.1 for Linux, the 
screen show the next message:

"Segmentation fault"

I haven`t idea of what could be.. . because befor using Linux 2.0, i was working with 
Debian GNU/Linux 1.3, and de JDK was 
working perfectly!!!..

The output of the  "lfconfig -v" command is saved in the "ldconfig.txt" file that I'm 
sending in attachment, altough her is the 
output:

[sbb: here's your problem: you're now running 1.9.9 of the dynamic library
system.  You need to remove the libc and libdl.so from lib/i386/green_threads
in your jdk installation directory.   Also, always send to
[EMAIL PROTECTED] -- I rarely answer this kind of directly
addressed email]


ldconfig: version 1.9.9
/usr/X11R6/lib/Xaw95:
/usr/X11R6/lib/Xaw3d:
/usr/lib/libg++-dbg:
 libg++.so.2.7.2 => libg++.so.2.7.2.8
 libstdc++.so.2.7.2 => libstdc++.so.2.7.2.8
/usr/lib/tkstep:
 libtk8.0.so.1 => libtk8.0.so.1
 libtk4.2.so.1 => libtk4.2.so.1
/usr/lib/libc5-compat/Xaw3d:
/usr/lib/libc5-compat/neXtaw:
/usr/lib/libc5-compat/Xaw95:
/usr/lib/libc5-compat:
 libxview.so.3 => libxview.so.3.2.4
 libolgx.so.3 => libolgx.so.3.2.4
 libXaw3d.so.6 => libXaw3d.so.6.1
 libV.so.1 => libV.so.1.17
 libtk4.2.so.1 => libtk4.2.so.1
 libtcl7.6.so.1 => libtcl7.6.so.1
 libvgagl.so.1 => libvgagl.so.1.2.13
 libvga.so.1 => libvga.so.1.2.13
 libXpm.so.4 => libXpm.so.4.10
 libslang.so.0.99.34 => libslang.so.0.99.38
 libneXtaw.so.6 => libneXtaw.so.6.1
 libnetcdf.so.3 => libnetcdf.so.3.3.1
 libXm.so.1 => libXm.so.1.2.0
 libMrm.so.1 => libMrm.so.1.2.0
 libgle.so.3 => libgle.so.3.6
 libglut.so.3 => libglut.so.3.6
 libtiff.so.3 => libtiff.so.3.4.037
 librx.so.1 => librx.so.1.5
 libregex.so.0 => libregex.so.0.12
 libhistory.so.2 => libhistory.so.2.1
 libpwdb.so.0 => libpwdb.so.0.54
 libpng.so.0 => libpng.so.0.96
 libpaper.so.1 => libpaper.so.1.0.3
 libpam_misc.so.0 => libpam_misc.so.0.57
 libpam.so.0 => libpam.so.0.57
 libjpeg.so.6a => libjpeg.so.6a.0.0
 libdf.so.4.0 => libdf.so.4.0.2
 libgpm.so.1 => libgpm.so.1.13
 libgdbm.so.1 => libgdbm.so.1.7.3
 libstdc++.so.27 => libstdc++.so.27.2.1
 libg++.so.27 => libg++.so.27.2.1
 libelf.so.0 => libelf.so.0.6.4
 libnetcdf_c++.so.3 => libnetcdf_c++.so.3.3.1
 libXaw95.so.6 => libXaw95.so.6.1
 libXtst.so.6 => libXtst.so.6.1
 libXt.so.6 => libXt.so.6.0
 libXp.so.6 => libXp.so.6.2
 libXmu.so.6 => libXmu.so.6.0
 libXi.so.6 => libXi.so.6.0
 libXext.so.6 => libXext.so.6.3
 libXaw.so.6 => libXaw.so.6.1
 libXIE.so.6 => libXIE.so.6.0
 libX11.so.6 => libX11.so.6.1
 libSM.so.6 => libSM.so.6.0
 libPEX5.so.6 => libPEX5.so.6.0
 libICE.so.6 => libICE.so.6.3
 libz.so.1 => libz.so.1.1.1
 libcompface.so.1 => libcompface.so.1.0.0
/lib/libc5-compat:
 libreadline.so.2 => libreadline.so.2.1
/usr/X11R6/lib:
 libXaw95.so.6 => libXaw95.so.6.1
 libXaw3d.so.6 => libXaw3d.so.6.1
 libwine.so.0 => libwine.so.0.0.971116
 libMagick.so.4 => libMagick.so.4.0.4
 libXpm.so.4 => libXpm.so.4.10
 libwxtab_xt.so.1 => libwxtab_xt.so.1.66
 libwxgrid_xt.so.1 => libwxgrid_xt.so.1.66
 libwx_xtwidgets.so.1 => libwx_xtwidgets.so.1.66
 libwx_xtthread.so.1 => libwx_xtthread.so.1.66
 libwx_xt.so.1 => libwx_xt.so.1.66
 libMesatk.so.2 => libMesatk.so.2.6
 libMesaaux.so.2 => libMesaaux.so.2.6
 libMesaGLw.so.2 => libMesaGLw.so.2.6
 libMesaGLU.so.2 => libMesaGLU.so.2.6
 libMesaGL.so.2 => libMesaGL.so.2.6
 libwraster.so.0 => libwraster.so.0.0.1
 libWMaker.so.0 => libWMaker.so.0.0.0
 libXm.so.1 => libXm.so.1.2.0
 libMrm.so.1 => libMrm.so.1.2.0
 libUnidraw.so.0 => libUnidraw.so.0.6.2
 libUnidraw-common.so.0 => libUnidraw-common.so.0.6.2
 libUniIdraw.so.0 => libUniIdraw.so.0.6.2
 libTopoFace.so.0 => libTopoFace.so.0.6.2
 libTime.so.0 => libTime.so.0.6.2
 libOverlayUnidraw.so.0 => libOverlayUnidraw.so.0.6.2
 libIVGlyph.so.0 => libIVGlyph.so.0.6.2
 libIV.so.0 => libIV.so.0.6.2
 libIV-common.so.0 => libIV-common.so.0.6.2
 libGraphUnidraw.so.0 => libGraphUnidraw.so.0.6.2
 libDrawServ.so.0 => libDrawServ.so.0.6.2
 libComUtil.so.0 => libComUtil.so.0.6.2
 libComUnidraw.so.0 => libComUnidraw.so.0.6.2
 libComTerp.so.0 => libComTerp.so.0.6.2
 libComGlyph.so.0 => libComGlyph.so.0.6.2
 libAttribute.so.0 => libAttribute.so.0.6.2
 libFrameUnidraw.so.0 => libFrameUnidraw.so.0.6.2
 libDnd.so.1 => libDnd.so.1.0
 libDnd++.so.1 => libDnd++.so.1.0
 libxview.so.3 => libxview.so.3.2.4
 libolgx.so.3 => libolgx.so.3.2.4
 libAttrGlyph.so.0 => libAttrGlyph.so.0.6.2
 libXtst.so.6 => libXtst.so.6.1
 libXt.so.6 => libXt.so.6.0
 libXp.so.6 => libXp.so.6.2
 libXmu.so.6 => libXmu.so.6.0
 libXi.so.6 => libXi.so.6.0
 libXext.so.6 => libXext.so.6.3
 libXaw.so.6 => libXaw.so.6.1
 libXIE.so.6 => libXIE.so.6.0
 libX11.so.6 => libX11.so.6.1
 libPEX5.so.6 => libPEX5.so.6.0
 libICE.so.6 => libICE.so.6.3
 libSM.so.6 => libSM.so.6.0
/usr/lib/StarOffice-3.1/linux-x86/lib:
 libxp3.so => libxp3.so
 libtools312.so => libtools312.so
 libsvx312.so => libsvx312.so
 libsvt312.so => libsvt312.so
 libsv312.so => libsv312.so
 libso312.so => libso312.so
 

Could not load runtime library error

1998-11-15 Thread Avi Schwartz

Hi,

I am trying to get Simplicity for java running on my SuSE 5.3
installation with version 1.1.6 of the JDK as shipped with SuSE.
Any program that tries to use the jre fails with the same error.
As a matter of fact, just trying to run jre will give the
error message:

Could not load runtime library:
/usr/lib/jdk1.1.6/bin/../lib/i686/green_threads/libjava.so

I have a SuSE 5.2 machine on which I manually installed the 1.1.6 JDK
that I downloaded from www.blackdown.org and on that machine I don't
have this problem.

Has anyone else seen this problem?  How would I fix it?

Thanks.

Avi
[EMAIL PROTECTED]