Running a java device server
|
|
---|---|
I'm working on a project how to read data from the arduino board by the serialline, first thing i define my class with pogo and save it into a special folder when im trying to compile it with the terminal by the command "javac ArduinoLink.java" i find a lot of errors for exemple : package org.tango.utils does not exist the majority of errors package dont exist , if there's a link on how to run a device server it will be so helpful ? |
|
|
---|---|
Hi Faissal To compile (or run) a Java device server, you need to export the environment variable CLASSPATH. Where CLASSPATH contains at least JTango.jar. Pascal |
|
|
---|---|
Another approach is to use single executable jar. This means to assemble all the dependencies into a single jar with defined main class. This way Tango Java server can be launched like this:
You can give a try to this project: MStatusFacade Clone and build it:
The output must look like this:
Note that I do not have MStatusServer defined in my Tango Database so this output is pretty fine. It indicates that server actually starts! |
|
|
---|---|
i set the Classpath to a JTango.jar file so it works , but another problem appears when i want to run it "could not find or load main class " i try to write "java PACKAGENAME.CLASSNAME" it doesn't work |
|
|
---|---|
Try to add current location to the class path:
|