Access restriction error? not sure how to fix it....

I am trying to use JPEGImageEncoder and i imported import com.sun.image.codec.jpeg.*; fine but i get the following error on my code:
CODE:
JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(outImage);
ERROR:
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library /usr/local/java/jdk1.6.0_07/jre/lib/rt.jar
I am not sure how to fix this... anyone know what needs to be done? I am using eclipse and i see the rt.jar in my library....
thanks!

MikeTheBorg wrote:
OK, I agree it's simpler for simple cases, but how do I do something like this:
          JPEGImageEncoder jie = JPEGCodec.createJPEGEncoder(os);
          JPEGEncodeParam jep = jie.getDefaultJPEGEncodeParam(bi);
          jep.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH);
          jep.setXDensity(1200);
          jep.setYDensity(1200);
          jep.setQuality(1, false);
          jie.setJPEGEncodeParam(jep);
          jie.encode(bi);
using ImageIO?
"Stupid" Eclipse+Maven refuse to compile this legacy code.It's an Eclipse error, not a Java/compiler error as such. To fix it, I believe you have to check your plug-in configuration -- imported packages here or exported packages there. Try adding "com.sun.image.codec.jpeg" to the imported packages. Something along those lines. Anyway, bottom line: this is not an issue with the code.
Furthermore, lookee here: GIAD

