Re: libjava.so: cannot open shared object file

1999-12-13 Thread gerd

Hello Juergen, Emmanuel>

thank you for your suggestions!

   From: Juergen Kreileder <[EMAIL PROTECTED]>
   Date: 11 Dec 1999 00:48:42 +0100

   This command should show what exactly was missing:

   $ DEBUG_PROG=ldd java

After we added the path of libjava.so explicitly to /etc/ld.so.conf
we got:

[muster@192 muster]$ DEBUG_PROG=ldd java
java: error in loading shared libraries: 
/usr/local/jdk117_v1a/lib/i686/green_threads/libjava.so: undefined symbol: 
_dl_symbol_value
[muster@192 muster]$ cat /etc/ld.so.conf
/usr/lib
/usr/i486-linux-libc5/lib
/usr/X11R6/lib
/usr/local/jdk117_v1a/lib/i686/green_threads

The strange thing is:

[muster@192 green_threads]$ nm libjava.so | grep _dl_symbol_value
 U _dl_symbol_value
[muster@192 /lib]$ nm libc.so.6 | grep _dl_symbol_value
000d8e18 t _dl_symbol_value

Gerd




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



Re: libjava.so: cannot open shared object file

1999-12-13 Thread Juergen Kreileder

> gerd  writes:

gerd> [muster@192 muster]$ DEBUG_PROG=ldd java
gerd> java: error in loading shared libraries: 
/usr/local/jdk117_v1a/lib/i686/green_threads/libjava.so: undefined symbol: 
_dl_symbol_value

You need 1.1.7-v3 or higher.


Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html


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



Re: appreciating sun

1999-12-13 Thread Ted Neward

Well said, all around.

Ted Neward
Java Instructor, DevelopMentor ( http://www.develop.com )
http://www.javageeks.com/~tneward

-Original Message-
From: noisebrain <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, December 13, 1999 1:07 AM
Subject: appreciating sun


>I find some of the sun-bashing both counter-productive and
>slightly embarrassing.
>
>Personally, I *want* new versions of the jdk to be released 
>in synch with the Windows and Solaris releases, rather than
>a year later.  I want Sun to support Linux rather than
>think that we're all a bunch of crazed flamers.
>
>Sun made a mistake, but they have apologized now in several places.
>
>The "Sun will never be our friend"/"Sun is an evil corporation"
>speak strikes me both as irrelevant and as a bit immature.
>Despite open source, I doubt that your local supermarket will
>be free anytime soon.  Corporations will continue to exist.
>
>Sun is the creator of Java, and they don't have to give it away to 
>anyone.  They certainly don't have to port it to Linux... but they 
>chose to put some little bit of energy into this.  The community 
>does appreciate Blackdown.  Why resent Sun for helping us?
>
>"We don't need Sun"/use Kaffe/etc.  No, I think we do:  Java wouldn't
>have become a standard without Sun's backing, and Java wouldn't
>be worth my mindshare if it wasn't a standard - there are other
>more advanced/interesting languages out there, but most people
>can't afford to re-invent the wheel in an advanced but obscure language.
>  Further, Sun is driving Java development, Kaffe isn't.  No one
>is preventing the open source community from pushing Java ahead,
>or from developing a better-than-java successor, etc.  Historically
>though Open Source seems to do well at re-implementing well established
>standards.  One of my gripes with Linux is that it has a 70s mindset -
>anything that is late 90s (streaming media, videoconferencing, java) 
>will be part of your packaged RH cd years after it appears on win/mac.
>
>"Sun doesn't get open source."  Well, Sun is a corporation, but
>among corporations they seem to get it more than most.  McNealy(?)
>said last week that the software is becoming free, they're releasing
>source to Solaris (albeit under their license), etc.
>
>Sun has apologized, so has Inprise, let's accept their apologies
>for a change?
>
>
>
>
>
>--
>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]



Using native classes

1999-12-13 Thread benito . meeuwis

Hi,

How can I get a reference to a native class in a shared library and use the functions 
? An example would be very welcome !!

Thanks ...

E-Mail : [EMAIL PROTECTED]

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



Solved SIGSEGV 11* !!!

1999-12-13 Thread Anthony G. Starovojtov

