• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Java Advanced Imaging Error (JAI)

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just downloaded and installed JAI for Windows JDK and the Samples files. Then I tried to run JAIDemo sample. But I am receiving the following error. Could anybody point out what I am doing wrong.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at JAIDemo.<init>(JAIDemo.java:451)
at JAIDemo.main(JAIDemo.java:608)
Thanks you
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is because the classpath evironment variable does not have the Jai jar. When we install JAI, a jar file for JAI is put in the jre/lib/ext folder. This should generally be available in the class path.
But I too encountered this problem, and had to explicitly specify the classpath. Then it worked. There was no problem compiling the programs.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic