Jump to Main Content

Crossfire Map Editor Installation - Debian Linux

How to Install OpenJDK Java Runtime Environment v1.6.0 under Debian Linux

  1. Launch or open a Terminal Window (Applications -> Accessories -> Terminal)
  2. You will then want to run this command:

    sudo apt-get update

  3. Now you will want to install the following package, openjdk-6-jre, with this command:

    sudo apt-get install openjdk-6-jre

  4. Wait for the download to complete and for the JRE will finish installing

  5. To check that the JRE is properly installed, run the following command in the Terminal Window

    java -version

    You should see output similar to this:

    	$ java -version
    	java version "1.6.0_0"
    	OpenJDK  Runtime Environment (build 1.6.0_0-b11)
    	OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)	

Launching the Editor

  1. Download the Crossfire Map Editor

  2. Save the editor (it's the .jar file) in an easy to access location (do not uncompress the file, leave it as a .jar file)

  3. Launch the editor using the following command:

    java -jar CrossfireEditor.jar

    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.)

    For larger machines, explicitely requesting a client type VM can significantly speedup the map editor, so consider using -client

    java -jar -client CrossfireEditor.jar

Special Instructions

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:
NOTE: actual output, contents and options will vary, you'll want to use: /usr/lib/jvm/java-6-openjdk/jre/bin/java

There are 6 alternatives which provide `java'.

  Selection    Alternative
          1    /usr/lib/j2re1.4-sun/bin/java
*         2    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
          3    /usr/bin/gij-wrapper-4.0
 +        4    /usr/lib/jvm/java-gcj/jre/bin/java
          5    /usr/bin/gij-wrapper-4.1
          6    /usr/lib/jvm/java-6-openjdk/jre/bin/java
Press enter to keep the default[*], or type selection number: 6
Using `/usr/lib/jvm/java-6-openjdk/jre/bin/java' to provide `java'.

Then try launching the editor again.