From: Donnie . <abd...@ho...> - 2009-08-24 11:28:22
|
Dear Developers, I have recently started working on jTss with TPM Emulator. I run TPM Emulator with no problem. I have downloaded and unziped jTss in ubuntu. I am just experimenting whether jTss is working or not. so I wrote a simple program to connect the TcIContext. But it is giving me error that > Unable to open TPM device file /dev/tpm. Reason: /dev/tpm (Input/output error). Though I have changed the permissions of /dev/tpm* by using the command chmod 777, but still its not working. My code is given below: public class firstClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { TcIContext context = new TcTssContextFactory().newContextObject(); context.connect(); context.closeContext(); }catch (TcTssException e) { e.printStackTrace(); } } } What might be the problem? and how can i solve it in ubuntu i.e, i can be able to read/write /dev/tpm file? Secondly I wana ask you that while making a java application, which will be using TPM, wat I hav to do, whether I hav to import only the related libraries from jTss folder or I hav to import whole jTss folder into my eclipse to run my application? I am confused about it. Because my be there is some setup to do before making java application in ubuntu. Waiting for your replies. THanks, Best Regards, iennoD _________________________________________________________________ Share your memories online with anyone you want. http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1 |