0
$\begingroup$

Rosanswers logo

Hi,

I'm currently setting up an Ubuntu 11.10 with ROS Electric to use rosjava. The build tools are ant 1.8, maven 2.2 and rosws.

Installing rosjava as described link:here unfortunately fails at building the task ':apache_xmlrpc_common:compileJava' with error message:

Building > :apache_xmlrpc_common:compileJava > Resolving dependencies ':apache:apache_xmlrpc_common:compileJava FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':apache_xmlrpc_common:compileJava'.

java.lang.NullPointerException (no error message)

I've got no clue how to fix this; is there anything I missed?

Thanks in advance!

Best regards, Andreas


Originally posted by andreasw on ROS Answers with karma: 61 on 2012-04-14

Post score: 5

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

If you are using "openjdk-7-jdk" try reverting back to "openjdk-6-jdk". This resolved the issue for me.


Originally posted by bblodget with karma: 73 on 2012-04-16

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by 130s on 2013-03-11:
Removing openjdk-7 didn't work for me. Instead @SergioGutierrez's solution worked with this version of rosandroid

$\endgroup$
0
$\begingroup$

Rosanswers logo

Hello again,

Problem solved, it had nothing to do with the build.gradle file, I was using the jre installed from ubuntu software center "OpenJDK Java 7 Runtime", the problem was gone when I installed gradle from apt "sudo apt-get install gradle", wich installs also the necessary java software like javac, after installing I only had to add at the end of the etc/bash.bashrc the JAVA_HOME to "JAVA_HOME=/usr/lib/jvm/default-java", export the variable with "export JAVA_HOME", the PATH to "PATH=$PATH:$JAVA_HOME/bin", export the variable PATH "export PATH", and then all worked nicely.

Best regards.


Originally posted by SergioGutierrez with karma: 86 on 2012-05-08

This answer was NOT ACCEPTED on the original site

Post score: 6

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.