我M個接入從Java應用程序文件,但即時得到以下異常(ACCES拒絕)拒絕訪問異常
c:\Program Files\sample\sample\cample.xml (Acc?s refus?) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream. at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
是任何機構有任何想法,爲什麼這個異常發生這個......,解決方案。 ... 它與文件許可手段文件有沒有讀取權限有關。
* 「文件沒有讀取權限。」 * >>這將是*寫*許可,因爲'FileOutputStream'指:輸出,因此,寫作。 – Abel 2010-08-23 06:23:19