Difference between revisions of "Robocode/Download And Install"

From Robowiki
Jump to navigation Jump to search
m (Better code formatting)
 
(11 intermediate revisions by 7 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: Java must be installed in order to install and run Robocode!''''' See the [[Robocode/System Requirements|System Requirements]] page for more info.
+
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 can be downloaded from the [http://sourceforge.net/project/showfiles.php?group_id=37202&package_id=29609 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 '''<code>robocode-a.b.c.d-setup.jar</code>''', where <code>a.b.c.d</code> indicates the version number.
  
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-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.
  
===Debian/Ubuntu Users===
+
== Installing prerequisites ==
A slightly out of date version of Robocode is available in the Universe Section of the Repos. This version is not recommended since it isn't supported by the Robocode Community.
+
Make sure that you have followed [[Robocode/System Requirements|these instructions]], and that Java is installed correctly.
  
== How to install Robocode ==
+
== Installing Robocode ==
===Windows===
+
{{Youtube|GyVH8_C1QbQ|Windows Installation}}
If Java has been properly installed (see [[Robocode/System Requirements|System Requirements]]), you should be able to install Robocode by opening (double click) the downloaded setup file (the JAR file).
+
{{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 with "Start/Execute" in the window type in "cmd". Change the current directory (using the <code>cd</code> command) to the directory you have downloaded the Robocode setup file into, and then type ('''x.y.z''' must be replaced with the Robocode version):
+
If the installer doesn't display, continue on the next section.
<pre>
 
java -jar robocode-setup-x.y.z.jar
 
</pre>
 
  
===Linux===
+
== Installing Robocode from the command line ==
Open a shell and type in ('''x.y.z''' must be replaced with the Robocode version):
+
#Open a shell.
java -jar robocode-setup-x.y.z.jar
+
#* 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.
 
+
#Drag <code>robocode-a.b.c.d-setup.jar</code> to your Desktop.
====Ubuntu/Debian====
+
#On Windows, type and enter:
Ubuntu/Debian users could run into a couple of snags while installing Robocode. The best place to install it at is your ~/ directory (which is /home/account_name/ in short hand).
+
#:<syntaxhighlight lang="bash">cd "%UserProfile\Desktop"</syntaxhighlight>
 
+
#:On macOS or Linux, type and enter:
If you have a working java compiler already, you should be set. If not, you need to get a package from the repositories with the javac program in it, or let Robocode install Jikes. If you changed your JDK recently (like <code>sun-java5-jdk</code> to <code>sun-java6-jdk</code> or <code>openjdk-6-jdk</code>), you need to run <code>sudo update-alternatives --auto javac</code> in your shell to get the new javac to link correctly.
+
#:<syntaxhighlight lang="bash">cd "~/Desktop"</syntaxhighlight>
 
+
#:If nothing is outputted, the command has succeeded. (This is typically the case for console applications.)
== How to get notified about new releases ==
+
#Type and enter (replacing <code>robocode-a.b.c.d-setup.jar</code> with the filename of the Robocode installer):
If you want to know ''exactly'' when a new release is available, you can subscribe to the Robocode file release [http://sourceforge.net/export/rss2_projfiles.php?group_id=37202 RSS feed]. The feed will provide you with a link to both the release notes and where to download Robocode.
+
#:<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 ==
  
=== News and Releases ===
+
{{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]
 
 
 
=== Tutorials ===
 
* [[Robocode/System Requirements|System Requirements for Robocode]]
 
* [[Robocode/Robot Anatomy|The anatomy of a robot]]
 
* [[Robocode/Getting Started|Getting started with Robocode]]
 
* [[Robocode/My First Robot|My First Robot Tutorial]]
 
* [[Robocode/Game Physics|Robocode Game Physics]]
 
* [[Robocode/Scoring|Scoring in Robocode]]
 
* [[Robocode/Robot Console|Using the robot console]]
 
* [[Robocode/Downloading_Robots|Downloading other robots]]
 
* [[Robocode/Learning from Robots|Learning from other robots]]
 
* [[Robocode/Package Robot|Package your robot]]
 
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
 
* [[Robocode/Articles|Articles about Robocode]]
 
* [[Robocode/Console Usage|Starting Robocode from the command line]]
 
* [[Robocode/Graphical_Debugging|Graphical debugging]]
 
* [[Robocode/Eclipse|Using Eclipse as IDE]]
 
* [[Robocode/Eclipse/Create_a_Project|Creating a project for your robots]]
 
* [[Robocode/Eclipse/Create_a_Robot|Creating a robot in Eclipse]]
 
* [[Robocode/Running from Eclipse|Running your robot from Eclipse]]
 
* [[Robocode/Eclipse/Debugging Robot|Debugging your robot with Eclipse]]
 
 
 
=== Home pages ===
 
* [http://robocode.sourceforge.net/ Classic homepage]
 
* [http://sourceforge.net/projects/robocode Robocode project at SourceForge]
 
* [http://robocoderepository.com/ Robocode Repository]
 
* [[wikipedia:Robocode|Wikipediaentry for Robocode]]
 
  
 
[[Category:Robocode Documentation]]
 
[[Category:Robocode Documentation]]

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