Win a copy of Svelte and Sapper in Action this week in the JavaScript 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java imageing

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm getting an error when I load the default toolkit.It's in the following line :
Toolkit toolkt = Toolkit.getDefaultToolkit();
I've also tried this instead of using the toolkit(I wanted to use it to manipulate an image):
Image image = (new ImageIcon("filename.jpg")).getImage();
but I keep getting the same error (an UnsatisfiedLinkError).
I'm using JAI with j2sdk1.4 and everything is being run on solaris 8
thanks
Brendan
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your .jpg file in the classpath?
 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The directory it's in is.
I'm almost hopeing that isn't the answer cos I'm after giving out to the admins to try and get them to update the JNI drivers on the server :/
Anyways,
thanks,
Brendan
 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ah, it's not. don't know how to feel
 
Don't play dumb with me! But you can try this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic