We provide a sample uobjectjava.launch files that you can load in eclipse to run the projects.
-
Click on Run/Open Run Dialog (or 'Run...' in some versions of Eclipse)
-
The launch configurations should be recognized automatically. Choose 'uobjectjava'.
-
NB: The project needs to know where are some native library liburbijava depends upon (shared
libraries liburbi, libjpeg and liburbijava). The project we provide should be correctly configure,
in case it doesn't work on your computer, go in the right panel, select 'Environment', depending
whether you are under Windows, Linux or MacOs, you will see the variable 'path', 'LD_LIBRARY_PATH'
or 'DYLD_LIBRARY_PATH' defined.
-
Edit the value of the variable. Set the absolute path of the uobject-java-remote directory 'lib'
(the one that contains the (lib)urbijava.{so,dll,dylib}). This is needed by the examples, in order
to load the liburbijava library. But by default it should already be configured correctly.
-
Then click on the 'Arguments' tab, and enter the address of the urbi server you want to connect in the
'program arguments' field. For example if you want to connect the server running in Webots, set 'localhost'
as address (without the quotes). You have also to specify the port of the server. By default it is 54000.
So write 'localhost 54000' in the field.
NB1: You can also write "--help" in this field, and then when you will run the program it will display
some help on the arguments.
NB2: Sometimes the urbi server is running on a different port than 54000. For example if you open the
webots world named 'nao1_urbi.wbt', then the server urbi is running on port 54001 (refer to
Urbi for Webots documentation to know how to
find out on which port the server is running).
So if you opened this world write 'localhost 54001' in the 'program arguments' field.
-
Click 'Apply'. Click 'Run'.