com.codemercs.install
Class LinuxInstaller

java.lang.Object
  extended by com.codemercs.install.PlatformInstaller
      extended by com.codemercs.install.LinuxInstaller

 class LinuxInstaller
extends PlatformInstaller

The class for platform-specific installation under linux.

Author:
Eberhard Fahle

Field Summary
 
Fields inherited from class com.codemercs.install.PlatformInstaller
jarFile, jarName, libDir, libFileName, libName, target
 
Constructor Summary
LinuxInstaller(java.lang.String libLocation, java.lang.String libName, java.lang.String jarName)
          Creates a new LinuxInstaller.
 
Method Summary
 boolean copyLib(java.io.File javaLibDir)
          Copy the library to the java.library.path.
 
Methods inherited from class com.codemercs.install.PlatformInstaller
copyJar, getJavaExtentionsDirectory, getJavaLibraryDirectory, jarExists, libraryExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxInstaller

public LinuxInstaller(java.lang.String libLocation,
                      java.lang.String libName,
                      java.lang.String jarName)
Creates a new LinuxInstaller.

Parameters:
libLocation - a String that contains the directory where the lib ist to be installed.
libName - the name of the library that is to be installed
jarName - the name of the jar-file that contains the native interface-definitions
Method Detail

copyLib

public boolean copyLib(java.io.File javaLibDir)
Copy the library to the java.library.path. The linux-implementation of this method simply creates a symbolic link to the library.

Specified by:
copyLib in class PlatformInstaller
Parameters:
javaLibDir - the directory for the library
Returns:
boolean true if the lib was sucessfully copied, false otherwise.