Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Java 3D SimpleSounds Example

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have been trying to mess around with Java 3D, in particular the 3D sound engine, I found this example code for a SimpleSounds Applet and im getting compiling errors with the example code, I was just wondering does anyone have any experience with this example and how to get it working?

So the error is

Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
at SimpleSounds.<init>(
at SimpleSounds.main(

And the example code is

Thanks in advance for any help with this issue!

Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no experience, but the Canvas3D API I found specifically prohibits a null parameter, making your statement at line 47 unacceptable. I accept that an API I found randomly on the web may not correspond to the actual library you're using, so please consider my suggestion suspect until proven otherwise.
Alas, poor Yorick, he knew this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic