It seems like you have not specified the class-path correctly.
Read the Article to understand and setting of class path.
Since it's well know issue which anyone faces if classpath and classnames are not mentioned , I would suggesting looking for “Could not find or load main class” Error while running java program using cmd prompt" online to know more about this.
Yes, this input string is the appkey. I'm relatively sure that I copied it correctly and there aren't any white spaces.
There aren't many changes I do before. I only installed java jdk7, used chmod +x on ultrasonic.py and set the correct classpath.
The command should look like this: java –jar ultrasonic.jar ws://yourInstanceURL:80/Thingworx/WS YourAppKey pinIn pinout
and the output should look like this:
I got this from a PTC software engineer, but his mail account apparently doesn't exist anymore.
Try to use IP of the Thingworx server rather than Hostname. Not sure if this will resolve the problem here , but it resolved the similar kind of issue once for Debanjan Bose .
Also , I would suggest using same version (i.jdk1.8) while making the jar and also while running the jar from RPI.
The error which you are getting now is again related to classpath and/or missing jars: "you dont have java assist in your classpath or you have dont have enough permission to dynamically load classes"
Javassist is a library for byte code manipulation.
Seems , more like environment issue or issue related with compilations and adding third party jars while making the build .
Which build tool are u using to make the jars ? if maven is being used , Please add the following lines in pom.xml and then make the jar again.
Thank you Durgesh Patel, that was a good point, the connection is now successfull.
But now I get another error that it cannot find the python script which reads the sensor data. It is saved in the correct direction /home/pi.
Ravi Upadhyay, it seems the javassist is not required to run the programme.
And I think it's build with eclipse. But that's the problem it is not my jar file and I'm not very familiar with java. I had a WebEx call with the PTC software engineer I mentioned before. In result to that he send me the jar file, the python script and a short tutorial word document. I tried since then to get a running script.