File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes How to find out what are in .so lib file on linux? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "How to find out what are in .so lib file on linux?" Watch "How to find out what are in .so lib file on linux?" New topic
Author

How to find out what are in .so lib file on linux?

Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I tried "ar t libABC.so" which does not work. It works on cygwin for .a files.

What else command can I use?

Thanks a lot!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

ar t works on Linux too -- for *.a files.

For .so files, you can use nm. Just "nm foo.so" will list all the symbols.


[Jess in Action][AskingGoodQuestions]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Thanks EFH
I tried it, and it gave me many symbols I am not quite sure what is what...

Does that mean there are no .o files inside .so any more?

Thanks!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

No, I don't believe there are.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to find out what are in .so lib file on linux?
 
Similar Threads
Complex DAO
Servlet Response
3.0M5
ICQ Number
what is that?