Jump to Main Content

Crossfire Map Editor Installation - Linux Mint

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

Table of Contents:

JRE Install

The OpenJDK Java Runtime Environment will need to be installed through Synaptic Package Manager

  1. Launch or open a Synaptic Package Manager (Menu -> Package Manager)
  2. In the Quick filter search box (1), type in openjdk (2) then click on search - you should then see the openjdk-6-jre package (3) appear in the search results
  3. Right click on openjdk-6-jre and select Mark for Installation
  4. When alerted to the additional required changes, click on Mark
  5. Click on the Apply button at the top left of the Synaptic Package Manager window
  6. In the Summary window, click on the Apply button
  7. Wait for the files to download
  8. After the download is complete, wait for the new packages to automatically install
  9. Once the packages finished installing, click on Close
  10. Now you should see an Installed Version of openjdk-6-jre in the Synaptic Package Manager window
  11. Or another way to check that the JRE is properly installed, run the following command in the Terminal Window (Menu -> Terminal)

    java -version

    You should see output similar to this:

    $ java -version
    java version "1.6.0_22"
    OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
    OpenJDK Client VM (build 20.0-b11, mixed mode, sharing)

Launching the Editor

  1. Download CrossfireEditor.jar from the Crossfire Map Editor website

  2. Select Save File when prompted on what you want to do with the file and click OK (Note: Do not uncompress the file, leave it as a .jar file)

  3. Wait for the file to finish downloading
  4. Right click CrossfireEditor.jar and select Open Containing Folder
  5. This will open and show the Downloads folder, drag and drop the CrossfireEditor.jar file on to the folder labeled Desktop (on the left side of the screen)
  6. Now the CrossfireEditor.jar file is located in the Desktop folder
  7. Right click on CrossfireEditor.jar file and select Properties (last option at the bottom)
  8. This will open a new screen called CrossfireEditor.jar Properties, click on the middle tab labeled Permissions
  9. Towards the bottom of the window, place a check in the box next to Allow executing file as program and then click on Close
  10. Right click on CrossfireEditor.jar and then select Open with OpenJDK Java 6 Runtime
  11. If the Errors screen should appear, click on OK
  12. This will then launch the Map Editor
  13. One call also launch the editor from the terminal window by using the following commands:

    cd desktop

    Then the following..

    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, explicitly 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

$ update-alternatives --config java

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

Press enter to keep the current choice[*], or type selection number: 

Then try launching the editor again.

If only one option available, you would see the following output:

There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java
Nothing to configure.

If you see this error:

Be sure to follow steps 7 through 9 listed above.