ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Compilation of rosjava fails. [closed]

asked 2011-11-02 09:16:05 -0500

TommyP gravatar image

I am trying to compile rosjava and did: roscd rosjava; rosmake. And got the following error message:

compile:
  [javac] Compiling 80 source files to /home/tompe/ros/rosjava_core/rosjava/target/classes
  [javac] /home/tompe/ros/rosjava_core/rosjava/src/main/java/org/ros/internal/message/old_style/MessageSerializationFactory.java:38: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds MessageType,java.lang.Object
  [javac]     MessageType message = messageFactory.newMessage(messageType);
  [javac]                                                    ^
  [javac] /home/tompe/ros/rosjava_core/rosjava/src/main/java/org/ros/internal/message/old_style/MessageSerializationFactory.java:52: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds MessageType,java.lang.Object

Any ideas? Are using jdk1.6.0_17.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by damonkohler
close date 2012-01-31 02:05:38

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-11-10 08:57:27 -0500

TommyP gravatar image

Updating to jdk1.6.0_29 solved the problem.

edit flag offensive delete link more
0

answered 2011-11-06 19:05:34 -0500

damonkohler gravatar image

You could try using the OpenJDK instead. But it looks like it could be a rosjava bug. See http://stackoverflow.com/questions/314572/bug-in-eclipse-compiler-or-in-javac

Please file an issue: http://code.google.com/p/rosjava/issues

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-02 09:16:05 -0500

Seen: 387 times

Last updated: Jan 30 '12