Similar Messages

  • Exception Raised error, not sure how to fix it.

    So I bought this game, Dragon age origins, and I try to launch the application. When I do, I get this error " Exception raised,
    Unhandled page fault on read access to 0x00000038 at address 0x0088d374.
    Do you wish to debug it ?"
    It has a Yes and a No. Clicking yes has the application shut down, and No justs leaves me with a black screen.
    I was wondering if there's a general way to get rid of this error.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Then...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Podcast will not update, receiving 8006 error, not sure how to fix?

    Have had a podcast for about two years, all of sudden it is showing an 8006 error and unable to download episodes.
    From the store the podcast can be found at Creative Living Bible Study, the url for the feed is: http://clbsindy.org/?feed=rss2, it has been validated.
    Please advise, thank you.

    Your Store page is at http://itunes.apple.com/gb/podcast/creative-living-bible-study/id368867496
    I was able to play the latest episode from the Store page, and to subscribe and download the latest episode: so everything is working normally. If you are still having problems it's either something local to your system, or perhaps a server glitch affecting your area, which would clear itself eventually.

  • Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Hi jodilynnf,
    When using Connection Doctor to see what is could be causing the issue, look for the red dots to let you know what is wrong. Then all you have to do is correct that information. You can double click on the section that is giving you issue and it will take you there. Most issues could be just password being entered incorrectly. Take a look at the article below to walk you through troubleshooting issues with Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/en-us/TS3276
     Take it easy,
    -Norm G.

  • I have two companies sending me indesign documents. One opens up and the dictionary is set to English. The other file opens at is in Hebrew, Not sure how to fix the Hebrew part and whether or not the fualt lies at my end or at the other end

    I have two companies sending me indesign documents. One opens up and the dictionary is set to English. The other file opens at is in Hebrew, Not sure how to fix the Hebrew part and whether or not the fault lies at my end or at the other end

    If only the language is Hebrew, you should correct it in the Paragraph and Character Styles.
    But in such a case I would expect more problems.
    If you are a creative cloud subscriber you should additionally install the InDesign version, English with Hebrew support:
    Go to the preferences of you CC.app. It is found behind the Gear Symbols on the top right.
    When the preferences open, go to the Apps section.
    Change the App Language to English with Hebrew support.
    Now you can install it. It will install on the very same place where your InDesign program is found some additional plugins, which will give you access to Hebrew functionality, like RTL text. Otherwise you will inherit in the document (and where you copy and paste it from such a document into another one). But now you can change or repair problems.
    Now repeatstep 1 + 2, but you need not to install your own language again. InDesign will now, when started, run in the language of your OS (when you have it installed in that language) but with more functionality to handle problems with Hebrew documents.
    The same steps you would have to do with Arabic or Asian documents. These languages will also add more plugins. But keep it limitted to those language you need. I have installed it that way, because I get sometime documen where the text flows the wrong direction or the numbers come up in Farsi digit, not in Arabic digits. For such purposes I need versions in languages I don’t understand myself.

  • Receiving pop ups to secure my files and when I log into any website i get directed to a site with a pop up regarding security.  I assume I have a virus and not sure how to fix it

    I am receiving pop ups to security sites to secure my files etc.  I assume I have a virus but not sure how to fix it.

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this.

    I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this. I only have the one Apple ID and the phone is brand new, purchased directly from Apple.
    When I check on the phone itself (iCloud and App Store settings) the Apple ID is correct. I'm not sure where else to check.
    Whilst setting up the phone, it prompted me to register, which I did. Then when connecting to my laptop through iTunes it prompted me again so I registered again. I even got a confirmation email to the email address associated with my Apple ID that the registration was successful.
    How can I add my iPhone 5s to the list of devices on the correct Apple ID?
    Thanks in advance for any advice.

    Found the answer to my question after posting (in related discussions)
    https://discussions.apple.com/message/12331666#12331666
    Will call Apple Care as soon as I can.

  • Sync session failed to start on my ipod touch. tried to delete back up history but it only shows my daughters ipod touch and not mine! Im unable to update or purchase new aps, not sure how to fix this problem?

    sync session has failed to start on my ipod touch. Tried to delete the back up but it only shows my daughters ipod touch. Iam unable to update or purchase new aps, not sure how to fix this problem?

    Try:
    https://discussions.apple.com/thread/3415227?start=0&tstart=0
    https://discussions.apple.com/message/16400530#16400530

  • Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    Ever since i plugged my iphone into the computer, all of my music has been messed up. The songs don't have the right album cover i guess they all just got mixed up somehow. i dont know but its annoying and im not sure how to fix it.

    If not this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • HT5622 When I turn on iMessage, all my texts go to my sons phone. I try giving him his own iCloud id but only my email is giving as a choice. Not sure how to fix?

    When I turn on iMessage, all my texts go to my sons phone. I try giving him his own iCloud id but only my email is giving as a choice. Not sure how to fix?

    iMessages only, not all texts as in SMS/MMS.
    This means iMessage is activated on his iPhone with the same Apple ID.
    Sign out of the Apple ID with iMessage on his iPhone and sign back in with his Apple ID.
    Settings > Messages > Send & Receive > Apple ID.
    Select the Apple ID and at the menu window that appears, select Sign Out. Sign back in there with his Apple ID.

  • My Safari URL bar disappeared.. not sure how to fix it.

    Well, it's just what the title says. I have my bookmarks and everything, but the URL bar is gone and I'm not sure how to fix it.

    Thank you so much!

  • Weird problem with ipod...not sure how to fix

    My ipod was filled to the max...like 950 songs and i couldnt fit anymore. i had it on set up mannually, but one day when i plugged it in to my computer it acted as if it was a new ipod and switched to "update automatically." Then it updated by deleting all my songs i didnt have saved onto the library before i could stop it. now ive reimported all my cds, but it will only hold 500 songs and says its full. They are all the same songs so it cant really be full. I'm not sure how to fix this. Please let me know if you know how to fix it. Thanks
      Windows XP  

    what is your iTunes import setting on?? check on the prefeances-advanced import tab and check that

  • My iphone 5 is showing my imessage to someone has been delievered but isnt stating that it has be read, even though those i text have the setting on. It worked just after new year but somehow doesnt seem to work not sure how to fix it :( help anyone

    please help im not sure how to fix this problem. It should work but has stopped working for some reason.

    its already sorted my friend who has it already swwitched on turned it off and switched it back on again and its working on my phone okay now just need to check with other contacts if they have it on or not but thanks

  • I am getting a run time error message when I am trying to reinstall itunes and I'm not sure how to fix it. Can someone tell me what I need to do to get itunes back? Thanks!

    I'm not sure how or why this is happening and it has just started...I tried to update and then it would not allow me to open the file at all giving me a runtime error message and multiple windows (because of the help feature). It has been successfully reinstalled but I'm still getting the error message...what do I do?

    Hello, MommaLloyd24. 
    Thank you for visiting Apple Support Communities.
    Here are the steps I would recommend going through as they should resolve the issue.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Jason H.

  • I'm not sure how to fix this problem?

    I made my original Apple ID a long time ago, and basically, the e-mail account I had used it with was deleted.  I've made a new Apple ID since.  My i-pod is still connected to the old ID, and I'm not sure how to change it.  I also don't remember the information I had used for the original ID.  My i-pod won't transfer all of my music unless I "authorize the computer" and I can't do that with my new ID becuause it "hasn't been used with the computer" yet.  I have no idea what to do now.  Please help?

    Instead of posting this just hit options to the right off any post and scroll down to Report Abuse, select that and leave a message there.I know it's not abuse but it works when you want to report any posts.
    Message Edited by grayburn on 04-Aug-2009 02:06 PM
    Grayburn @ www.nokiausers.net & www.dailymobile.se....come say Hello!!!
    If you appreciate ANY help from a member,then show it by clicking on the Blue Star button, cheers

Maybe you are looking for