How can i overcome this problem...in applet
my applet will read in a file for data,
when i compile using JCreator, it work...
but when i open the html file to run, problems occur,
state that loading java applet failed.
the message shown in java console:
java.security.AccessControlException: access denied (java.io.FilePermission data.dat read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Reader.<init>(Reader.java:9)
at Puzzle.init(Puzzle.java:30)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
thanks a lot for help
As I said, you need to read it from the server. Exactly how depends on what kind of data it is. If it's always going to be the same for the program then treat it as a "resource". If it's apt to change without rebuilding the program then serve it as a regular file, and access it via. a regular URL.
Say it's a resource, place it in the same directory as the .class file that loads it and do:
InputStream ds = getClass().getResourceAsStream("data.txt");
Reader r = new InputStreamReader(ds);
BuffererdReader br = new BufferedReader(r);
Similar Messages
-
I find I am unable to print any photo because the program "Can't find a theme and the Print command wont work without at least one theme. How can I overcome this problem?
reinstall iPhoto
see this discussion down a few from your post
https://discussions.apple.com/thread/5426566?tstart=0
LN -
Hello,while taking photos in iphone 5 camera spots(as dark dots) are emerged ,how can i overcome this problem?
But only in back camera this happensNot sure what your warranty status is, or if you have already seen the other threads that talk about these purple spots, but this is beginning to look like a widespread problem that Apple is probably refusing to acknowledge. For instance:
https://discussions.apple.com/message/19941651 -
I tried to set up icloud on my iphone 4 and I get this message that "the maximum number of free accounts have been activated on this iphone". My iphone was used by someone else before I got it. How do I deactivate these accounts or overcome this problem?
You were trying to create a new Apple ID for icloud. But once the device reaches is max allowed to create IDs then you can't create more. That's your situation now. To create a new account you must use another device or computer.
You can't deactivate or turn back the clock. -
crashing firefox while chatting ...
This Bug was filed months ago for that crash signature - related to Adobe Flash. <br />
https://bugzilla.mozilla.org/show_bug.cgi?id=641775 <br />
''(Please don't comment in that Bug report unless you can provide a reproduce-able test case or a patch to fix the problem.)'' <br />
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
Looks like "the ball is in Adobe's court". -
could not initialize the application's security component .the most likely cause is problems with files in your application's probile directory.please check that this directory had no read/write restrictionsand ur 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 mightsee incorrect application behaviour when accessing security features....THIS IS THE ALERT I GET WHENEVER I TRY TO OPEN FIREFOX.
See:
*https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component -
McAfee site advisor is slowing down Firefox.
I want to keep it and not disable it as suggested earlier.
I have disabled it for now but I want to use it and it is messing up Firefox.
What to do?Locked as duplicate of [https://support.mozilla.org/en-US/questions/1009350 /questions/1009350], please continue there.
I replied to that thread. -
I can't click on the 'Learn More' or 'Ok' options so cannot use Aperture. How do I overcome this problem?
I use OS X Lion 10.7.4.
I also don't seem to be able to disable the Mobileme account via the system preferences option as mobileme doesn't allow access with my password.Have you tried to disconnect from the Internet before launching Aperture? Then the MobileMe webpage should not be shown and you should be able to access the Aperture preferences and remove the MobileMe account from the "Preferences > Web" panel.
If this does not succeed, (Force) quit Aperture, log off and log on again, then remove the Aperture Preferences file (~/Library/Preferences/com.apple.Aperture.plist)
from the Preferences Folder in your User Library and try again to launch Aperture. See http://support.apple.com/kb/HT3805 on how to remove the Preferences.
Regards
Léonie -
How can I overcome this frustrating problem? I've tried adding a background file and removing as suggested elsewhere but to no avail.
Glad it worked for you.
Omniaveritas wrote:
Do you think Apple will overcome this with an upgrade ?
Honestly, I have no idea. This has been an on again/off again problem for some people going back to the original version. DVD and Blu Ray haven't been much of a priority for Apple for a very long time.
You can provide feedback from FCPX menu.
Best of luck.
Russ -
Despite ticking the box "remove all website data", when I reset Safari not all stored cookies are eliminated. How can I overcome the problem? Or is it a bug?
I have done a little experimenting: 1-close all open windows (I found that I had to do this step in order to keep Safari from hanging-will be explained later). 2: Remove all data in Prefs. 3: Immediately close the prefs window (no window should be open at this point) and quit Safari. Try to complete step 3 fast as possible; I have it down to a few seconds. The reason I urge you to close all windows is that Safari hangs until forced to quit upon immediately quitting after removing cookies. I think the auto page reload in Lion is the cause of these hiccups but I can't be sure about that. The hasty quit I found is crucial to success. Don't know why that is but it could prevent the data from re-populating. A quick flush, if you will. Hit me back if you need any of my suggestions clarified; a bit wordy, I know
-
In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated. The disk could not be read from or written to." How can I overcome this error message.
Hello there dilip77707,
It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
Thank you for using Apple Support Communities.
All the very best,
Sterling -
On my iPad 2 I can nolonger view maps. It says there are JavaScript errors. How can I fix this problem?
First, try a system reset. It cures many ills and it's quick, easy and harmless...
Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo. Ignore the "Slide to power off" text if it appears. You will not lose any apps, data, music, movies, settings, etc.
If the Reset doesn't work, try a Restore. Note that it's nowhere near as quick as a Reset. Connect via cable to the computer that you use for sync. From iTunes, select the iPad/iPod and then select the Summary tab. Follow directions for Restore and be sure to say "yes" to the backup. You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod. Again, say "yes." -
Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3
Could it be because the SIM card got damaged while I cut it to fit the IPhone?
Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
Or somehow the Chinese carrier found out and locked it?
No, which is not possible.
What can I do? Get a new SIM and see if it works again?
Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget. -
my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help
Hey nocillado,
Thanks for using Apple Support Communities.
It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
Get help activating your iPhone
http://support.apple.com/kb/ts3424
Using your Apple ID for Apple services
http://support.apple.com/kb/ht4895
Using the same Apple ID for Store purchases and iCloud (recommended)
Have a nice day,
Mario -
My ipad is disabled and it says i need to connect to itunes when i connect it to itunes, it says it wont recognize it until i put my passcode into my ipad, but with my ipad disabled, this is immposible, how can i resolve this problem?
You may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad an resync your content to it
Maybe you are looking for
-
ITunes 11: No longer able to sync via USB
I updated to the latest version of ITunes. I am now no longer able to sync either my iPod Nano nor iPod Touch via USB. When trying to copy music from the computer to either devices, the progress is extremely slow for the 1st song and then stopps wh
-
Massive memory consumption resulting in massive page file
Platform: Windows XP on Dell precision M60. I GByte RAM, Oracle 10g (10.0.2), Oracle Http Server, APEX 3.1.1 Have a page which runs sql query .. select AS_SEEN_ON_ACW(:P51_MESSAGE, :P51_text_col, :P52_backgnd_col) AS "TEXT" from DUAL The functions in
-
Iweb/ computer to computer transfer/ publish error
Problem with iWeb 09 and in particular publishing on my Blog. Today I decided to try and shift my iWeb site to a 2nd computer, from my iMac to my MacBook. Both have been installed up to date with all the latest software updates. I moved the domain.si
-
I have a list/menu on my site and you pick the template you want and then hit go and it opens the page where that template is. How do i get it so that it opens up the page in a new window, I dont see anywhere to put _blank in?
-
After upgrading to Photos you still can't ignore a group of faces. In addition my entire photo library was rescanned and now I have to ignore faces all over again. Also I have no idea how many faces have yet to be identified.