I've got segmentation violation error while trying to run simple JNI
program.
I use RedHat 6.1, glibc 2.1, jdk117v3.

I've read all the solutions in FAQ but nothing helped.

Well, once more solution is to compile C library with -shared key. After
that all works.

gcc -shared -I/jdk/include -I/jdk/include/genunix file.c -o libfile.so

Cheers
Anthony


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



Help!!!

1999-12-13 Thread Pramila




Hi,
 
    Could anyone of  you please let 
me know how I can debug java native methods on Linux...
    

    Thanks in advance...
 
Bye
Pramila


Re: Help!!!

1999-12-13 Thread Nathan Ehresman

> Could anyone of  you please let me know how I can debug java
> native methods on Linux...

hello,

i am doing this exact thing this morning.  there has been a lot of
discussion about how to do this on this list already.  i suggest looking
through the mailing list archives for some really GREAT suggestions and
help.  here is a link to one posting that has helped me a bit:

http://www.mail-archive.com/java-linux@java.blackdown.org/msg08818.html

again, i suggest looking through the archives for some great help.

Nathan Ehresman


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



Re: Using native classes

1999-12-13 Thread Trent Jarvi

I've not seen a way to call say.. libc printf from
java.  printf is usually wrapped in a native function
that matches java's calling method.  More recently
this is done through the java native interface.  

You have probably seen the 'trail' for calling native
functions from java methods. 
http://java.sun.com/docs/books/tutorial/native1.1/index.html

There are examples with source code of less trivial
tasks on blackdown's products page.

