Jump to Main Content

Crossfire Map Editor Installation - Linux Mint

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

Table of Contents:

JRE Install

The Sun Java Runtime Environment is installed or available by default under current versions of Linux Mint

  1. Launch or open a Terminal Window (Menu -> Terminall)

  2. 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_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) Client VM (build 19.1-b02, 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 Sun 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-sun/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-6-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.

If only one option available, you see 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.