File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsatisifedLinkError exception. why am I getting this?

 
tyler jones
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rakesh Ray
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to use printStackTrace() method in exception handling which will tell you about the origin of the problem.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic