FAQ

1. How do I get a fortune?
Easy, just start the program! If you want to see another fortune, just press the "New Fortune" button.

2. How do I select a specific fortune?
Press the "Fortune #..." button and a new dialog will appear. You can select a category and fortune number x from that category.

3. What does 'Global Fortune#' indicate?
It indicates the current fortune's index number. You can access this fortune later, by pressing 'Fortune #..." and typing in this number without selecting a category. (Or by selecting the 'Global (all)' category in the Java version)

4. I've just seen a fortune I do not like/I do not understand. What can I do?
Tough luck! Just press the 'New Fortune' button and it will go away!

5. Can I delete a fortune/category I don't like?
No! :) Hopefully a future version of this program will allow you to choose the categories you want displayed, but until then...

6. I have a fortune I'd like to add. Can I do that?
Not by yourself. You can e-mail me that fortune and I will add it in a future distribution.

7. What are the system requierments?
The Win32 version will run under Windows 95, 98, Me, 2000, XP without problems. The Dos version requires MS-DOS 5.0 or later (but I doubt anyone is using good ol' MS-DOS) :) The linux version doesn't have all the features (and never will), but should run if it finds the QT libraries and all its dependencies. Here's a list of what it needs to run, as seen from my system (Debian):

  ldd KFortune
linux-gate.so.1 =>  (0xffffe000)
libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0xb77f5000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb77e7000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb771b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb762d000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7607000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75fc000)
libc.so.6 => /lib/tls/libc.so.6 (0xb74c4000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7494000)
libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb747f000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xb742f000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7411000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb73ec000)
libz.so.1 => /usr/lib/libz.so.1 (0xb73d8000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xb73cf000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb73c6000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb73c2000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb73b9000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xb73b6000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb73a3000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7335000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb732c000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb7315000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7311000)
/lib/ld-linux.so.2 (0xb7fe6000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb72f1000)

The Java version requires Java Virtual Machine (or Java Runtime Environment) newer than 1.4.2 (I tested it with 1.5.0), and also needs Swing (it's included in JRE). If you don't have a Java Environment, you can get it from www.sun.com (you only need JRE, not JDK)

8. I get an error message when I try to run Fortune for Windows. It says some dll is old or missing.
Fortune depends on msvcrt.dll and mfc42.dll. I did not include these files with the distribution because they are common with most Windows distributions. If you don't have them, you can get them from here:
msvcrt.dll
mfc42.dll
You'll need to copy both files to your Windows/System32 folder.

9. I downloaded JFortune.jar (Fortune-Java). Now what do I do? How do I start it?
Congratulations on your download. This is what you have to do to run JFortune:
- decompress* JFortune.jar to a desired folder (let's assume Program Files/JFortune for Windows or /home/username/JFortune for Linux and Unix)
- enter into the newly created folder and execute JFortune.bat (for Windows systems) or JFortune.sh (for Linux/Unix)
- if 'java' is in your path (it should be) everything will be ok; if it isn't, you'll have to edit the scripts to add the complete path to java
*How do I decompress it? I've never heard of *.jar before!
Well, jar is an archive (basically is identical to zip), so you can decompress it with any program that decompresses zip archives.

10. I can run the Java version, but if I want to run it at startup nothing happends, or I get an error saying it can't find fortune.dat
I had the same problem, because the java environment doesn't see JFortune as the current working directory anymore. This is why you can specify the path to fortune.dat in the command line. This is how I run JFortune at startup on my Linux box: (this command is called by the startup script)

/path/to/jre/bin/java -cp /home/username/JFortune JFortune /home/username/JFortune/Dat/fortune.dat
Windows users would use something like:
c:\path\to\jre\bin\java.exe -cp c:\Progra~1\JFortune JFortune c:\Progra~1\JFortune\Dat\fortune.dat
It's needless to say that you'll have to replace the words in italic with the correct paths from your system.

If you still have problems, send me a mail and we'll solve them.