[Simsec] java can't find libosmosim.so

Lukas Kuzmiak lukas at srlabs.de
Tue May 19 02:10:16 CEST 2015


Hello,

sorry for a late answer.

You haven’t put the libosmosim.so into the correct path, I’m not quite sure what the path might be on your system, you need to find that out.

Ideally by running a Java program, something like this should do:

package test2;

public class test8 {

    public static void main(String[] args) {
        System.out.println(System.getProperty("java.library.path"));
    }
}

That should print out a couple of paths delimited by : - similar to PATH variable.

Then just put libosmosim.so into one of them and you should be good to go.

Cheers,
Lukas

> On 13 May 2015, at 08:28, ty <tyruskam at gmail.com> wrote:
> 
> Morning folks
> 
> I seem to have a problem running SIMTester manually, ie via java -jar. The exception thrown is shown below indicating that the JVM can't find the library yet I copied it to the respective java path library. Im running on Oracle Java 7.1 on ubuntu 12.04 LTS
> 
> tyrus at the-jedi-council:~/simtester$ java -jar SIMTester.jar -tf OsmocomBB
> 
> ########################################
>   SIMTester v1.5, 2014-01-03
>   Lukas Kuzmiak (lukas at srlabs.de <mailto:lukas at srlabs.de>)       
>   Security Research Labs, Berlin, 2013  
> ########################################
> 
> Using OsmocomBB mobile as SIM card reader
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no osmosim in java.library.path
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
> 	at java.lang.Runtime.loadLibrary0(Runtime.java:849)
> 	at java.lang.System.loadLibrary(System.java:1088)
> 	at de.srlabs.simlib.osmocardprovider.OsmoJNI.loadLib(OsmoJNI.java:7)
> 	at de.srlabs.simlib.osmocardprovider.OsmoCardTerminal.<clinit>(OsmoCardTerminal.java:11)
> 	at de.srlabs.simlib.osmocardprovider.OsmoCardTerminals.list(OsmoCardTerminals.java:25)
> 	at javax.smartcardio.CardTerminals.list(CardTerminals.java:72)
> 	at de.srlabs.simlib.ChannelHandler.<init>(ChannelHandler.java:60)
> 	at de.srlabs.simlib.ChannelHandler.getInstance(ChannelHandler.java:101)
> 	at de.srlabs.simtester.Main.handleOptions(Main.java:396)
> 	at de.srlabs.simtester.Main.main(Main.java:98)
> 
> Graceful shutdown initiated. Trying to close all open channels. Please wait... !
> 
> Sorry for the long error post.
> 
> Thanks
> 
> -ty
> 
> _______________________________________________
> Simsec mailing list
> Simsec at lists.srlabs.de
> https://lists.srlabs.de/cgi-bin/mailman/listinfo/simsec

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.srlabs.de/pipermail/simsec/attachments/20150519/034c0bd3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4100 bytes
Desc: not available
URL: <http://lists.srlabs.de/pipermail/simsec/attachments/20150519/034c0bd3/attachment.bin>


More information about the Simsec mailing list