help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave's Javas Virtual Machine shows interessting error


From: Markus Lamprecht
Subject: Octave's Javas Virtual Machine shows interessting error
Date: Fri, 1 Sep 2017 09:42:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hey there,

I got a strange error in octave when trying to connect to a websocket.


Details of my problem can be found here:

https://stackoverflow.com/questions/45720791/octaves-jvm-does-not-find-the-implementation-class?noredirect=1#comment78400119_45720791

[THIS IS NOT A DUBLICATE cause this problem just occurs in octave. It does not occurr if I run my file for example under native ubuntu with: java -jar test1.jar]

To test it and see the error yourself do the following:

In a terminal:

roslaunch rosbridge_server rosbridge_websocket.launch


Then exectute the octave code:

javaaddpath(["/home/markus/Desktop","/test1.jar"]) #test1 #jrosbridge

obj = javaObject("main");

ros=obj.createRos("localhost");

ros.connect(); #error!

topic=obj.createTopic(ros,"/chatter","std_msgs/String");

topic.getName(); topic.getThrottleRate(); topic.getType();

message = obj.createMessage("{\"data\": \"hello, world!\"}");

topic.publish(message);


The jar file can be generated of the attacehd file (this is basically the maven project).

The executable jar file is also inside the .tar.gz container

You just can use eclipse e.g. to generate a jar of it.

Thanks for your help :)


Greetings from the technical University of Darmstadt

Markus

Attachment: jrosbridge.tar.gz
Description: application/gzip


reply via email to

[Prev in Thread] Current Thread [Next in Thread]