During the operation of the applet up to two user functions
(Java or Javascript) can be loaded and active. A user can create and use
more functions, but they have to be saved to and loaded from disk files with
the following operations:
- the 'Open' button to load a text file into the editor,
- the 'Save As ...' function to record the editor contents on a file.
Solutions to problems
In case of problems with compiling Java files on Windows (a 'javac' program is
required when applying the user functions), the environment variable PATH must
be properly set (no need to remove the defined paths, just add a new one after
a semicolon). A quick guide can be found here:
http://tomasz.topa.pl/java/java-dodawanie-zmiennej-srodowiskowej-path
After adding an environment variable, restart the computer in order to load
the changes. If it is still not possible to compile the file, it means that
the error may be caused by the applet previously placed in the cache.
Then, follow these steps:
- clear the cache of the Web browser -> (CTRL + F5) during the browser
session,
- open the Java console ('Java' icon in the startmenu -> right button ->
'Java console', or in the browserL 'Tools' -> 'Java console') and type 'x'
there,
- restart the browser.
Note!
In the case of errors in the applet log related to the IO access - 'acces
denied', which may occur when:
- trying to view the contents of the log (method 'setText')
- using the Math package,
- JavaScript compilation,
the applet can be run from the console (command line) by entering this command:
appletviewer -J-Djava.security.policy=http://sequoia.ict.pwr.wroc.pl/~witold/ai/Checkers/java.policy.applet http://sequoia.ict.pwr.wroc.pl/~witold/ai/Checkers/