• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java applet for Rubik's cube

 
alans davidsons
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted this topic on the Beginner's forum, and was advised to try here because it relates to applets.

I have the source java code for a rubik's cube java applet. I want to be able to save the game at any point. I've been told that I need to run the code as a java application so that I can save to my hard disk.

I have general programming knowledge of C, VB, a little C++, and object-orientatiion - but very little java. If someone can give me a few specific instructions, I might be able to convert the code myself. This is a one-off java job. Right now, I don't have any need to learn java other than to convert this applet to a java application.

Regards,
Alan
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets are forbidden from writing to the local file system. It's a security feature to prevent malicious applets from taking over your computer. There is a way around this feature. You have to prove 1. who you are and 2. that the applet has not been tampered with. One can accomlish this through a Signed Applet.
It may be less of a pain to persist your data on the server. There's information in the Java Tutorial on Working with a Server-Side Application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic