• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UnsatisifedLinkError exception. why am I getting this?

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to use printStackTrace() method in exception handling which will tell you about the origin of the problem.
reply
    Bookmark Topic Watch Topic
  • New Topic