_Xglobal_lock

1998-10-27 Thread Jettero Heller

I just installed jdk-1.1.6.5-2libc5.i386.rpm.

Whenever I run javac (or any other link to the .java.wrapper), I get this:

ls: not: No such file or directory
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol '_Xglobal_lock'
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol 
'_XUnlockMutex_fn'
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol '_XLockMutex_fn'


What is it?



Re: _Xglobal_lock

1998-10-27 Thread peter . pilgrim

 Where are your X Window Libraries?
 
 Everyone has them set a /usr/X11R6/lib
 
 Set the library LD_LIBRARY_PATH=/usr/X11R6/lib:
 or set up `ldconfig' by editing your `/etc/ld.so.config'
 file.
 
 
 What distribution do you have Slackware or Red Hat ?
 
 If RH5.0 use the glibc version ie libc 6.0 and above.
 
 If have an older Slackware stick with libc 5.0 you may have to 
 recompile the XFree86 3.2.2 sources to include  multithreaded support. 
 That means downloading first the `LinuxThreads' library, compiling and 
 installing in `/usr/lib' as `/usr/lib/libpthread.a' . Setting up the 
 Imakefile config `site.def' or `linux.cf' files to use -D_REENTRANT 
 -lpthread etc. I cant remember exactly what I did to get JDK1.1.6 to 
 work properly.
 
 Pete
 


__ Reply Separator _
Subject: _Xglobal_lock
Author:  jettero ([EMAIL PROTECTED]) at lon-mime
Date:27/10/98 06:26


I just installed jdk-1.1.6.5-2libc5.i386.rpm.
 
Whenever I run javac (or any other link to the .java.wrapper), I get this:
 
ls: not: No such file or directory
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol '_Xglobal_
lock'
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol '_XUnlockM
utex_fn'
/usr/local/jdk1.1.6/bin/i586/green_threads/java: can't resolve symbol '_XLockMut
ex_fn'
 
 
What is it?



Re: Is there a decent file explorer for Linux?

1998-10-27 Thread Ross Golder

Chi-Ming Yang wrote:
> 
> > I think the java-linux list is for technical issues about the port, but Chi-Ming 
>Yang has raised a question which relates to philosophies of  java and linux.  Can 
>there be a java window manager (Jwm) which will live on any platform and bypass the 
>window managers?
> 
> I thought this is java development for Linux. I will try other groups.
> I got few emails from geeks which did not show up here. They provided me many 
>placese to find "decent" file explorers. I did find some of them I like.
> 
> My ideal is to build better GUI for average person. For those who believe the 
>advantage of Linux, but having difficulty to utilize Linux.
> 
> From those responses that I got, I found there were people trying to do this. One 
>example is at http://www.seul.org/. I will read more, and thanks for all responses.
> 

I favour GNOME, as I have been using it's beta software for 4/5 months,
and it's already improved the way I work. SEUL looks very immature in
comparison. GNOME's being developed by many full-time/part-time and
volunteer developers (inc me), and is sponsored by RedHat. It also works
on non-Linux Unices. 

_Everybody_ wants to make Linux (/Unix) a viable desktop alternative to
Windows, for very obvious reasons (e.g. Windows sucks). If everyone
starts their own project to provide a user-friendly front-end to do
this, so much effort is wasted and/or duplicated. If everyone
collaborated on one project, it would reach fruition much faster, and we
would see the demise of Windows much quicker.

However, GUIs for Linux isn't the subject of this list, unless someone
is planning on writing one in Java, in which case I'd ask 'Why?'

--
Ross



Re: Image scaling

1998-10-27 Thread Uncle George

i suppose this has something with the prob that i was having with drawImage of
demo/molecule viewer.  At initialization time, a shared seg is created between the
client & X server to communicate the images u wanna draw - BUT it is a fixed size,
which is based upon ur first image. Guessing, from my experience, when the images
grow larger, more space is needed, but just not reallocated between client & X
server. Client says new size, server says No Way this image can fit in this shared
space. X refuses to paint, and java ignores the error. User see's a blank screen :(

