Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Why I always get "java.lang.UnsatisfiedLinkError"?

Oct 3, 2012 8:16AM PDT

I try to insert two Java program today without a luck due to

Exception in thread "main" java.lang.UnsatisfiedLinkError: java.io.WinNTFileSystem.createFileExc
lusively(Ljava/lang/String;Z)Z

One instruction says:

Start "cmd.exe" using "Run as administrator"
Change directory to the file location
Run "java -jar ...."

I follow the above instruction and still get the error. I log in Vista as an administrator account.

Discussion is locked

- Collapse -
Answer
Re: error
Oct 3, 2012 8:32AM PDT
- Collapse -
..
Oct 3, 2012 10:12AM PDT

I am aware that it is a Java programming problem. But it also seems to me the Vista administrator right plays a role in the case.

- Collapse -
You're right.
Oct 4, 2012 2:52AM PDT

And it can also be caused by the PATH as well.

With that out of the way, the author of the app must step in and tell you what is needed to resolve this or you as the author change the code or tell the users to run as administrator.

Once in a while you encounter a new programmer that thinks this is a bug in the OS. Hilarity follows.
Bob