Question: I installed apache mesos 0.24 like [here](http://mesos.apache.org/gettingstarted/). The master and the slave both run on a dedicated VM. I have started a master and a slave as a single node cluster. The problem is that I can't test the environment.When I try to run these commands:

```
# Run C++ framework (Exits after successfully running some tasks.).
$ ./src/test-framework --master=127.0.0.1:5050

# Run Java framework (Exits after successfully running some tasks.).
$ ./src/examples/java/test-framework 127.0.0.1:5050

# Run Python framework (Exits after successfully running some tasks.).
$ ./src/examples/python/test-framework 127.0.0.1:5050

```

I get the following replies:

C++

```
-bash: ./src/test-framework: No such file or directory

```

JAVA

```
 Could not find or load main class TestFramework

```

Python

```
E1003 16:33:58.847239  7281 socket.hpp:174] Shutdown failed on fd=6: Transport endpoint is not connected [107]

```

During installation I did `make check`.

Any advice would be really helpful. Thanks in advance.

Answer: 
Just call `setLayoutParams()` after setting your margins:

```
        layoutParams.setMargins(10, 10, 10, 10);

        ll.setLayoutParams(layoutParams);// here
        setContentView(ll);

```

PS: In your case, it's better if you set your `RelativeLayout` from xml
Just in case that you need it in XML

```
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="10dip">

</RelativeLayout>

```

Or you could set them by one

```
android:layout_marginBottom="10dip"
android:layout_marginTop="10dip"

```

And so on