Jump to Main Content

Crossfire Map Editor Installation - Debian Linux

Now that the Map Editor requires JRE 1.6.0, this page is now deprecated - see the updated Debian Linux page.

How to Install Java Runtime Environment v1.5.0 under Debian Linux

*** NOTICE: This page is deprecated, The Java clients and map editor require JRE v1.5.0 ***

  1. Download Sun's JRE (v1.4.2 is recommended) from http://java.sun.com/j2se/1.4.2/download.html
  2. Select the self-extracting file for the Linux Platform and save it locally on your hard drive
  3. Install the java-package and fakeroot with:
    sudo apt-get install java-package fakeroot
  4. Build the deb of the JRE using:
    fakeroot make-jpkg j2re-1_4_2_07-linux-i386.bin
    (version may vary somewhat, depending on what you download)
  5. You should see the following output:
    Detected product:
    Java(TM) Runtime Environment (J2RE)
    Standard Edition, Version 1.4.2+06
    Sun Microsystems(TM), Inc.
    Is this correct [Y/n]: Y
    <Long list of extracted files...>
    The Debian package has been created in the current directory. You can
    install the package as root (e.g. dpkg -i sun-j2re1.4_1.4.2+07_i386.deb).

  6. Install the newly created .deb using:
    sudo dpkg -i sun-j2re1.4_1.4.2+07_i386.deb
  7. You should see the following output:
    Selecting previously deselected package sun-j2re1.4.
    (Reading database ... 85045 files and directories currently installed.)
    Unpacking sun-j2re1.4 (from sun-j2re1.4_1.4.2+07_i386.deb) ...
    Setting up sun-j2re1.4 (1.4.2+07) .....

  8. Try Java out, see if it works using:
    java -version
  9. Your should see the following output:
    java version "1.4.2_07"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

  10. Also, test with this:
    dpkg -l | grep sun
  11. You should see the following output:
    ii sun-j2re1.4 1.4.2+07 Java(TM) 2 RE, Standard Edition, Sun Microsy
    ii sun-j2re1.4deb 0.18 Debian specific parts of Java(TM) 2 RE, Stan

  12. Got java working?
    Then download the Crossfire Editor version
  13. Untar the tar file using:
    tar -xzvf CrossfireEditor_MMR.tar.gz
  14. Launch the editor using the following command:
    java -jar CrossfireEditor.jar
  15. If you have enough memory, it is recommended to run the editor with a higher maximum memory size, like 128 Mb:
    java -jar -Xmx128m CrossfireEditor.jar
    (Note that in this way, the editor won't *always* use 128 Mb. It will only use that much when it is required.

NOTE: If you recently upgraded your Java JRE or having problems launching the editor, or would like to specify a particular version of Java, run this command:

update-alternatives --config java

Follow the instructions that appear:

There are 4 alternatives which provide `java'.

Selection Alternative
1 /usr/bin/gij-wrapper-4.0
+ 2 /usr/lib/jvm/java-gcj/bin/java
3 /etc/alternatives/kaffe-system/bin/java
* 4 /usr/lib/j2re1.4-sun/bin/java

Press enter to keep the default[*], or type selection number

Then try launching the editor again.