Robocode/Download And Install

From RoboWiki
< Robocode(Difference between revisions)
Jump to: navigation, search
(How to install Robocode: Changes version number 1.5.0 into x.y.z)
m (Better code formatting)
 
(22 intermediate revisions by 11 users not shown)
Line 1: Line 1:
This page describes how to '''download and install''' the [[Robocode]] game.
+
This page describes how to download and install the [[Robocode]] game.
  
== How to download Robocode ==
+
== Downloading Robocode ==
'''Note:''' <span style="color:red">Java must be preinstalled in order to run install and run Robocode!</span> See [[Robocode/System Requirements|System Requirements]] for Robocode.
+
Robocode can be downloaded from the [http://sourceforge.net/projects/robocode/files/robocode/ download page at SourceForge]. This page contains all Robocode releases available for download.
  
Robocode is downloaded from the download page at SourceForge containing all Robocode releases available for download, which you can find with [http://sourceforge.net/project/showfiles.php?group_id=37202&package_id=29609 this link].
+
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 '''<code>robocode-a.b.c.d-setup.jar</code>''', where <code>a.b.c.d</code> indicates the version number.
  
The file to download is a JAR file, i.e. Java Archive file, which is in fact a ZIP file used for distributing Java programs. The name of the file will be named something like robocode-setup-x.y.z.jar, where "x.y.z" 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.
  
== How to install Robocode ==
+
== Installing prerequisites ==
 +
Make sure that you have followed [[Robocode/System Requirements|these instructions]], and that Java is installed correctly.
  
If Java has been properly installed (see [[Robocode/System Requirements|System Requirements]]), you should be able to install Robocode by double-clicking on the downloaded setup file for Robocode (the JAR file).
+
== Installing Robocode ==
 +
{{Youtube|GyVH8_C1QbQ|Windows Installation}}
 +
{{Youtube|y53rY5YoRWw|Linux Installation}}
 +
If Java has been correctly installed and configured, you should be able to run the installer by double-clicking it.
  
Alternatively, you could open a command prompt / shell where you change the current directory (using the <code>cd</code> command) to the directory you downloaded the Robocode setup file into, and then type:
+
If the installer doesn't display, continue on the next section.
<pre>
+
java -jar robocode-setup-x.y.z.jar
+
</pre>
+
  
Of course the '''x.y.z''' must be replaced with the Robocode version you are going to install.
+
== Installing Robocode from the command line ==
 
+
#Open a shell.
== How to get notified about new releases ==
+
#* On Windows, search for "Command Prompt" in the Start Menu, and run it.
If you want to know exactly ''when'' a new release is available, you can subscribe to the [http://sourceforge.net/export/rss2_projfiles.php?group_id=37202 RSS feed] for Robocode file releases. The RSS feed will provide you with a link to both the release notes and where to download Robocode.
+
#* On macOS, search for "Terminal" in Spotlight, and run it.
 +
#* On Linux, search "Terminal", "Konsole", or "xTerm" in your application launcher, and run it.
 +
#Drag <code>robocode-a.b.c.d-setup.jar</code> to your Desktop.
 +
#On Windows, type and enter:
 +
#:<syntaxhighlight lang="bash">cd "%UserProfile\Desktop"</syntaxhighlight>
 +
#:On macOS or Linux, type and enter:
 +
#:<syntaxhighlight lang="bash">cd "~/Desktop"</syntaxhighlight>
 +
#: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):
 +
#:<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].
  
 
== See also ==
 
== See also ==
* [[Robocode/System Requirements|System Requirements for Robocode]]
 
* [[Robocode/Console Usage|Starting Robocode from the command line]]
 
* [[Robocode/Getting Started|Getting started with Robocode]]
 
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
 
* [[List of articles about Robocode]]
 
  
== External links ==
+
{{RobocodeDocsList}}
* [http://sourceforge.net/project/showfiles.php?group_id=37202&package_id=29609 Robocode File Releases]
+
* [http://sourceforge.net/export/rss2_project.php?group_id=37202 RSS Feeds for the Robocode project]
+
  
 
[[Category:Robocode Documentation]]
 
[[Category:Robocode Documentation]]

Latest revision as of 00:16, 16 August 2017

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

Contents

[edit] 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.

[edit] Installing prerequisites

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

[edit] 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.

[edit] 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.

[edit] See also

[edit] Robocode API

[edit] Beginner Guides

[edit] External Editors

[edit] .NET Robots

[edit] Links

Personal tools