Difference between revisions of "Building the examples with Eclipse"

From RobotinoWiki
(Building the Camera example)
m (Prerequisites)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Prerequisites =
 
= Prerequisites =
# Please install the latest [http://www.oracle.com/technetwork/java/javase/downloads/index.html Java Development Kit] and install it.
+
# Please install the latest [http://www.oracle.com/technetwork/java/javase/downloads/index.html Java Development Kit].
# Also download the [http://www.eclipse.org/downloads/ Eclipse IDE for Java Developers]. You don't need to install this, just unzip the downloaded folder in your preferred directory.
+
# Also download the [http://www.eclipse.org/downloads/ Eclipse IDE for Java Developers]. You don't need to install this, just unzip the downloaded zip file in your preferred directory.
  
 
= Building the Camera example =
 
= Building the Camera example =
 
# Run eclipse.exe
 
# Run eclipse.exe
 
# Select your preferred workspace if you haven't done so already.
 
# Select your preferred workspace if you haven't done so already.
# Once eclipse has started, select File->New->Project from the Menu bar.
+
# Once eclipse has started, select File->New->Project from the Menu bar.<br /><br />[[Image:Build_java_new_project.png]]
  [[Image:Build_java_new_project.png]]
+
# Select "Java Project from Existing Ant Buildfile" by expanding the Java field.<br /><br />[[Image:Build_java_select_ant_buildfile.png]]
# Select "Java Project from Existing Ant Buildfile" by expanding the Java field.
+
# Navigate to the build.xml file in the Camera folder to locate the Ant Buildfile. Click finish.<br /><br />[[Image:Build_java_navigate_to_buildfile.png]]
  [[Image:Build_java_select_ant_buildfile.png]]
+
# Once the project has been loaded, build and run it as a "Java Application".<br /><br />[[Image:Build_java_run_java_application.png]]
# Navigate to the build.xml file in the Camera folder to locate the Ant Buildfile. Click finish.
+
# If the "Select Java Application" window opens then replace the ** by main and then select Main - (default package).<br /><br />[[Image:Build_java_select_main.png‎]]
# Once the project has been loaded, build and run it as a "Java Application". If the "Select Java Application" window opens then replace the ** by main and then select Main - (default package).
+
# The application should now run. Type the IP address of Robotino and click Connect.<br /><br />[[Image:Build_java_application.png]]
# The application should now run. Type the IP address of Robotino and click Connect.
 
  
Repeat the same procedure to build the other examples.
+
= Other examples =
 +
Repeat the same procedure as above to build the other examples.

Latest revision as of 11:58, 6 December 2011

Prerequisites

  1. Please install the latest Java Development Kit.
  2. Also download the Eclipse IDE for Java Developers. You don't need to install this, just unzip the downloaded zip file in your preferred directory.

Building the Camera example

  1. Run eclipse.exe
  2. Select your preferred workspace if you haven't done so already.
  3. Once eclipse has started, select File->New->Project from the Menu bar.

    Build java new project.png
  4. Select "Java Project from Existing Ant Buildfile" by expanding the Java field.

    Build java select ant buildfile.png
  5. Navigate to the build.xml file in the Camera folder to locate the Ant Buildfile. Click finish.

    Build java navigate to buildfile.png
  6. Once the project has been loaded, build and run it as a "Java Application".

    Build java run java application.png
  7. If the "Select Java Application" window opens then replace the ** by main and then select Main - (default package).

    Build java select main.png
  8. The application should now run. Type the IP address of Robotino and click Connect.

    Build java application.png

Other examples

Repeat the same procedure as above to build the other examples.