File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes UnsatisifedLinkError exception.  why am I getting this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "UnsatisifedLinkError exception.  why am I getting this?" Watch "UnsatisifedLinkError exception.  why am I getting this?" New topic
Author

UnsatisifedLinkError exception. why am I getting this?

tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
My applet is running in the background of a page. Then all of a sudden, this message will pop up ...
java/lang/UnsatisifedLinkError Exception was not handled.
I know it's an exception that I need to catch, but I can't figure out where it's occuring in my code or even why it's occuring. Does anyone see a reason that this would be happening? Thanks.
Rakesh Ray
Ranch Hand

Joined: Jul 25, 2001
Posts: 51
Look at java console and it will tell you from where this is coming.
My best guess would be, if you have compiled your applet code with java2( becuase you are using some method exclusively available in 1.2) and your browser's jvm is 1.? then you should get this problem.
tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
I've written my applet to be 1.1 compliant though so that I wouldn't have issues with anyone who didn't have anything higher installed. I don't know what part of my code isn't 1.1 compliant. Do you see anywhere where it isn't? Thanks.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Even if you aren't including any post-1.1 classes, you may still need to compile with the target switch like this:
javac -target 1.1 Whatever.java
This is probably only necessary if you're using Sun's Java SDK 1.4 or newer (I'm not familiar with any third party Java compilers).
For more information on javac, take a look at The javac Documentation.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rakesh Ray
Ranch Hand

Joined: Jul 25, 2001
Posts: 51
Try to use printStackTrace() method in exception handling which will tell you about the origin of the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisifedLinkError exception. why am I getting this?