Thread: [Tpm4java-users] problem regarding javaddl & java.library.path
Brought to you by:
tews
From: Daniel P. <pin...@gm...> - 2009-07-23 20:53:55
|
Hello all, I have reached a confusing error while programming with tpm4java. Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this error output: Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at Utils.TPMOwnership.main(TPMOwnership.java:45) I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have already tried System.load(path) to get the javaddl file but I get: Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl I have tried this at netbeans & eclipse with same results, I am using the VM option (-Djava.library.path= path) as well. Anyone has an idea? Regards, Daniel |
From: Andrés R. L. <des...@ho...> - 2009-07-23 21:15:52
|
Hello, I remember that when i was programming with TPM4JAVA in linux i was also using tpmemulator, a kernel module for linux that emulates a TPM. Are you using tpmemulator? You can download it from the project page http://developer.berlios.de/projects/tpm-emulator/ Hope it can help you. From: Daniel Pina Sent: Thursday, July 23, 2009 10:53 PM To: tpm...@li... Subject: [Tpm4java-users] problem regarding javaddl & java.library.path Hello all, I have reached a confusing error while programming with tpm4java. Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this error output: Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at Utils.TPMOwnership.main(TPMOwnership.java:45) I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have already tried System.load(path) to get the javaddl file but I get: Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl I have tried this at netbeans & eclipse with same results, I am using the VM option (-Djava.library.path= path) as well. Anyone has an idea? Regards, Daniel -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ -------------------------------------------------------------------------------- _______________________________________________ Tpm4java-users mailing list Tpm...@li... https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Daniel P. <pin...@gm...> - 2009-07-23 21:24:28
|
Yes, I am using tmp emulator. After the first e-mail I checked the dev/tpm/ directory, which is inexistent. Even in case of using the emulator there should be one there right? Probably wrong-configuration, I will try to install it again. |
From: Andrés R. L. <des...@ho...> - 2009-07-23 21:46:47
|
As Erik said it can be a file permission problem, check it out. From: Daniel Pina Sent: Thursday, July 23, 2009 11:24 PM To: tpm...@li... Subject: Re: [Tpm4java-users] problem regarding javaddl & java.library.path Yes, I am using tmp emulator. After the first e-mail I checked the dev/tpm/ directory, which is inexistent. Even in case of using the emulator there should be one there right? Probably wrong-configuration, I will try to install it again. -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ -------------------------------------------------------------------------------- _______________________________________________ Tpm4java-users mailing list Tpm...@li... https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Erik T. <er...@de...> - 2009-07-23 21:25:21
|
Hi, /dev/tpm is read and writeable by the user who is running the code? Am Donnerstag, den 23.07.2009, 21:53 +0100 schrieb Daniel Pina: > Hello all, > > I have reached a confusing error while programming with tpm4java. > Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I > code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this > error output: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl > in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) > at java.lang.Runtime.loadLibrary0(Runtime.java:840) > at java.lang.System.loadLibrary(System.java:1047) > at > de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) > at > de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) > at > de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) > at Utils.TPMOwnership.main(TPMOwnership.java:45) > > > I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have > already tried System.load(path) to get the javaddl file but I get: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load > library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl > > > I have tried this at netbeans & eclipse with same results, I am using > the VM option (-Djava.library.path= path) as well. Anyone has an idea? > > Regards, > Daniel > > ------------------------------------------------------------------------------ > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users |