Hi,

i had to refresh all my workspace under eclipse mars after a crash due to an electricity cut off . So i've a new workspace with my folders pulled form git and i get a lot of error . Java is version 8.152 all seems to be well configured . The problem is " The declared package "org.myrobotlab.service" does not match the expected package "main.java.org.myrobotlab.service"

I'm sure it's a little thing, but i don't find how to solve it ..

Thanks for your help !

Edit : the errors are same with both develop and master branchs

GroG

6 years 10 months ago

Hi Beetle ! 

You probably want to switch to "master" branch. 

Manticore is the last release with the "old" Ant build, and this seems to be how your system is configured.

"Develop" branch is now Nixie project - with lots of big changes - one of which is the required directory structure of maven, which it appears you have run into.

It will take some time for us to get Nixie into super-worky.  So, I suggest you use "master" and if you have changes we will merge them back into Nixie when its more worky.

Thx Greg, i've switched to master, but i still get error on few files :

JavaFxGui.java

line 12 -> The import javafx cannot be resolved

line 50 -> Application cannot be resolved

Security.java 

lot of errors due to lines 15,16,17,18 -> The import javax.crypto cannot be resolved

Msg.method.template.java

lot of errors about -> - Syntax error on tokens, delete these tokens

Msg.template.java

- The declared package "org.myrobotlab.arduino" does not match the expected package 
"resource.Arduino.generate"
- Syntax error on token(s), misplaced construct(s)
 
EDIT : JavaFxGui.java and Security.java errors have been solved by adding JRE System Library JDK 1.8.0_152 to the project java build path :D

JavaFx was Oracles attempt of making a new UI framework .. I don't think its going very well.
On develop I got rid of all traces ..

in regards to the Msg.template.java - you can right click on it and exclude from build .. its not a complete java file, but used as a template, that's why it cant compile ..

I guess I better do a pull on master and see what I get 

Thank you, now there's no error in the workspace but i still can't run mrl from eclipse . I will once again start from zero and pull all . There is something strange somewhere ! 

Ok, all is clean now, but when i run mrl in eclipse, i get this error for each service : 

does not have a static getMetaData method

and of course it won't run

 

I get this error after that :

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'c': Native library (win32-x86/c.dll) not found in resource path ([file:/C:/MRL2/myrobotlab/bin/, file:/C:/MRL2/repo/com.mxgraph.jgraph/1.6.1.2/jgraphx.jar, 
.
.
.  All repo's files
.
file:/C:/MRL2/repo/net.sourceforge.tess4j/3.4.0/xmlgraphics-commons-1.5.jar, file:/C:/MRL2/repo/org.mockito/1.10.19/mockito-all-1.10.19.jar, file:/C:/MRL2/repo/org.wikidata.wdtk/0.8.0-SNAPSHOT/wdtk-datamodel-0.8.0-SNAPSHOT.jar, file:/C:/MRL2/repo/org.wikidata.wdtk/0.8.0-SNAPSHOT/wdtk-dumpfiles-0.8.0-SNAPSHOT.jar, file:/C:/MRL2/repo/org.wikidata.wdtk/0.8.0-SNAPSHOT/wdtk-storage-0.8.0-SNAPSHOT.jar, file:/C:/MRL2/repo/org.wikidata.wdtk/0.8.0-SNAPSHOT/wdtk-util-0.8.0-SNAPSHOT.jar, file:/C:/MRL2/repo/org.wikidata.wdtk/0.8.0-SNAPSHOT/wdtk-wikibaseapi-0.8.0-SNAPSHOT.jar, file:/C:/MRL2/repo/com.jidesoft/3.6.18/jide-oss.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403)
at com.sun.jna.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:502)
at com.sun.jna.Native.loadLibrary(Native.java:481)
at org.myrobotlab.service.TesseractOcr$Environment$POSIX.<clinit>(TesseractOcr.java:124)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.myrobotlab.framework.repo.ServiceData.generate(ServiceData.java:156)
at org.myrobotlab.framework.repo.ServiceData.getLocalInstance(ServiceData.java:104)
at org.myrobotlab.service.Runtime.<init>(Runtime.java:162)
at org.myrobotlab.service.Runtime.getInstance(Runtime.java:563)
at org.myrobotlab.service.Runtime.main(Runtime.java:1234)

Hi, solved ! 

Eclipse said that servicesData.json was missing in .myrobotlab and wasn' able to copy the one from src folder. So i've copy/paste it from the myrobotlab folder and now it lanch perfectly !! :D

A good thing done ! Now i'll try to make my adafruitServoDriver work because that don't work with the exemple. No error but the servo don't want to move ..

 

The RasPi service was modified to allow MRL to compile without errors. But unfortunately that change made i2c NoWorky on the PI. If you look at the history here you can find why it doesn't work:

https://github.com/MyRobotLab/myrobotlab/tree/develop/src/main/java/org…

The Adafruit16CServoDriver should still work if you use it on an Arduino.

The Maven update seems have removed the need for the repo. I could get MRL to run  in Eclipse without it.

thx mats, i'll look at your link. I'm using an arduino and all seem ok on my screen but the servo don't move. I've ordered two module so i'll test with the other one to be sure that the problem isn't due to a defective servo driver.

If it don't work, i will open an other forum thread tomake the aswer easyer to find if someone encounter the same problem.

 

EDIT: I found the problem ! Don't laugh, it's the first thing i'll had to check ! For test i use a battery holder with four 1.5v batteries and instead of 6v i had only 4.2v. with new batteries, it work a lot well !! lol

thx for your help

I'm laughing, because I do the same thing all the time.  I spend hours trying to figure out why OpenCV software doesn't work, when I have not plugged in the camera ! :D