Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unsatisfied Link error  RSS feed

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am running linux fedora core 1
i am using j2sdk1.4.1
i get a unsatisfied link error when i try to use a gui component
can someone help me out...
as long as i donot use awt components the application runs fine

Regards
Simon
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use swing. IMHO AWT is dated and sucks.
 
author and iconoclast
Sheriff
Posts: 24219
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that Swing builds on AWT. No AWT, no Swing.

Sounds like your installation is a little broken. First, we need to figure out what Java you're running. Did you install a Sun JDK, or are you using the GCJ/Kaffe/whatever combination? Type

java -version

and let us know what you see. If it doesn't seem to be Sun's JVM, my recommendation is to simply delete the gcj/kaffe/whatever, and install Sun's JDK.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, it will help if you copy and paste the EXACT error message. By paraphrasing, you lose important information that we need in order to help you.

Layne
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Note that Swing builds on AWT. No AWT, no Swing.


but is there a reason for him to to use straight AWT over Swing? If it just is building on it, does that mean Swing wont work for him either?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24219
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. If AWT doesn't work, Swing won't work, either. javax.swing.JFrame, for example, is a subclass of java.awt.Frame. Can't make a Swing GUI without a JFrame!
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh sorry... ... *hides head in shame*
 
I think I'll just lie down here for a second. And ponder this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!