Difference between revisions of "Java"

From RobotinoWiki
(Package links)
(Windows)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|}
 
|}
  
== Prerequisites ==
+
=Getting started=
# Firstly, make sure you have the RobotinoAPI2 installed on your system. You also have the option of building it from the sources which can be done from [http://wiki.openrobotino.org/index.php?title=API2#Building_API2_from_source here]. If building from the sources, '''DO NOT''' forget to set the environment variables pointing to the RobotinoAPI2 install folder.
+
Download the Robotino API2 binary package that fits the bitness of your JAVA environment. For Linux we only support 64 bit Linux with 64 bit JAVA environment. Install the package.
# Swigwin - Download the swigwin package from [http://prdownloads.sourceforge.net/swig/swigwin-2.0.4.zip here] and unzip it in the '''C:\Program Files''' or ('''C:\Program Files (x86)''' for 64Bit Windows) directory.
+
==Windows==
 +
* Copy the Java example directory to your home directory. The JAVA examples can be found at c:/program files/REC GmbH/robotino/api2/examples/java. Note that "program files" can differ for 32bit or 64bit windows.
 +
* Start Eclipse and follow the [[Building the examples with Eclipse|instructions how to run the examples using Eclipse]]
  
== Building the wrapper ==
+
==Linux==
# Check out the package from [http://svn.openrobotino.org/wrapper/trunk/ here].
+
*Instal the packages shown [[Ubuntu_12_04_modifications#Java|here]]. Also set the JAVA_HOME environment variable. You might want to set it in .profile and .bashrc.
# Build and install the package using CMake. Note: the CMake looks for the Robotino API2 package using the environment variable. Make sure it is set.
+
* Copy /usr/local/robotino/api2/wrapper/examples/java to your home directory.
# Once built and installed, set the evironment variable '''ROBOTINOAPI2WRAPPER32_DIR''' (if built using a 32Bit compiler ) pointing to the install folder. For example: <pre>ROBOTINOAPI2WRAPPER32_DIR=C:\Projects\_builds\build_openrobotino_api2_wrapper\install</pre> or if built using a 64Bit compiler then set an environment variable '''ROBOTINOAPI2WRAPPER64_DIR''' instead.
+
* Change directory to the Camera example and execute
# Done!
+
<pre>
 +
ant run
 +
</pre>
  
= Examples =
 
A few examples have been provided and can be found under the examples/java folder. Have a look at the [[Building the examples with Eclipse]] page for more information.
 
  
 
= The Openrobotino Forum =
 
= The Openrobotino Forum =
  
 
The [http://forum.openrobotino.org/ Openrobotino Forum] connects the developers with the users. Here you will find more support and you can also post your questions/problems/bugs etc and get a quick response.
 
The [http://forum.openrobotino.org/ Openrobotino Forum] connects the developers with the users. Here you will find more support and you can also post your questions/problems/bugs etc and get a quick response.

Latest revision as of 14:48, 17 June 2014

Introduction

Robotino java icon 64.png Java is supported by wrapping Robotino's C++ API using Swig

Package links

API2 binary packages

Getting started

Download the Robotino API2 binary package that fits the bitness of your JAVA environment. For Linux we only support 64 bit Linux with 64 bit JAVA environment. Install the package.

Windows

  • Copy the Java example directory to your home directory. The JAVA examples can be found at c:/program files/REC GmbH/robotino/api2/examples/java. Note that "program files" can differ for 32bit or 64bit windows.
  • Start Eclipse and follow the instructions how to run the examples using Eclipse

Linux

  • Instal the packages shown here. Also set the JAVA_HOME environment variable. You might want to set it in .profile and .bashrc.
  • Copy /usr/local/robotino/api2/wrapper/examples/java to your home directory.
  • Change directory to the Camera example and execute
ant run


The Openrobotino Forum

The Openrobotino Forum connects the developers with the users. Here you will find more support and you can also post your questions/problems/bugs etc and get a quick response.