Button and LCD classes not found

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Button and LCD classes not found

Postby vbelenky » Sat Dec 14, 2013 10:07 pm

I am following the instructions at http://sourceforge.net/p/lejos/wiki/Developing%20with%20leJOS/. The sample program imports 2 classes:

Code: Select all
import lejos.nxt.Button;
import lejos.nxt.LCD;


which causes a compile error because these packages don't exist. I then replaced these imports with:

Code: Select all
import lejos.hardware.Button;
import lejos.hardware.lcd.LCD;


to make it compile and for Eclipse to allow me to create a JAR because otherwise it complains that the class file doesn't exist. Upon loading the JAR to EV3 and trying to run it I get:

Code: Select all
...
NoClassDefFoundError: lejos/hardware/lcd/LCD
...


Please advise.
vbelenky
New User
 
Posts: 18
Joined: Sun Dec 01, 2013 4:08 am

Re: Button and LCD classes not found

Postby gloomyandy » Sat Dec 14, 2013 10:36 pm

Please try reading some of the other threads before posting questions, this one for instance seems to describe a similar problem, and the reply from me points to a sticky thread that I suspect has the answer you are looking for:
viewtopic.php?f=18&t=4594&p=20972#p20971
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3646
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Button and LCD classes not found

Postby vbelenky » Sat Dec 14, 2013 10:51 pm

HI Andy. Sorry about not searching the forum first. Thanks for the link.
vbelenky
New User
 
Posts: 18
Joined: Sun Dec 01, 2013 4:08 am


Return to EV3 Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff