Re: v2-test ready

1998-06-16 Thread Steve Byrne

Herald van der Breggen writes:
 > Steve Byrne wrote:
 > 
 > > [EMAIL PROTECTED] writes:
 > >  > Hi all,
 > >  >I am new to this list and looking forward to participate. I just
 > >  > installed the jdk1.1.6v1 this morning and the two problems I encountered,
 > >  > menu not displaying properly and title bar displaying AWt... have already
 > >  > been discussed on this list. (I checked the archive).
 > >
 > > Try looking in http://www.blackdown.org/~sbb/1.1.6/v2-test
 > > The files here are what is intended to be 1.1.6v2, unless we hear from people
 > > there are serious problems with the release.
 > 
 > Great, is this the version for glibc ?

Nope -- libc5 -- that's what I build with.  If you've got a fast network
connection, it's still worth a download -- I think that if you've got a recent
enough version of glibc (and libdl 2.x) that you still may be able to use
this version successfully.

steve




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

Jürgen,

>  IMHO this states that the native method readImage couldn't be linked.
>  Do a nm on your libjpeg.so, it should give something like that:
>  
>  123> nm /public/languages/JDK-1.1.6v2/lib/i686/green_threads/libjpeg.so |
>  grep readImage
>  000103e4 T Java_sun_awt_image_JPEGImageDecoder_readImage_stub
>  22d8 T sun_awt_image_JPEGImageDecoder_reeadImage
Could you confirm that JPEG images work for you? It seems
to me that JPEGImageDecoder.produceImage tries to call
the wrong external (readImage), whereas the JPEG library contains
only sun_awt_image_JPEGImageDecoder_readImage. I don't know enough
about the java innards to know how the function names are
cooked up, but should the error message not be something like
java.lang.UnsatisfiedLinkError: sun_awt_image_JPEGImageDecoder_reeadImage
and not just 'readImage'

Just grasping at straws.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Re: What is the difference between protected & public?

1998-06-16 Thread Gerald . Struck

>   I'm using jdk1.1.6v1 glibc jdk, I can compile B.java
> successfully.  However, A.java & B.java doesn't in the same package, why
> it can compile successfully?  B.java shouldn't had access right to A.y.
> Am I wrong?  Pls tell me the error.

Leung,

you're not using any 'package'-statements, so the code in both files
is part of the same unnamed default package. Hence B.getY() does have
access to A.y.

Gerald




Re: Problem extending an inner class

1998-06-16 Thread Marcus Johnson

Daniele,

I got a chance to try this suggestion.  The suggester says it worked for
him, but it didn't work for me on my Win95 machine running Sun's JDK 1.1.5
.  Have you come up with anything further?

Marcus


On Mon, 15 Jun 1998, Marcus Johnson wrote:

> Daniele,
> 
> I shared this problem on another Java forum and here's the first answer I
> got.  I haven't had a chance to try out the suggestion, but here it is:
> 
> Posted by Surya Duggirala <[EMAIL PROTECTED]> on June 15, 1998 at 16:19:12:
> 
> In Reply to: Problem extending inner classes 
> 
> In the actionPerformed(ActionEvent) method of Dialog1 class, call
> dispose() method after System.out.println(). Then the code will work
> properly.
> 
> Surya
> 
> 
> On Wed, 17 Apr 1996, Daniele Lugli wrote:
> 
> > Could somebody try the following application? It raises a null pointer
> > exception when class Dialog2, extending class Dialog1, tries to access a
> > data member of the outer class.
> > Please consider that I am really a java newbie (about 10 days of
> > programming) so I'm not saying I've found a bug, the problem is probably
> > mine.
> > 
> > Thank you,
> > Daniele Lugli
> > 
> > 
> > // File name: Wrong.java
> > 
> > import java.awt.*;
> > import java.awt.event.*;
> > import java.lang.String;
> > import java.text.*;
> > import java.util.*;
> > 
> > public class Wrong extends Frame {
> > 
> >   public static void main (String args[]) throws Exception {
> > new Wrong ();
> >   }
> > 
> >   public Wrong () throws Exception {
> > super ();
> > setBounds (300, 100, 300, 100);
> > setVisible (true);
> > 
> > i = 5;
> > 
> > new Dialog2 (this);
> >   }
> > 
> >   private void quit () {
> > setVisible (false);
> > dispose ();
> > System.exit (0);
> >   }
> > 
> > 
> >   class Dialog1 extends Dialog implements ActionListener {
> > Dialog1 (Frame parent) {
> >   super (parent, "Dialog", true );
> >   setBounds (400, 200, 100, 75);
> >   okButton = new Button ("OK");
> >   okButton.addActionListener (this);
> >   add (okButton);
> >   setVisible (true);
> > }
> > public void actionPerformed (ActionEvent aevt) {
> >   
> >   System.out.println ("Dialog1: i=" + i);
> > 
> > }
> > private Button okButton;
> >   }
> > 
> >   class Dialog2 extends Dialog1 {
> > Dialog2 (Frame parent) {
> >   super (parent);
> > }
> > public void actionPerformed (ActionEvent aevt) {
> >   super.actionPerformed (aevt);
> >   
> >   System.out.println ("Dialog2: i=" + i);
> > 
> >   quit ();
> > }
> >   }
> > 
> >   int i;
> > 
> > }
> > 
> 
> 




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Juergen Kreileder

Stefaan A Eeckels <[EMAIL PROTECTED]> writes:

> Jürgen,
> 
> >  IMHO this states that the native method readImage couldn't be linked.
> >  Do a nm on your libjpeg.so, it should give something like that:
> >  
> >  123> nm /public/languages/JDK-1.1.6v2/lib/i686/green_threads/libjpeg.so |
> >  grep readImage
> >  000103e4 T Java_sun_awt_image_JPEGImageDecoder_readImage_stub
> >  22d8 T sun_awt_image_JPEGImageDecoder_reeadImage
> Could you confirm that JPEG images work for you? It seems
Yep, jpegs work for me.
> to me that JPEGImageDecoder.produceImage tries to call
> the wrong external (readImage), whereas the JPEG library contains
> only sun_awt_image_JPEGImageDecoder_readImage. I don't know enough
> about the java innards to know how the function names are
> cooked up, but should the error message not be something like
> java.lang.UnsatisfiedLinkError: sun_awt_image_JPEGImageDecoder_reeadImage
> and not just 'readImage'
Not necessarily.

Try
strace -e trace=open java Iview Valetta.jpg
to see which libjpeg.so gets loaded. 
On my system there is a libjpeg.so in the jdk directory (this is 
the one that should get loaded) and there is a libjpeg.so in /usr/lib 
(which is the wrong library).

Jürgen.


-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802




Re: tya06 and JDK 1.1.6v1

1998-06-16 Thread Albrecht Kleine

You wrote
> Hi all,

>   I've been away from the list for awhile so forgive me if this has been

> together.  I also saw mention of a tya07, but didn't find it on the site I
> went to.  Which version of tya is recommended at this time, and when

ftp://gonzalez.cyberus.ca/pub/Linux/java/tya07.tgz

> should JDK1.1.6v2 be released?
don't know.

>   Thanks,

Cheers
Albrecht




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Albrecht Kleine

Stefaan,

> >  locate for libjava.so, if you find an additional
> >  lib in  /usr/X11/lib/  I recommend to move away 
> >  this file (at least for a test).  Now jpeg should work.
> I've only got libjava.so in /usr/lib/jdk1.1.6/lib/i686/green_threads.

Yes okay, of course. There is ONE lib.
But IMHO there is ANOTHER libjpeg in your lib path.
(This libjpeg is the one ``xv'' or similar programs are using.)
JDK tries to dynamic link this wrong lib, and so you have the problem.


That's what I meant: move away or rename any other
files named libjpeg.so. 
I you want look deeper inside try using the strace tool.

> It seems to me the reason should be in classes.zip and not
> in libjava.so, what do you think? Without source code for the


IMHO not.
At least for German Suse Linux I can confirm for 100%.


> Stefaan
Albrecht




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Albrecht Kleine

Hi,

> Could you confirm that JPEG images work for you? It seems

Yes. Compare other mail.

> the wrong external (readImage), whereas the JPEG library contains
> only sun_awt_image_JPEGImageDecoder_readImage. I don't know enough
> about the java innards to know how the function names are

IMHO no jdk but linux problem

Albrecht




Re: A short one

1998-06-16 Thread Jauvane Cavalcante de Oliveira

Hi Ville,

> How can I make something happen, say, every 5 seconds?

Just create a new thread which sleeps for 5 seconds and then do whatever
you need. :-)

Regards,

-
 _/ _/_/ Jauvane Cavalcante de Oliveira
