Can't figure out how to fix error. Please help.

When I try to run the program I compiled, this is the error I recieved:
Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:963)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1006)
at HelloJava3Da.<init>(HelloJava3Da.java:16)
at HelloJava3Da.main(HelloJava3Da.java:45)
Any thoughts about how to fix?

import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.*;
import javax.vecmath.*;
public class HelloJava3Da extends Applet
     public HelloJava3Da()
          setLayout(new BorderLayout());
          Canvas3D canvas3D = new Canvas3D(null);
          add("Center", canvas3D);
          BranchGroup scene = createSceneGraph();
          scene.compile();
          SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
          simpleU.getViewingPlatform().setNominalViewingTransform();
          simpleU.addBranchGraph(scene);
     public BranchGroup createSceneGraph()
          BranchGroup objRoot = new BranchGroup();
          objRoot.addChild(new ColorCube(0.4));
          return objRoot;
public static void main(String[] args)
Frame frame = new MainFrame(new HelloJava3Da(), 256, 256);
}

Similar Messages

  • My lifetime calls is glitched at 4,924,000,000 and I can not figure out how to reset this PLEASE HELP URGENTLY I don't know how to resolve this

    My IPhones total life time calls is at 4,924,000,00 and I can't figure out if this is a glitch because I know that I have DEFIANTLY not called for that long I don't know if this will be resolved but someone PLEASE HELP

    Glad it helped!
    For what it's worth, I suspect you'd have to restore the phone as new to resolve the issue. If it were mine, I'd probably elect to live with the weirdness rather than go through the fuss of a restore.
    Best of luck.

  • I want to put my photo on my iMessages profile, and I can't figure out how to do it, please help?

    iMessages profile, how do I add a photo to my account on my mini ipad?

    Ok so I go to contacts, find me, add a photo, click on finish, and go to my iMessages or the green icon on my desktop that says Messages, post a message to my friends and all they see is an avatar (or whatever you call it) with my initials on it. 

  • One day it just stopped focusing and the pictures are blurry.  If I switch it to the front camera it works well and looks like it should but when I turn it back it goes back to being out of focus and I can't figure out how to fix it?

    i installed ios 7.after  that my primary cam, one day it just stopped focusing and the pictures are blurry.  If I switch it to the front camera it works well and looks like it should but when I turn it back it goes back to being out of focus and I can't figure out how to fix it?

    This advice will sound like a joke or prank, but believe me it worked on my iPhone 5 and my daughter's.  The lens mechanism got stock on each of our iPhones.  We found a post on these message boards that said to hold the iPhone about 6 inches above a table or counter top and drop it so that it lands flat on it's back.  Now try the camera ...Fixed!  It has been more than six months now and neither of our iPhones have ever experienced the problem again. 

  • I want to transfer an audiobook and a movie from my MacBook Pro to my iPhone 4S, and can't figure out how.  I went to "Help" and it said after connecting the two devices I should "Click Apps," but I can't find anything labeled "Apps" to click.  Help?!!

    I want to transfer an audiobook and a movie from my MacBook Pro to my iPhone 4S, and can't figure out how.  I went to "Help" and it said after connecting the two devices I should "Click Apps," but I can't find anything labeled "Apps" to click.  Help?!!

    If you have iTunes 11 on your Mac then you can enable the left-hand sidebar via option-command-S, that might make it easier to navigate.
    Connect the phone to your Mac and select it on that left-hand sidebar, and on the right-hand side of the screen there should be a series of tabs which you can use to select what to sync to the phone. If it's an audiobook then it should appear on the Books tab for selecting/syncing, and films will be on the Movies tab. When you've got the audiobook on your phone you should get an Audiobooks option in the Music app (you might need to tap the '...' tab at the bottom of the Music app to see it).

  • I have mp3 files on my iMac that I want on my iPad 2 and can't figure out how to do it. Help !

    I have mp3 files on my iMac that I want on my iPad  and can't figure out how to do it. Help !

    OK I think I have it figured out! In iTunes you must check mark the mp3 files you want on the ipad 2 then sync to the iPad , also if you have files on the iPad you want to keep they  must be checked as well or they WILL go away! That is how I lost the ones I had on the iPad in the first place.  

  • I am having problems with my optical corded mouse that came with my iMac (it's about 2 years old) It stops working periodically, and I can't figure out how to fix it; doesn't look like I can open it to clean it, or anything like that.

    My corded optical mouse (model A 1152),which came with my desktop  iMac, stops working periodically.  The little tracball may work scrolling down a page, but not up, sometimes, and I have yet to figure out how to fix it, or why it happens at all.  Is there someone who has had that problem, and what did you do?

    Hello:
    Turn the mouse upside down and run it (vigorously) over a piece of paper.  Better yet, run it over a microfiber cloth.
    Barry

  • Since upgrading to mavericks, my email autofill is incorrect and I can't figure out how to fix it.

    Since upgrading to mavericks, my email autofill in Safari is incorrect and I can't figure out how to change it.  I start typing my email [email protected] on a website and that I need to put my email in (like to request a newsletter etc).  As soon as I get to the @ it fills it in as [email protected]@.  It is baffling and frustrating. Any ideas?  Autofill in general, for all my info (adress etc) works fine.

    Hi srd9196,
    Thanks for using Apple Support Communities.  I would check for a substitution being set in System Preferences -> Keyboard -> Text:
    OS X Mavericks: Text pane of Keyboard preferences
    http://support.apple.com/kb/PH14226
    Cheers,
    - Ari

  • Just got a new mac mini and I can't figure out how to authorize it. Help!

    Just got a new mac mini and cannot figure out how to authorize it.  Help!
    m

    Link your phone number and Apple ID for use with FaceTime and iMessage

  • Unicode (?) Displaying and Can't Figure Out How To Fix

    Since this thread was closed:
    https://support.mozilla.org/en-US/questions/979466
    I've tried everything there. I've cleared font caches in Windows 7, I've changed languages back and forth, etc.. Still can't get sites to display right in firefox or chrome. ie works fine.
    Example page:
    http://rxspeed.com/auto-parts/accel
    Screen capture here:
    https://www.diigo.com/item/image/59bq9/stnu

    Is the issue still there after upgrading.
    Here are a few more things to try:
    1) Start in safemode:
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    If that does not work try
    Restarting your PC
    IF the restart does not work you can try a Clean reinstall
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from [https://www.mozilla.org mozilla.org] (or choose the download for your operating system and language from [https://www.mozilla.org/firefox/all/ this page]) and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (or open the Firefox menu [[Image:New Fx Menu]] and click the close button [[Image:Close 29]]).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [[Troubleshoot and diagnose Firefox problems#w_5-reinstall-firefox|here]].
    <b>WARNING:</b> Do not use a third party uninstaller as part of this process. Doing so could permanently delete your [[Profiles|Firefox profile]] data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be easily recovered unless they have been backed up to an external device!</u> See [[Back up and restore information in Firefox profiles]]. <!-- Starting in Firefox 31, the Firefox uninstaller no longer lets you remove user profile data.Ref: Bug 432017 and https://support.mozilla.org/kb/uninstall-firefox-from-your-computer/discuss/5279 [Fx31] Windows uninstaller will no longer offer the option to remove personal data -->
    Please report back to say if this helped you!
    Thank you.

  • Can't figure out what the problem is, please help!

    Hey, so I have a Mac Mini which I bought nearly 3 years ago. I've been running the latest system 10.6.6, when the issues started. Everything would just unexpectedly quit and occasionally, I'd get the "You need to re-start your computer..." grey screen, also the desktop would refresh itself and not open any folders or anything at all. Finder, Console, Dashboard Client, etc all quit,´and sometimes the nmblookup thing would pop up, but before I could click Allow or Deny, it'd dissappear again.
    I ran the Hardware Test, and four times out of seven it said "No Trouble Found" while three times out of seven it gave me an error code starting with 4MEM. The system profiler, meanwhile, told me that both RAM cards were OK. I did the Hard Drive verification through Utilities and it gave me some problem starting with "Key..." and said it could not be repaired.
    SO, I reformatted the HD as it suggested, deleting everything (I've got it backed up though). Then, I installed Snow Leopard again, and the issues were still present. It would Quit Unexpectedly freeze up, etc. So then I went and erased the hard-drive again, and a new partition was made automatically. After that, I tried installing the original software which came with the computer. Except that after Installation Disk 1 was finished, the computer restarted and then it was just a blue screen. Nothing. It didn't ask for the second disk or aything. I tried again, and in the middle of Disk 2 Installation the grey "You need to re-start..." screen came down. ***. Now, I can't seem to install ANY Mac OS X on my computer, not what it came with, not the Snow Leopard, nothing.
    Again, Hardware Tests tells me everything is ok, and the Hard Drive also says there's nothing to repair. Then what is this? I don't even know what it could be anymore! Please help if you have an idea of what this might be! Unfortunally, at the moment I have no money to send it to the repair so they'd check=/
    Thanks in advance, any help would be greatly apreciated!

    Oh ok, well that was what the test said prior to reformatting the hard drive. Now, it doesn't find any trouble no matter how many times I run it. That's what has me so confused, everything seems to check out and yet...I can't do anything, not even install the software!

  • I keep getting an error message when I log onto Firefox and I can't figure out how to fix it, can you help?

    Every time I log onto Firefox I get the following message:
    "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features."
    I would like to fix whatever is causing this error message to appear, but I haven't found my, "application's profile directory" so that I can check for "read/write restrictions". My hard drive is 640GB with 554GB free space remaining.
    I am running Windows 7 - 64 and am using Avast Internet Security 2013.

    The Reset feature adds a folder on your desktop named Old Firefox Data. I recommend hanging onto that for a few weeks in case you discover something essential that the Reset feature left behind.
    This article has a list of what is migrated and what is not during a Reset, in case you're curious: [[Reset Firefox – easily fix most problems]].

  • Help rundll.32 error can't figure out how to fix I have no audio in speakers or headphones

    I use a a305-s6905
     and everything I tried to fix the rundll.32 error nothing works not even a system restore because it won't let me restore that far back

    We want to see the details of the Rundll32 message.
    In the meantime, can't hurt to reinstall the driver.
       Realtek Audio Driver for Windows Vista (32/64bit)
    -Jerry

  • HT1918 I keep getting an error message when I try to update my billing address. I can not figure out how to fix it.

    Help me, It wont let me update my billing address. It says to contact itunes support but it just led me here.

    If you are getting a message to contact iTunes Support then you can do so via this link and ask them for help (we are fellow users, we won't know why you are getting the message) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • (Zen Xtra) Files aren't copying properly, I can't figure out how to fix th

    I got my Zen Xtra 60 GB a few days ago, and I love it, but there's one thing that's pissing me off. I copy an album/folder over to my MP3 player, and I don't get any error messages, but when I go to the album on my MP3 player, it turns out that only a few of the songs copied. No matter how much I try, the songs just won't copy. These are all MP3s. Why is this, and what can I do about it's

    Are your original album files from store-bought CD's or did you download them off the internet? (Don't worry - I'm not gonna turn you in). If you downloaded them like I did (once), the files are often mislabeled and generally screwed-up. When I thought I put all my Engelbert Humperdinck songs in "The Greatest Hits" album, not all of them played until I labeled ALL with the proper artist, album, genre and then gave each a unique track number (don't use zero as a track #). Now they all work fine. It's a major pain going through all one's music to do this but it's worth it.
    But if you ripped legitimate CD's to MP3 and your albums still don't play, I can't help you. They have all the proper info already on each track.

Maybe you are looking for