Duplicate File Finder User Manual Duplicate File Finder requires a Java Runtime Engine to be installed. Note that Duplicate File Finder is tested only on versions 1.3 and 1.3.1. Version 1.1.8 does not contain all necessary functionality for Duplicate File Finder and should therefore be upgraded from Sun Microsystems at http://java.sun.com free of charge. For more information about checking your system for a java installation, check the section below "Setting Up Java and JavaUNIX to Work Together". Installation of Duplicate File Finder requires you will need to copy the files dff and dff.jar to a location of your choice that is in you PATH environment. For example, the directory /usr/local/bin may be used. You may choose another location, just be sure to keep both files together in the same directory. From there you can run Duplicate File Finder from the command line with "dff". If you want to make an Icon to run Duplicate File Finder, select your Window Managers tool for creating a new icon and set it to execute "dff". Setting Up Java and JavaUNIX to Work Together JavaUNIX requires an existing java installation. Most distributions already have one so usually it is only a matter of setting an environment variable to make JavaUNIX configure and compile.
When building JavaUNIX, you will need to have a Java SDK, for example j2sdk-1_4_2_04. The SDK includes the necessary tools for building JavaUNIX. The JRE does not have these tools and so a build of JavaUNIX with just the JRE won't work. If you need to get a Java SDK, you can download one from Sun Microsystems free of charge at http://java.sun.com. JavaUNIX requires that the environment variable $JAVA_HOME is set to be the directory where your Java installtion is. For example, if you install Java in /opt/j2sdk1.4.2_04, then you will need to set your $JAVA_HOME environment variable to /opt/j2sdk1.4.2_04 with the command "export JAVA_HOME=/opt/j2sdk1.4.2_04". To compile the JavaUNIX API, complete the usual "./configure", "make", and "make install" procedure in the directory where you extracted JavaUNIX. To check the compilation, run the command "make check" from the JavaUNIX directory. If you get a large listing of tests completed, your installation of JavaUNIX is complete. If you get exceptions like "Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaunix in java.library.path", then follow the advice immediately below. It is possible that recent versions of gcc and g++ will not successfully compile JavaUNIX, and there seems to be no one correct solution for every situation. Please try the following steps only if a build with the original JavaUNIX sources fail: You will need to edit the JavaUNIX file "com_xenon_unix_XenonGroup.cc". Line 114, which reads needs to be changed to one of three possibilities known at the time of writing this manual: The modified line should remain as one line in the file and not be separated. Once this change is made, JavaUNIX should compile. If you continue to have problems, please send a copy of the output of the build attempt from the original, unmodified file to me through the Feedback form on the Duplicate File Finder homepage and I will attempt to help you further. Building JavaUNIX requires the build directory of javaUNIX to be in your $PATH environment variable. If you are getting errors like "make: make-jrt-stub: Command not found", the JavaUNIX build directory is not in your current $PATH environment setting. The easiset way to solve this is to put the current directory into your $PATH environment setting using the command "export PATH=$PATH:." and build within the JavaUNIX build directory. If at any time you find you need to rebuild JavaUNIX, it is best to completely delete the JavaUNIX build directory and start again. A break in the build process because of the $PATH not being set or the file "com_xenon_unix_XenonGroup.cc" needing to be modified does however not require a complete rebuild of JavaUNIX. After the build of JavaUNIX is complete, and you have done the "make install", there is likely to still be difficulties with JavaUNIX. If, when you run Duplicate File Finder, you get an error message indicating JavaUNIX was not found or there is a problem with the JavaUNIX installation, it means you currently still don't have a usable installation of JavaUNIX. This problem is, however, easy to fix. Move the "libjavaunix.so" file from $JAVA_HOME/jre/lib/ext/Linux/libjavaunix.so to the $JAVA_HOME/jre/lib/i386/ directory. It may also be necessary to move the javaunix.jar file from $JAVA_HOME/jre/lib/ext/Linux/ to $JAVA_HOME/jre/lib/ext/ directory. Although these steps are not recommended by Sun Microsystems, it does work around the problems associated with the installation of JavaUNIX.
|