Com.sun.* Not Found only in NetBeans - Javac finds them fine!

I am not sure what is up with this, but NetBeans will not let me specify anything from the com.* packages. It shows the packages in the auto-type boxes as I type in the name (com.sun.blahblahblah) but highlights the statement with a red underline and states 'Package not found".
Just to let it be known, I have a look-and-feel demo java file downloaded from the net that compiled perfect and runs as expected, and it makes much use of the com.sun.* packages. And I can run NetBeans with the --laf command line option and it will run using any of the LAF's in the com.* packages itself, but still not see them in the IDE for coding use ><
Any ideas?
Thanks in advance.

I just popped in what you wrote, and another thing just for giggles:
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import com.sun.crypto.provider.*;and they threw no errors. Why is it that my laf is throwing errors when they are plainly there?
Example -
       public void actionPerformed(ActionEvent event) {
         try {
           UIManager.setLookAndFeel(getText());
           SwingUtilities.updateComponentTreeUI(
             ChangingLaF.this);
           // call myFrame.pack()
           // to resize frame for laf
         } catch (IllegalAccessException e) {
           // insert code to handle this exception
         } catch (UnsupportedLookAndFeelException e) {
           // insert code to handle this exception
         } catch (InstantiationException e) {
           // insert code to handle this exception
         } catch (ClassNotFoundException e) {
           // insert code to handle this exception
         }This is the code I got off the net, this + a bit more to the .java file of course, compiles perfect with javac. The programmer used the package path com.sun.blahblah as the radiobutton text, that is what the UIManager.setLookAndFeel(getText()); getText() nonsense is. But other than that I see no reason an erro should be thrown in netbeans over UIManager.setLookAndFeel(com.sun.java.swing.plaf.motif.MotifLookAndFeel);
I did try it with quotes though as a previous post recomended and got this message:
init:
deps-jar:
Compiling 1 source file to E:\Java Apps\Calendar\build\classes
E:\Java Apps\Calendar\src\Main\MainFrame.java:283: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
1 error
BUILD FAILED (total time: 0 seconds)
<

Similar Messages

  • Install CS6 but not found only bridge & extendscript cs6

    Installation of CS6 BUT photoshop not found only Bridge cs6 and extendscript cs6. How to get photoshop installed??

    We need the install logs and more details like OS info etc.
    http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • MSVCR80.dll was not found! Where do I find it? Where shall I put it? Shall I install it in a special way?

    MSVCR80.dll was not found! Where do I find it? Where shall I put it? Shall I install it in a special way?

    Hi erikbikeon,
    Thanks for visiting Apple Support Communities.
    If you are receiving errors in Windows when using or reinstalling iTunes, I recommend completely removing and reinstalling the software using the instructions in this article:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    This process should not affect any music or content on your computer, but you may want to
    back up your iTunes library by copying to an external hard drive.
    When reinstalling iTunes (step 3 in the article above), be sure that you are logged in to your computer as an Administrator:
    Make sure you have an administrator account.
    To install iTunes or QuickTime, you need to log in as an administrator on the computer. If you're not sure you have an administrator account, you may find this Microsoft article helpful: Windows 7: How do I log on as an administrator?You can refer to the Help documentation from Microsoft, contact your IT department, or visit support.microsoft.com for more information.
    From:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Best Regards,
    Jeremy

  • Class not found only using browser.

    I can not run any of my java programs in my browsers. They work fine using the "java" command in a dos window or using the "appletviewer" command. But when I try to view them in a browser, the page appears to load fine but I get no program and the status window of the browser displays a class not found msg.
    I've checked spelling, location, capitalization. Everything works fine outside the browsers but will not view in a browser. We had the same problem in school and the instructor just said to stick with the appletviewer for class.
    I am running JDK1.2. Any suggestions?
    John

    Maybe you should try a newer JAVA version.
    I had a similar problem, but with a (too) newer JAVA version.
    Problem:
    You're compiling your applets with a quiet modern compiler (i.e. Netbeans Version 3.5.1)
    You are able to compile your applets without any problems but if you try your applets in "real life", the browsers can't interpret your applets [class not found]. (I tested Internet Explorer 6.0 and Netscape Navigator 4.7)
    So you need a plugin for the new JAVA environment because the JAVA environment of the browser is older than that which the applet needs.
    Well, you have the choice to demand to every user of your applet to download the new Java Runtime Environment, but then don't wonder why nobody visits your site!
    But, don't worry: I figuered out another solution, that Netbeans (www.netbeans.org) allows to compile in different JAVA versions.
    Solution:
    What you have to do is:
    - Install a previous version of JDK (i.e. JDK 1.3 - I would suggest, lower versions don't work with Netbeans 3.5.1 and JDK 1.3 is enough for IE 6.0 and NN 4.7, which I tested)
    - Go into the "bin"-directory of Netbeans (i.e. c:/netbeans3.5.1/bin)
    - Open the file "ide.cfg" (with notepad or any other texteditor)
    - You see a line like: jdkhome "C:\java\j2sdk1.4.2" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - Change the path to your other JDK you wish, like: jdkhome "C:\java\jdk1.3" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - That's it, you can compile your applets in a previous version of JAVA so that "older" browser user don't have to install a plugin for the new JAVA environment.
    Have fun!
    If you have any questions I would be pleased to help you.
    If this tip helped you already I would be pleased if you would send me a quick email with your experience.
    My email: [email protected]

  • Jvm not found while installing netbeans

    Hi All
    I installed jdk1.5 in window XP. and run a symple program(success).
    And then i tried to install Netbeans 5.0 or any other version,
    I am getting error that JVM not Found.
    Kindly help me , what I am missing.
    thanks

    The release date has slipped. We've found some issues which must be fixed before we can release on Windows. Hopefully we will have it soon.
    I understand that there is a high level of anticipation. I appreciate everyone's patience.
    Thanks,
    Ashesh Parekh
    Oracle9iAS Product Management.

  • I recently had to get a new computer, my list of audible books is there but can't open because original file cannot be found.  how do I find them or redownload them when they are not in my purchased list anymore?

    I recently had to purchase a new computer, after doing so I no longer can open my audible books.  the list is there, but I get an error message telling me that the original file cannot be found.  How can I redownload them when they are not in my purchased list anymore when I go to the Apple Store??

    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • Every time I open Firefox and type in a URL, I get the message "Server not found. Firefox can't find the server at..." All I have to do is hit the "Try again" button and it finds it. However, this is getting tiresome. Any suggestions on how to fix this?

    This is an ongoing issue.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls

  • HT203167 I just purchased an IPhone4S.   My purchased ringtones did not transfer.   How do I find them?

    How do I find previously purchased ringtones?   I just bought a new IPhone and the ringtones do not show up in my purchased history.

    They will only be where you put them.
    You should have transferred them from your old iphone to your computer.  From there you could sync them to your new iphone.

  • Facebook videos not playing in firefox. IE plays them fine, also no problem with youtube videos in firefox.

    Facebook videos are not playing in firefox, it plays youtube videos fine. The fb videos start to load and after that just a black screen remains.
    No such issues in IE, I've no addons installed, flash player is latest, and tried by enabling/disabling the block popups option.
    Thanks in advance.

    You can try to disable the hardware acceleration in the Flash Player.
    See [[Cannot view full screen Flash videos]]
    * http://www.youtube.com/swf_test.html (right-click the player: Settings)
    Flash "Display settings" window:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.2 r153
    * http://www.mozilla.com/plugincheck/
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/

  • Hid Notes, but now where do I find them??

    Hi, I hid my notes because I didn't want them in my inbox, by going under preferences and mailbox behaviors and checking the box. But now I can't find them. Anyone know how to find them again with out doing this??

    In the sidebar under "reminders"
    Captfred

  • I can not get to my yahoo email with F4. Everything I click on comes up "Not found. The requested URL /mc/showMessage was not found on this server."

    MF4 doesn't work with yahoo email

    Since something is not being found on the server the problem here is not with Firefox most likely. There may be some type of caching going on here. I would suggest clearing your cache and if the problem persists contacting Yahoo. You can clear your cache by following the instructions found on this page [[How to clear the cache]].

  • Automatic duplex printing not found only manual duplex

    in the Data sheet  for theHP Color LaserJet Pro MFP M476 series, it clearly states in the spec sheet under:
    Duplex print options [under MFP M476nw Manual (driver support provided)]  under MFP M476dw Automatic (standard)
    However, when I choose to print ,say a Word doc or a multipage PDF with my MFP M476dw - the only option I have, when I hit Copies & Pages is Manual Duplex!!!
    How do I access the Auto Duplex function please?
    This question was solved.
    View Solution.

    Thanks Mohammed - going to Layout and choosing one of the edge options in the Print Menu  fixed it! And then I saved it as a Preset, 'Duplex'     Tah...

  • Ringtone not found even though I can find it

    There's an exclamation point next to my purshaced ringtone.  However, I can look it up and play the ringtone from my dashboard.  How do I get iTunes to find it?  Probably an easy fix but I can't figure it out.

    Very little can be done to force an "uploaded" song to "match." The process is not 100% accurate and just because a song in the iTunes library is available in the iTunes Store does not mean it will match, for a variety of reasons.

  • Where are ios Notes synced? I can't find them on my MacBook.

    I would like to be able to sync my "Notes" data the same way I do my data from "Contacts" and "Calendar".
    I've checked the box under iTunes / myiPhone / Info / Other / Sync notes.
    It says my "Notes" are being synced to my computer, but I doesn't say where.
    Is there any way I can access my "Notes" on my computer?
    I'd like to be able to
    . use data entered on my device on my computer
    . modify or add "Notes" on my computer, and heve them appear on my mobile device
    Am I the only one who wants to use this capability?
    (o)(_)

    This works great for me on my MacBook!
    I have a friend with the same problem with different hardware. She has a PC syncing with an iPod Touch.
    We've tried telling iTunes to sync Notes on the Touch with Outlook on the PC.
    This works from PC to Touch, but not the other way around. Any ideas?
    (o)(_)

Maybe you are looking for

  • Multiple VC and VUM: how to share repository?

    Hi all, we have 4 VC appliances that control 4 clusters. I installed a VUM server for the main site. I've read some articles that for every VC you need a VUM server. That is not the big issue. I'm seeing more problems in the fact that all 4 of them w

  • How can I unsave tabs that open everytime I open Firefox?

    Everytime I open Firefox 6 tabs open which are tabs I've had in the past but are no longer valid. I'm not sure why they're saved, but I want to unsave them so that I have a clean slate everytime I open the browser.

  • Update BP address

    I am having a pickle of a time trying to update the Business Partner default Bill To address. Which fields must I complete for this to work? thx Rick

  • 5.1 - Rear Speakers in CS6

    Hi, Thanks in advance for your help. I took an online course in Audition, but there are a few specific things that were not covered (and that I can't figure out on my own). This is one of them. (You may need to scroll all the way down to see everythi

  • Move to start of next Track?

    Am building a corporate DVD that has MainMenu > 10 submenus > 10 tracks. Client wants to use the DVD remote advance button >>| to move from each item (slides & video) to the next within a track, while each item 'holds' until advance button >>| is pre