Difference between revisions of "Robocode/Download And Install"

From Robowiki
Jump to navigation Jump to search
(Restructure and update page. Move documentation footer to template)
m (Better code formatting)
 
Line 25: Line 25:
 
#Drag <code>robocode-a.b.c.d-setup.jar</code> to your Desktop.
 
#Drag <code>robocode-a.b.c.d-setup.jar</code> to your Desktop.
 
#On Windows, type and enter:
 
#On Windows, type and enter:
#:<syntaxhighlight>cd "%UserProfile\Desktop"</syntaxhighlight>
+
#:<syntaxhighlight lang="bash">cd "%UserProfile\Desktop"</syntaxhighlight>
 
#:On macOS or Linux, type and enter:
 
#:On macOS or Linux, type and enter:
#:<syntaxhighlight>cd "~/Desktop"</syntaxhighlight>
+
#:<syntaxhighlight lang="bash">cd "~/Desktop"</syntaxhighlight>
 
#:If nothing is outputted, the command has succeeded. (This is typically the case for console applications.)
 
#:If nothing is outputted, the command has succeeded. (This is typically the case for console applications.)
 
#Type and enter (replacing <code>robocode-a.b.c.d-setup.jar</code> with the filename of the Robocode installer):
 
#Type and enter (replacing <code>robocode-a.b.c.d-setup.jar</code> with the filename of the Robocode installer):
#:<syntaxhighlight>java -jar robocode-a.b.c.d-setup.jar</syntaxhighlight>
+
#:<syntaxhighlight lang="bash">java -jar robocode-a.b.c.d-setup.jar</syntaxhighlight>
 
#The installer should run. If instead the previous command errors with '''java' is not recognized as an internal...'', you have not set <code>%PATH%</code> correctly. Follow [http://robowiki.net/wiki/Robocode/System_Requirements#Setting_environmental_variables_on_Windows these instructions].
 
#The installer should run. If instead the previous command errors with '''java' is not recognized as an internal...'', you have not set <code>%PATH%</code> correctly. Follow [http://robowiki.net/wiki/Robocode/System_Requirements#Setting_environmental_variables_on_Windows these instructions].
  

Latest revision as of 01:16, 16 August 2017

This page describes how to download and install the Robocode game.

Downloading Robocode

Robocode can be downloaded from the download page at SourceForge. This page contains all Robocode releases available for download.

The file you want to download is a JAR (Java ARchive) file, which is in fact a renamed zip file used for distributing Java programs. The name of the file will be named something like robocode-a.b.c.d-setup.jar, where a.b.c.d indicates the version number.

Note to Debian, Ubuntu, Mint, etc. users: A slightly out of date version of Robocode is available in the "universe" section of the apt repositories. Do not install that version. It is extremely outdated and isn't supported by the Robocode community.

Installing prerequisites

Make sure that you have followed these instructions, and that Java is installed correctly.

Installing Robocode

Youtube
Youtube has a video of Windows Installation in action: click here to watch
Youtube
Youtube has a video of Linux Installation in action: click here to watch

If Java has been correctly installed and configured, you should be able to run the installer by double-clicking it.

If the installer doesn't display, continue on the next section.

Installing Robocode from the command line

  1. Open a shell.
    • On Windows, search for "Command Prompt" in the Start Menu, and run it.
    • On macOS, search for "Terminal" in Spotlight, and run it.
    • On Linux, search "Terminal", "Konsole", or "xTerm" in your application launcher, and run it.
  2. Drag robocode-a.b.c.d-setup.jar to your Desktop.
  3. On Windows, type and enter:
    cd "%UserProfile\Desktop"
    
    On macOS or Linux, type and enter:
    cd "~/Desktop"
    
    If nothing is outputted, the command has succeeded. (This is typically the case for console applications.)
  4. Type and enter (replacing robocode-a.b.c.d-setup.jar with the filename of the Robocode installer):
    java -jar robocode-a.b.c.d-setup.jar
    
  5. The installer should run. If instead the previous command errors with 'java' is not recognized as an internal..., you have not set %PATH% correctly. Follow these instructions.

See also

Robocode API

Beginner Guides

External Editors

.NET Robots

Links