Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2007, 09:40 PM
Administrator
 
Join Date: Dec 2006
Posts: 641
JavaForums has disabled reputation
Saving objects to file
Sometimes it is useful to store objects in files which can be read later. Object is saved along with its state. Simply saying, an object with its data can be saved in a file. Objects are made persistent this way.
(more…)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-06-2008, 06:37 AM
Member
 
Join Date: Jan 2008
Posts: 2
johnnyarm is on a distinguished road
java.io.FileNotFoundException

I have this error. I know it was talked about at the end of the last page of the article. But the problem is i still don't understand what that means and how to fix it. I would love more help. Thank you for your time

Last edited by johnnyarm : 01-06-2008 at 06:49 AM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-06-2008, 07:27 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
johnny, welcome to Java Forums!

I had some difficulty locating the "last page of the article", as I could only find one - the one that JavaForums linked to from above. Further, I had trouble finding anything regarding java.io.FileNotFoundException.

As you might be able to surmise, your error simply means your code literally can't find the file in question. Could you elaborate what it is you're having trouble understanding? Attempt to fix it by locating in your code, sometimes a literal string or path, "myFile.txt", "/home/captainmorgan/myFile.txt", etc. and confirm these file(s) actually do exist on your system or are where you are trying to retrieve it from. Lastly, if you are stuck, post some of your code in the General section of this forum titled New to Java, and be sure to code tags when posting your code, it makes for easier reading.

Best of luck.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-02-2008, 06:48 PM
Member
 
Join Date: Jan 2008
Posts: 2
johnnyarm is on a distinguished road
Thanks Captian.

I have another error now. The problem is that i am not able to save on applets. I keep getting this error java.io.FilePermisson. The code works on normal java files, but it does not work on applets.

I have looked at some other sites, and i have discoverd this, when i tired writing to files on applets:

/**
* By default, this applet raises a security exception, unless you configure
* your policy to allow applets from its location to write to the file
* "writetest".
*/

How do i change the policy? Where is this policy file located, if there is one?

johnnyarm

Last edited by johnnyarm : 02-03-2008 at 03:55 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving data...? easyRyder New To Java 8 07-15-2008 04:14 AM
Saving data in an XML file Thez New To Java 1 12-08-2007 10:24 PM
Retrieving serialized objects from file JavaForums Java Blogs 0 11-07-2007 10:03 PM
saving variables to the harddrive Talon876 New To Java 1 11-02-2007 02:30 AM
Saving Variables Fish New To Java 6 06-25-2007 09:20 PM


All times are GMT +3. The time now is 02:47 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org