So this is my guess for this night.

Paul Reavis wrote:

> Noticed something funny today - well, it would be funny, except I've
> already wasted several hours on it.
>
> Once upon a time, I was able to arbitrarily scale my Images when I
> painted them with Graphics.drawImage(image, x, y, width, height,
> observer). Now I'm finding that isn't so.
>






Re: Is there a decent file explorer for Linux?

1998-10-27 Thread Ross Golder

[EMAIL PROTECTED] wrote:
> 
>  This is already failed project, unless you add custom JNI, because
>  ``File'' class does not support all types of file. e.g. Can I execute
>  a file? Is it a symbolic link? Is it character device? Sacrifice for
>  maximum portability.
> 

You could write a Java front-end to a CORBA exported filesystem.

--
Ross, who has no plans to get involved.



bug fixed ..

1998-10-27 Thread Manolis Perakakis

Hi !

I 've been using on Linux versions 1.1.3 & 1.1.6v2 (libc version)
Recently i've downloaded 1.1.6 v5 (also libc version NOT glibc)

with that last version i get the following when trying to run java:

/UNIX/speech3i/home1/users/perak/jdk116_v5/bin/../bin/checkVersions:
{isGreaterOrEqual: command not found
/UNIX/speech3i/home1/users/perak/jdk116_v5/bin/../bin/i486/green_threads/java:
can't load library 'libXp.so.6'

: I don't want to 've any printing capabilities in java , so is there
any way to bypass the problem
& run java without libXp ?( maybe installing by source or changing some
script?)

(I 've got Slackware 3.1 -'96' with 2.0.29 kernel , libc.4.7.6 & 5.4.23
& libdl 1.8.10 )

Also, i had some problems using Buffered stream over a gziped stream via
sockets & some problems with sound(i 've allready reported that here)

Could you tell me about the fixes in 1.1.6 v5 regarding sound & buffered
io?

Also , the bugs you fix are bugs of the compiler , the JVM or both?
(So as , to know if i should recompile from a previous version having
that bug)

Thanks a lot !!
Perhaps if i get more free time in future i would be interested to join
the poring team..
(I currently work on a program for deploying speech recognition on WEB ,
so i use java & Native 
methods , as SUN doesn't support recording !!)

-- 
Perakakis Manolis



appletviewer complaining about LD_LIBRARY_PATH

1998-10-27 Thread Ian Clarke


Hi, I am using JDK1.1.6v5 on a RedHat 5.1 system.  The java interpreter
seems to work (although I haven't tried it out with any programs which use
the AWT) however when I launch Appletviewer it complains about no library
path being set.  If I set the LD_LIBRARY_PATH to /lib then this error
disappears but it complains about something else.  I don't know much about
library paths but a friend told me that I shouldn't need to set the
LD_LIBRARY_PATH to anything for appletviewer to work.  It is possible that
this is an Appletviewer specific problem, or it may be a general problem
with anything which attempts to use the AWT.

I don't have further details to hand right now but I could provide them if
nescessary.

Any ideas anyone?

Ian.

__ 
Ian Clarkehttp://www.dcs.ed.ac.uk/~iic 
  `An intellectual is someone who has been educated beyond their 
  intelligence'



Re: Is there a decent file explorer for Linux?

1998-10-27 Thread Ernst de Haan

[EMAIL PROTECTED] wrote:


>  This is already failed project, unless you add custom JNI, because
>  ``File'' class does not support all types of file. e.g. Can I execute
>  a file? Is it a symbolic link? Is it character device? Sacrifice for
>  maximum portability.


I've read something about this somewhere in the Swing docs or source :).
The FileDialog uses more information than the java.io.File class
provides. I believe the JDK 1.2 File class will be extended to address
these problems.

Ernst

-- 
 _
|  "Come to me all you who are weary and burdened, and I  |
|  will give you rest."   |
| |
| -- Jesus Christ (Mt. 11:28) |
|_|
| Ernst de Haan | email [EMAIL PROTECTED]|
| Java programmer   | web   members.xoom.com/znerd/   |
| Utrecht University| icq#  21871778  |
|___|_|



Re: Image scaling

1998-10-27 Thread Paul Reavis

Uncle George wrote:
> 
> i suppose this has something with the prob that i was having with drawImage of
> demo/molecule viewer.  At initialization time, a shared seg is created between the
> client & X server to communicate the images u wanna draw - BUT it is a fixed size,
> which is based upon ur first image. Guessing, from my experience, when the images
> grow larger, more space is needed, but just not reallocated between client & X
> server. Client says new size, server says No Way this image can fit in this shared
> space. X refuses to paint, and java ignores the error. User see's a blank screen :(

Kevin Hendricks (mailto:[EMAIL PROTECTED]) tells me they've fixed
my bug in the 1.1.7 source; the description he gave sounds much like
yours. 

Incidentally, for the rest of the list - response on that was
phenomenal. Kevin had checked my example code and responded within 30
minutes of my filing the bug report in Jitterbug, and there was a
solution in less than two days. Kudos galore; if Kevin or any other
porting members are ever in Athens GA I've got a beverage for ya.

-- 

Paul Reavis  [EMAIL PROTECTED]
Design Lead
Partner Software, Inc.http://www.partnersoft.com



A bug in appletviewer

1998-10-27 Thread John Summerfield

Extrace the attached java applet into a new directory, say ~/javabug. Call
the file "bug.java."

Compile it as you'd compile any java applet, maybe
javac bug.java

Run the applet thus:
appletviewer bug.java

Click your various mouse buttons on the frame window and take not of its
behaviour.
 Change directory and run it again: maybe
cd ..
appletviewer javabug/bug.java

Note that this time there's a warning message in the top of the window
warning the user that this is an applet window. You will also note that
some of the text the applet attempts to display is obscured by this
message.

This behaviour is different from that I observe with 
   Appletviewer on NT 4.0 Sp1 JDK 1.1.4
   Netscape 4.something on NT
   Netscape 4.06 on Linux
   Appletviewer on OS/2 JDK 1.1.4
   Netscape 2.02 with Java 1.1.4 on OS/2
and in pictures in my book Just Java, Sun Microsystems.

In all these cases, the warning message is at the bottom of the window: in
principle the user can, if something seems obscured, resize the window to see
what's hidden.

I have
[summer@possum public_html]$ java -version
java version "1.1.6"


I don't seem to have the downloaded file to tell me more precisely.
However, the timestamp on java is "Aug 29 19:07."


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


// 
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class bug extends Applet  {
   demoMouse F;
 public void init() { F = new demoMouse("TestFrame"); }
 }
 
class demoMouse extends Frame implements MouseListener {
   String s,s2,s3;

 public void init() {
s="test";
s2="";
s3="";
addMouseListener( this);
setBounds(100,300,900,150);
setBackground(Color.white);
show();
}
 public demoMouse() {super();}
 public demoMouse(String p) {
  super(p);
  init();
 }
 public void mouseExited(java.awt.event.MouseEvent e) {;}
// public void mousePressed(java.awt.event.MouseEvent e) {;}
 public void mouseReleased(java.awt.event.MouseEvent e) {;}
 public void mouseEntered(java.awt.event.MouseEvent e) {;}
 public void mouseClicked(java.awt.event.MouseEvent e) {;}

 
 public void mousePressed(MouseEvent e) {
s="test";
s2="";
if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0) 
   s= "button1 pressed" ;
if ((e.getModifiers() & InputEvent.BUTTON2_MASK) != 0) 
   s="button2 pressed" ;
if ((e.getModifiers() & InputEvent.BUTTON3_MASK) != 0) 
   s="button3 pressed" ;

if ((e.getModifiers() & InputEvent.ALT_MASK) != 0) 
   s2="alt pressed" ;
if ((e.getModifiers() & InputEvent.META_MASK) != 0) 
   s2="meta pressed";
if (e.isPopupTrigger()) 
   s3="Pop the menu";
else s3 = e.toString();
repaint();
 } // end method 
 public void paint(Graphics g)
 {
super.paint(g);
g.drawString(s,5,40);
g.drawString(s2,5,80);
g.drawString(s3,5,120);
 }
 }
 



Re: A bug in appletviewer

1998-10-27 Thread Juergen Kreileder

> John Summerfield writes:

John> Run the applet thus: appletviewer bug.java

John> Click your various mouse buttons on the frame window and
John> take not of its behaviour.  Change directory and run it
John> again: maybe cd ..  appletviewer javabug/bug.java

John> Note that this time there's a warning message in the top of
John> the window warning the user that this is an applet
John> window. 

Not surprising: In the first case bug.class was found in CLASSPATH
(=> no warning message), in the second case not.

John> You will also note that some of the text the applet
John> attempts to display is obscured by this message.

John> This behaviour is different from that I observe with 
John>Appletviewer on NT 4.0 Sp1 JDK 1.1.4
John>Netscape 4.something on NT
John>Netscape 4.06 on Linux
John>Appletviewer on OS/2 JDK 1.1.4
John>Netscape 2.02 with Java 1.1.4 on OS/2
John> and in pictures in my book Just Java, Sun Microsystems.

John> In all these cases, the warning message is at the bottom of
John> the window: in principle the user can, if something seems
John> obscured, resize the window to see what's hidden.

On solaris, unix and other unix system the warning message is at
the top of the window.

John>  public void paint(Graphics g)
John>  {
John> super.paint(g);
John> g.drawString(s,5,40);
John> g.drawString(s2,5,80);
John> g.drawString(s3,5,120);
John>  }
John>  }

When working with frames you have to honor the frame's insets.
The insets include the frames border size, the title bar size,
the menu bar size, the warning bar size.
So it's no bug, your code is not 100% portable ;-)

Have you tried to use something like:

Insets insets = getInsets();
int top = insets.top;
int left = insets.left;
super.paint(g);
g.drawString(s,5 + left ,40 + top);
g.drawString(s2,5 + left ,80 + top);
g.drawString(s3,5 + left ,120 + top);



Juergen

-- 
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: A bug in appletviewer

1998-10-27 Thread Juergen Kreileder

> Juergen Kreileder writes:

Juergen> On solaris, unix and other unix system the warning message is at
Juergen> the top of the window.

Should have been: With the JDK on solaris, linux and other unix system 
the warning message is at the top of the window.


Juergen



Graphics Blaster Extreeme

1998-10-27 Thread Bryan Davis

I havent gotten my Diamond G460 i740 card to work with X yet.  So i put in
my Graphics Blaster Extreeme 8 meg card and got a server from SusE site and
it seems to be working fine but its very slow it seems when running Window
Maker at 1280x1024 32 bppany suggestions on making it faster besides
the obvious of running lower res and color modeslike a different server
maybe that supports permedia2 besides the suse one.

Thanks in advance.

Bryan Davis




Re: Graphics Blaster Extreeme

1998-10-27 Thread Java News Collector

What has this got to do with Java on Linux ?

At 02:52 PM 10/23/98 -0500, Bryan Davis wrote:
>I havent gotten my Diamond G460 i740 card to work with X yet.  So i put in
>my Graphics Blaster Extreeme 8 meg card and got a server from SusE site and
>it seems to be working fine but its very slow it seems when running Window
>Maker at 1280x1024 32 bppany suggestions on making it faster besides
>the obvious of running lower res and color modeslike a different server
>maybe that supports permedia2 besides the suse one.
>
>Thanks in advance.
>
>Bryan Davis
>
>



installation problems

1998-10-27 Thread Meng Shen

Hi,

I am pretty new to java and linux.  I need your help on the following
problem.
after extracting "jdk_1_1_6-v5-libc5-x86_tar.gz" to one directory, I
run "java".

I got the error message like the following:

...Checkversions: {isGreaterOrEqual: command not found
..bin/i586/green_threads/java: can't load library 'libXp.so.6'.

The Linux version is Redhat 4.2. Kernel is 2.0.30

How to fix this problem quickly? I mean I can do it without upgrading
the
whole OS.

Thanks

Meng Shen








Re: Graphics Blaster Extreeme

1998-10-27 Thread Jason Dillon

Nothing.

--jason


On 27-Oct-98 Java News Collector wrote:
> What has this got to do with Java on Linux ?
> 
> At 02:52 PM 10/23/98 -0500, Bryan Davis wrote:
>>I havent gotten my Diamond G460 i740 card to work with X yet.  So i put in
>>my Graphics Blaster Extreeme 8 meg card and got a server from SusE site and
>>it seems to be working fine but its very slow it seems when running Window
>>Maker at 1280x1024 32 bppany suggestions on making it faster besides
>>the obvious of running lower res and color modeslike a different server
>>maybe that supports permedia2 besides the suse one.
>>
>>Thanks in advance.
>>
>>Bryan Davis
>>
>>



Re: installation problems

1998-10-27 Thread hiro

Hello.  I got same problem and solved it.  And this is my first mail
to java-linux Mailing List.  I'm a japanese student, so my English may
be strange.  I'm sorry.  m(..)m

mshen> ...Checkversions: {isGreaterOrEqual: command not found

Edit the bin/checkVersions file and modify

from

>if isGreaterOrEqual "$libdlVers" 1.9.6 ||
>   {isGreaterOrEqual "$libcVers" 1.5.44 &&
>isGreaterOrEqual "$libdlVers" 1.9.9}

to

>if isGreaterOrEqual "$libdlVers" 1.9.6 ||
>   { isGreaterOrEqual "$libcVers" 1.5.44 &&
>isGreaterOrEqual "$libdlVers" 1.9.9 }

You can find with emacs's i-serch "{isGreater" easily.

mshen> ..bin/i586/green_threads/java: can't load library 'libXp.so.6'.

This message tells you to use X11R6.4.  But you can solve this problem
with installing only libXp.so.6 into your linux box.

mshen> The Linux version is Redhat 4.2. Kernel is 2.0.30

I'm sorry, I don't know RedHat Linux.  As for me, for example, I'm a
Slackware user, getting a x332bin.tgz from slackware site(
www.cdrom.com ).  And I installed only libXp.so.6.2 like following.

# tar xvzf x332.tgz -C /tmp
# cp /tmp/usr/X11/lib/libXp.so.6.2 /usr/X11/lib
# cd /usr/X11/lib
# ln -sf libXp.so.6.2 libXp.so.6
# /sbin/ldconfig

Good luck.

Hirotaka Igarashi
[EMAIL PROTECTED]



Re: Is there a decent file explorer for Linux?

1998-10-27 Thread peter . pilgrim

 This is already failed project, unless you add custom JNI, because 
 ``File'' class does not support all types of file. e.g. Can I execute 
 a file? Is it a symbolic link? Is it character device? Sacrifice for 
 maximum portability.
 
Pete

__ Reply Separator _
Subject: Re: Is there a decent file explorer for Linux?
Author:  jrwatson ([EMAIL PROTECTED]) at lon-mime
Date:26/10/98 09:57


 
Chi-Ming Yang wrote:
 
>I think it is not difficult to use swing to do one. Do you think it is wort
hy to write one? Would anyone Linux user like it?
 
I think the java-linux list is for technical issues about the port, but Chi-Ming
 Yang has raised a question which relates to philosophies of  java and linux.  C
an there be a java window manager (Jwm) which will live on any platform and bypa
ss the window managers?
"Write once run anywhere" imples there will always be lots of something else to 
run in. Can someone advise a more appropriate place to read about this? I have l
ooked at
 
http://sunsite.unc.edu/javafaq/mailinglists.html
 
jim watson