gloomyandy wrote:That stack trace seems to indicate that it Can't find your main class (which is I assume what MyEV3RemoteAccess is). How are you building and running your program. Are you sure that you have things configured correctly?
lawrie wrote:Hi comix,
As Andy says, it looks like your Eclipse configuration is broken in some way, if you cannot run the main class of a project that you just created. Perhaps you should try a very simple Java test program that does not use leJOS to see if your Eclipse configuration is working at all. What operating system are you on? Your problem could be the same as the one mcrosbie hit on MAC OS X, where the project specified Java 7 but only Java 6 was installed. Posting the contents of your .classpath file would be useful.
Remote control does work but there was a problem with the EV3Menu project and you will have to update your menu to the latest head version to do remote control - see viewtopic.php?f=18&t=5107&start=30#p21405.
The EV3SensorMonitor program does work, but it had some problems so I have just made some changes to it. Again you will need to pull the head version from git to get that.
I am changing all the sample projects to set ev3.host to 10.0.1.1 but to allow a local.properties file to override it. If you are using Wifi, you will need to create a local.properties file and add:
- Code: Select all
to it. Replace ip-address with the IP address that the menu program shows on the EV3 LCD.
You should then be able to run the ant build file to build EV3SensorMonitor and copy it to the samples directory on the EV3. You can then run it from the Samples screen in the menu.
Note, however, that EV3SensorMonitor sends a lot of output to System.out and to see this, you need to run EV3Control or EV3ConsoleViewer from ev3tools.
Press Enter+Down to finish the sensor monitor.
The sensor monitor is mainly useful to see if a sensor is working. It monitors what sensors you plug into the EV3 and then calls some of the methods such as fetchSample and parameterless get methods from the sensor class.
RemoteEV3 ev3 = new RemoteEV3("10.0.1.1");
TextLCD lcd = ev3.getTextLCD();
Users browsing this forum: No registered users and 3 guests