This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 24220
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: 24220
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*
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!