_/ _/   _/  University of Ottawa
   _/ _/  _/ _/_/  School of Information Technology & Engineering
  _/ _/ _/ _/ Multimedia Communications Research Laboratory
_/   _/ _/_/  _/ Phone:1(613)562-5800 Ext.6243/6248  FAX:562-5175
_/_/_/ _/ _/_/  Canada http://www2.mcrlab.uottawa.ca/~jauvane
-
|Bolsista da CAPES - Brasilia/Brasil|
-





What is the difference between protected & public?

1998-06-16 Thread Leung Yau Wai

Hello,

I got two file:

A.java

public class A
{
   int x=0;
   protected int y=0;
}

and B.java

public class B
{
   A a;

   public int getx()
   {
  return a.x;
   }

   public int gety()
   {
  return a.y;
   }
}

I'm using jdk1.1.6v1 glibc jdk, I can compile B.java
successfully.  However, A.java & B.java doesn't in the same package, why
it can compile successfully?  B.java shouldn't had access right to A.y.
Am I wrong?  Pls tell me the error.

Thanks for attention!

===
¤µ¤Ñ¨ì¦Ñ§Ú¹³¨º¶^¤£¨ì  §Ú·Q°µLeung Yau Wai
°µ§Ú©R¹B²Å¸¹  ¥Î§Ú¤OçE§Ú¸ô³~§Ú«Y¬ì¤j¹q¤l­pºâ¾÷¬ì¾Ç¨t¤G¦~¯Å
¥u¬ß§Ú¤@¤é·|¦b¬P©]¸Ì[EMAIL PROTECTED]
¨º¤Ñ§Ú·|  §t²\»¡Án  §Ú°µ¨ì  [EMAIL PROTECTED]




colormap

1998-06-16 Thread Lenny Zhao


Hi guys, I have a warning message I can not figure out:
I installed Netscape and try to load it, then I get a warning:
"Cannot allocate colormap entry for default backgroup". and this message
is appearing even when I run my java applets.
Can anyone pleas help me out!

thankx in advance.

len




backspace not working on linux

1998-06-16 Thread Lenny Zhao

hi guys, me again, another problem with Netscape. At any edit box, I can
only use "delete" key which mean the 'backspace" key is not working at
all. So everytime I have to mvoe my cursor to the front of the character
and delete them. any idea why? I use RedHat5.0. I hope this has nothing to
do with this version. Maybe the colormap has to deal with this version.

thank you again.




core dumping on execution

1998-06-16 Thread Michael Plump

Hi.  I downloaded jdk 1.1.5v7 for use with ICQ.  When I try to run it
with:

/usr/local/java/bin/java -classpath
/home/plumpy/ICQJava/ICQ.jar:/home/plumpy/ICQJava:/usr/local/java/lib/classes.zip
Mirabilis.ICQ.NetAware.CNetAwareApp -path /home/plumpy/ICQJava

I get (this is Slackware 3.4, and I included output of ldconfig -D below
if that helps...):
--
SIGSEGV   11*  segmentation violation
stackbase=0xb3b0, stackpointer=0xb2b8

Full thread dump:
"Finalizer thread" (TID:0x40660c30, sys_thread_t:0x413a1f04, state:R)
prio=1
"Async Garbage Collector" (TID:0x40660c78, sys_thread_t:0x41380f04,
state:R)
 prio=1