Trent Jarvi
[EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> How can I get a reference to a native class in a
> shared library and use the functions ? An example
> would be very welcome !!

__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com


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



Re: another possibility wrt the press-release.

1999-12-13 Thread Peter Pilgrim



[EMAIL PROTECTED] wrote:
> 
> Mike Ajemian wrote:
> > > Let me suggest a motive that makes sense. Inprise makes IDEs. IDEs
> > > include debuggers...Connect the dots.
> >
> > This was the point, Einstein.  Inprise relies on its brand.  I didn't
> > think I had to spell this out to the nth degree (I mean, who in this
> > discussion doesn't know about ownership of Java and the JDK?).
> 

> I'm sorry to keep hammering on the communications thing, but there is a
> lot of experience in this group to support it. When I tried to contact
> Blackdown about including the Blackdown JDK with my book (a simple
> enough question), it took me many attempts to get an answer. My other
> book-related queries were ignored completely. A look through past mail
> turns up many similar experiences: developers willing to sign the SCSL
> but unable to participate, questions about schedule and availability
> that were never answered, and so on. How about that JDK1.2.2... did you
> know it was coming? As far as I can tell, nobody else outside of
> Blackdown did (and, BTW, JBuilder3 requires 1.2.2).
> 
> To quote Einstein (where did I see his name recently? :-), "Things
> should be made as simple as possible, but not any simpler." I've
> presented a simple explanation supported by facts and experience. I'm
> ready to hear your simple explanation.

Well there is a poor communication from Blackdown 
particularly in terms what they could have achieved from the
web. There was JDK1.2 status page but it was poor compared
to the efforts of Mozilla or even java.apache.org. Imagine
we have all of this fabulous technology ...

Ok nobody expected web designers, but they could recruited a good
webmaster or content designer to keep all of us up to date
on what was really going on. In other words get some more
recruits. I am sure they could have found a volunteer to go
act as go-between between the developers and the public list.
I think I read somewhere that a Top Sun bloke did try
to contact the blackdown list, but could n;t get thru.
Reminds me of Banarama "Hanging on the telephone ..."
If they 'd have asked for some perl scripts or java scripts
to turn simple text changelog into a web page, then they'd
have gotten em. I find it incredible that you can find
out what "Alan Cox has been hacking today.", but you can't
do they same for "Blackdown". May be the sun license prevents
them ...

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
T H ER E D   A R M Y! ! !   http://www.manutd.com/
http://www.xenonsoft.demon.co.uk/dairy/dairy.html


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



Re: permissions

1999-12-13 Thread Joseph Shraibman

Matthias Pfisterer wrote:

> Hi,
>
> it should be possible to determine this by trial-and-error. Remove that
> AllPermissions and run your program. Watch out for the first
> SecurityException. It usually can be derived from the error message
> which permission is missing. Grant this permissen, then run you prg
> again...
>
> Matthias

Good idea, but the security exception does not make it to my code (in the rmi
program) and I can't hack up rmiregistry.


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



Re: another possibility wrt the press-release.

1999-12-13 Thread Nathan Meyers

These are good and reasonable suggestions, but I hope we don't get into
a game of could-of/should-of/would-of w.r.t. Blackdown project
communications. The team communicated news when there was news, and did
have to deal with a lot of persistent "when is it coming?" questions
they could not answer.

My point was that responsiveness has been a real problem. The reaction
to this meltdown, "Inprise didn't try hard enough to reach us", has been
disappointing and I continue to be disappointed by the Blackdown refusal
to accept *any* of the responsibility for the disconnect with Inprise.
It wouldn't be the end of the world to admit that mistakes were made,
and to figure out how to prevent them in the future. I'd even be so bold
as to suggest that doing so would make a cooperative project to merge
all the fixes much more likely.

Nathan


Peter Pilgrim wrote:
> 
> [EMAIL PROTECTED] wrote:
> >
> > Mike Ajemian wrote:
> > > > Let me suggest a motive that makes sense. Inprise makes IDEs. IDEs
> > > > include debuggers...Connect the dots.
> > >
> > > This was the point, Einstein.  Inprise relies on its brand.  I didn't
> > > think I had to spell this out to the nth degree (I mean, who in this
> > > discussion doesn't know about ownership of Java and the JDK?).
> >
> 
> > I'm sorry to keep hammering on the communications thing, but there is a
> > lot of experience in this group to support it. When I tried to contact
> > Blackdown about including the Blackdown JDK with my book (a simple
> > enough question), it took me many attempts to get an answer. My other
> > book-related queries were ignored completely. A look through past mail
> > turns up many similar experiences: developers willing to sign the SCSL
> > but unable to participate, questions about schedule and availability
> > that were never answered, and so on. How about that JDK1.2.2... did you
> > know it was coming? As far as I can tell, nobody else outside of
> > Blackdown did (and, BTW, JBuilder3 requires 1.2.2).
> >
> > To quote Einstein (where did I see his name recently? :-), "Things
> > should be made as simple as possible, but not any simpler." I've
> > presented a simple explanation supported by facts and experience. I'm
> > ready to hear your simple explanation.
> 
> Well there is a poor communication from Blackdown
> particularly in terms what they could have achieved from the
> web. There was JDK1.2 status page but it was poor compared
> to the efforts of Mozilla or even java.apache.org. Imagine
> we have all of this fabulous technology ...
> 
> Ok nobody expected web designers, but they could recruited a good
> webmaster or content designer to keep all of us up to date
> on what was really going on. In other words get some more
> recruits. I am sure they could have found a volunteer to go
> act as go-between between the developers and the public list.
> I think I read somewhere that a Top Sun bloke did try
> to contact the blackdown list, but could n;t get thru.
> Reminds me of Banarama "Hanging on the telephone ..."
> If they 'd have asked for some perl scripts or java scripts
> to turn simple text changelog into a web page, then they'd
> have gotten em. I find it incredible that you can find
> out what "Alan Cox has been hacking today.", but you can't
> do they same for "Blackdown". May be the sun license prevents
> them ...
> 
> --
> 
> Adios
> Peter
> 
> -
> import std.Disclaimer;  // More Java for your Lava, Mate.
> T H ER E D   A R M Y! ! !   http://www.manutd.com/
> http://www.xenonsoft.demon.co.uk/dairy/dairy.html
> 
> --
> 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]



Tritonus 0.1.81 available

1999-12-13 Thread Matthias Pfisterer

Hi,

there are good news for Linux-JavaSounders: Tritonus is moving towards a
0.2 release. Features planned for 0.2 include:
- JavaSound 0.90 interface
- support for the Enlightenment Sound Daemon
- Clips and recording
- volume and pan control
- complete file handling stuff, including mp3
- format converters

The current version 0.1.81 advances over 0.1.80 in these points:
- audio file writing for .au files
- Clips for esd
- several bugs fixed

This release can be downloaded from the usal page:
http://rupert.informatik.uni-stuttgart.de/~pfistere/tritonus/

If you found bugs, have suggestions, want to contribute or whatever, you
can contact me: mailto:[EMAIL PROTECTED]

If you're interested in taking part on the development, you may have a
look at the Tritonus dveloper page:
http://rupert.informatik.uni-stuttgart.de/~pfistere/tritonus/developer.html

Have fun!


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



RMI without http server?

1999-12-13 Thread Jean-Pierre Fournier



Hi Folks,

I'm hoping that some RMI guru can help
me get started.  I'm trying to create a
simple RMI client/server on a single computer,
but something is choking in the rebind() call.

linux 2.0.38
java "1.1.7B" 

in window 1:


[jape@jaguar jape]$ echo $CLASSPATH

[jape@jaguar jape]$ rmiregistry  



in window 2:


[jape@jaguar test2]$ pwd
/usr/home/jape/test2
[jape@jaguar test2]$ echo $CLASSPATH
/usr/home/jape
[jape@jaguar test2]$ ls
Jape.java Server.java   ServerInterface.java







[jape@jaguar test2]$ cat ServerInterface.java
package test2;


import java.rmi.Remote;  
import java.rmi.RemoteException; 



public interface ServerInterface extends Remote {

   public void testMethod( ) throws RemoteException;


}




[jape@jaguar test2]$ cat Server.java


package test2;

import java.rmi.*;
import java.rmi.server.*;   

public class Server extends UnicastRemoteObject implements
ServerInterface {


   private static final String name = "rmi://localhost/Server";



   public Server ()  throws RemoteException {
  super(); 

   }
   
   
   public void testMethod  (  ) throws RemoteException {
  System.err.println(" testmethod run ");
   }

   public static void main (String args[]) {
  try {
 System.out.println( "main");
 if ( System.getSecurityManager() == null )
 System.setSecurityManager(new RMISecurityManager());

 Server result = new Server();
 Naming.rebind( name, result );
  } catch (RemoteException e ) {
 System.err.println("remote exception in main ");
 e.printStackTrace();
  } catch ( java.net.MalformedURLException e ) {
 System.err.println("malformed url in main ");
 e.printStackTrace();

  }
  System.out.println( "after main");
   }
}




[jape@jaguar test2]$ cat Jape.java 


package test2; 

import java.rmi.*;


public class Jape  {

   public static void main( String [] args ) {
 if ( System.getSecurityManager() == null ) 
 System.setSecurityManager( new RMISecurityManager() );
   
  try { 
 ServerInterface server = 
   (ServerInterface) 
   Naming.lookup( "rmi://localhost/Server" );

 System.out.println( "running... " );
 server.testMethod( ) ;

  } catch (Exception e ) {
  e.printStackTrace();
  }
   }

}


[jape@jaguar test2]$ rmic test2.Server
[jape@jaguar test2]$ ls
Jape.class Server.javaServer_Skel.class
Jape.java  ServerInterface.class  Server_Stub.class
Server.class   ServerInterface.java  

[jape@jaguar test2]$  java
-Djava.rmi.server.codebase=file:/usr/home/jape/ test2.Server

main
remote exception in main 
java.rmi.ServerException: Server RemoteException; nested exception is: 
java.rmi.AccessException: Registry.rebind
after main




Any thoughts or pointers would be appreciated.

regards

jp


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



Re: RMI without http server?

1999-12-13 Thread Andrew


> [jape@jaguar test2]$  java
> -Djava.rmi.server.codebase=file:/usr/home/jape/ test2.Server
> 
> main
> remote exception in main 
> java.rmi.ServerException: Server RemoteException; nested exception is: 
> java.rmi.AccessException: Registry.rebind
> after main
> 
> 

just wondering if yu have a java security policy file ??

maybe try placing this file in your home directory :-

>cat .java.policy 
/* AUTOMATICALLY GENERATED ON Wed Mar 10 20:30:42 GMT+10:30 1999*/
/* DO NOT EDIT */

grant {
  permission java.security.AllPermission;
};
>


cya
andrew



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