"Idle thread" (TID:0x40660cc0, sys_thread_t:0x4135ff04, state:R)
prio=0
"Clock" (TID:0x4065d088, sys_thread_t:0x4133ef04, state:CW) prio=12
"main" (TID:0x4065d0b0, sys_thread_t:0x81b4eb0, state:R) prio=5
*current thr
ead*
java.lang.Runtime.loadLibrary(Runtime.java)
java.lang.System.loadLibrary(System.java)
sun.awt.motif.MToolkit.(MToolkit.java:44)
java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402)
java.awt.Window.getToolkit(Window.java:222)
Mirabilis.ICQ.ListUI.ii.(WARNING: Decompiling this code may
violate your
 licensing agreement
Mirabilis.ICQ.ListUI.ii.(WARNING: Decompiling this code may
violate your
 licensing agreement
Mirabilis.ICQ.NetAware.CNetAwareApp.(WARNING: Decompiling
this cod
e may violate your licensing agreement
Mirabilis.ICQ.NetAware.CNetAwareApp.main(WARNING: Decompiling this
code
may violate your licensing agreement
Monitor Cache Dump:
java.lang.Runtime@1080432600/1080847888: owner "main" (0x81b4eb0, 1
entry)
java.lang.Class@1080432784/1080846888: owner "main" (0x81b4eb0, 1
entry)
java.lang.Class@1080435736/1080859616: owner "main" (0x81b4eb0, 1
entry)
Registered Monitor Dump:
Thread queue lock: 
Name and type hash table lock: 
String intern lock: 
JNI pinning lock: 
JNI global reference lock: 
BinClass lock: 
Class loading lock: 
Java stack lock: 
Code rewrite lock: 
Heap lock: 
Has finalization queue lock: 
Finalize me queue lock: 
Monitor IO lock: 
Child death monitor: 
Event monitor: 
I/O monitor: 
Alarm monitor: 
Waiting to be notified:
"Clock" (0x4133ef04)
Monitor registry: owner "main" (0x81b4eb0, 1 entry)
Thread Alarm Q:
--
I'm not sure if this helps, but "ldconfig -D" returns:
--
/sbin/ldconfig: version 1.9.9
/usr/local/lib:
libMrm.so.1 => libMrm.so.1.2.0
libXm.so.1 => libXm.so.1.2.0
libgck.so.1 => libgck.so.1.0.0
libgimpui.so.1 => libgimpui.so.1.0.0
libgimp.so.1 => libgimp.so.1.0.0
libaa.so.1 => libaa.so.1.0.3
libxdelta.so.0 => libxdelta.so.0.0.18.0
libtiff.so.3 => libtiff.so.3.4.037
libpng.so.2 => libpng.so.2.1.0
libjpeg.so.6 => libjpeg.so.6.0.0
libgtk.so.1 => libgtk.so.1.0.3
libgdk.so.1 => libgdk.so.1.0.3
libglib.so.1 => libglib.so.1.0.3
/usr/X11R6/lib:
libXpm.so.4 => libXpm.so.4.3
libXaw.so.6 => libXaw.so.6.1
libXp.so.6 => libXp.so.6.2
libPEX5.so.6 => libPEX5.so.6.0
libXtst.so.6 => libXtst.so.6.1
libXi.so.6 => libXi.so.6.0
libXIE.so.6 => libXIE.so.6.0
libXmu.so.6 => libXmu.so.6.0
libXt.so.6 => libXt.so.6.0
libXext.so.6 => libXext.so.6.3
libSM.so.6 => libSM.so.6.0
libICE.so.6 => libICE.so.6.3
libX11.so.6 => libX11.so.6.1
/usr/i486-linuxaout/lib:
libPEX5.so.6 => libPEX5.so.6.0
libXpm.so.4 => libXpm.so.4.3
libXt.so.6 => libXt.so.6.0
libXaw.so.6 => libXaw.so.6.0
libXIE.so.6 => libXIE.so.6.0
libX11.so.6 => libX11.so.6.0
libXt.so.3 => libXt.so.3.1.0
libXaw.so.3 => libXaw.so.3.1.0
libX11.so.3 => libX11.so.3.1.0
libdb.so.1 => libdb.so.1.85.1
libvga.so.1 => libvga.so.1.2.9
/usr/openwin/lib:
libsspkg.so.1 => libsspkg.so.1.0.0
libxview.so.3 => libxview.so.3.2.2
libolgx.so.3 => libolgx.so.3.2.2
/usr/lib:
libz.so.1 => libz.so.1.0.2
libtiff.so.3 => libtiff.so.3.4.33
librle.so.1 => librle.so.1.0.0
libppm.so.1 => libppm.so.1.0.0
libpnm.so.1 => libpnm.so.1.0.0
libpng.so.1 => libpng.so.1.0.89
libpgm.so.1 => libpgm.so.1.0.0
libpbm.so.1 => libpbm.so.1.0.0
libjpeg.so.6 => libjpeg.so.6.0.1
libfbm.so.1 => libfbm.so.1.0.0
libtkx.so.1 => libtkx.so.1.4.1
libtclx.so.1 => libtclx.so.1.7.5
libtk.so.1 => libtk.so.1.4.1
libtcl.so.1 => libtcl.so.1.7.5
libform.so.3.0 => libform.so.3.0.0
libmenu.so.3.0 => libmenu.so.3.0.0
libpanel.so.3.0 => libpanel.so.3.0.0
libbfd.so.2.8.1.0.1 => libbfd.so.2.8.1.0.1
libopcodes.so.2.8.1.0.1 => libopcodes.so.2.8.1.0.1
libgpm.so.1 => libgpm.so.1.10
libdb.so.1 => l

Re: colormap

1998-06-16 Thread Vincent Cunniffe

From: Lenny Zhao <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, June 16, 1998 8:48 AM
Subject: colormap


>
>Hi guys, I have a warning message I can not figure out:
>I installed Netscape and try to load it, then I get a warning:
>"Cannot allocate colormap entry for default backgroup". and this message
>is appearing even when I run my java applets.
>Can anyone pleas help me out!

This is because your system has already allocated enough colours to fill
the colour table. You are probably running X under 256 colour mode,
which means that there can only be 256 distinct colours active at any
one time.

If Netscape tries to run an applet which wants a colour that isn't already
present in the table, and the table is full, then you get this error.

If you run X at a higher colour mode (16 bpp (bits per pixel)) then this
problem
should vanish. Alternatively, just ignore the error, which is fairly minor,
and
let Netscape solve the problem, which it will do by picking the available
colour
which is closest to the one that was requested.

Regards,

Vin





unsubscrib

1998-06-16 Thread Hugh P Brien

un-subscribe
unsubscrib




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

Hi List,

I did some more tests, and I have the following frustrating
results:
- JDK1.1.3 on Linux 2.0.34 (heavily updated Slackware 95) gives
no problems (this is an older 486/66 machine too slow to do
serious java work) 
- I exported the JDK directory from this machine, mounted it
on the PentiumII (SuSE 5.1 core and kernel 2.0.34), and made
a symbolic link (/usr/lib/java -> /net/opt/java/jdk1.1.3).
I recompiled tya0.7, and it properly recognises that version
of the JDK. Now the demo program (Iview)doesn't run. 

Conclusion - it's something on the PII box that causes the
link problem. The only difference is that on the old box,
the version of ld.so is 1.9.5, whereas it is 1.9.6 on the
new machine. 

Any clues - this really puzzles me no end, but as I have
other work to do, I'll let is simmer for a while and see
if I can come up with something.

Thanks a lot for listening,

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




A short one

1998-06-16 Thread Ville Laakso

How can I make something happen, say, every 5 seconds?

-Ville Laakso
 [EMAIL PROTECTED]




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

On 16-Jun-98 Juergen Kreileder wrote:
>  Not necessarily.
>  
>  Try
>  strace -e trace=open java Iview Valetta.jpg
>  to see which libjpeg.so gets loaded. 
>  On my system there is a libjpeg.so in the jdk directory (this is 
>  the one that should get loaded) and there is a libjpeg.so in /usr/lib 
>  (which is the wrong library).
I only got this suggestion after I sent of my previous mail
(dialup obliges), but I can report now that this was indeed
the problem. There was a symlink to libjpeg.so.6.0.1 called
libjpeg.so on the PII, and this confused the loader. What I
don't get is why setting LD_LIBRARY_PATH to the java library
directory had no effect. Re-arranging ld.so.conf didn't work
either. 

Oh well, the vagaries of shared libraries ;-)

Many thanks, Jürgen and Albrecht. I can go back to something
more productive now.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




unsubscrib

1998-06-16 Thread frank bernaby

unsubscribe





==
Frank Bernaby
Sebastian,FL


_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com




unsubscrib

1998-06-16 Thread frank bernaby


un-subscribe
unsubscrib



==
Frank Bernaby
Sebastian,FL


_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com




Unidentified subject!

1998-06-16 Thread Waldir Borba Junior

unsubscrib

 ... The free UNIX operating system
 `:::'  ...  ..
   :::  *  `::.::'
   ::: .::  .:.::.  .:: .::  `::. :'
   :::  ::   ::  ::  ::  :::::.
   ::: .::. .::  ::.  `. .:'  ::.
 ..:::.::'   .. 




Problems with SuperMojo

1998-06-16 Thread John Collins

Has anyone gotten SuperMojo to work? I've got RedHat 5.0, jdk1.1.5v7.
Lots of other Java stuff works. The two things that aren't working are
SuperMojo (brand new, version 1.3) and Together/J (also brand new,
version 2.0). In both, they start up and some things work, but I can't
initiate a new project. SuperMojo puts up a 0X0 window that, when
stretched out, is empty and unresponsive, and won't respond to window
manager close requests. Together/J puts up a huge, undecorated window in
a different virtual screen (below and to the right) from the one I'm
working in. It also has no contents and is unresponsive.

Any experiences or ideas? Thanks.

John Collins