Open clplaneguy opened 6 years ago
Use IP address, it usually takes a couple of minutes. I haven't tried on Windows 7. You need to create a run configuration for Lejos.
Install plugin and restart IDE. Done Windows 7 IntelliJ IDEA: Version 2017.3.4 (Community Edition) LeJOS Plugin: Version 1.2
Create a lejOS project. Done Project name: 3-13-2018_leJOS_PROJECT
Go to File > Settings > Tools > LejOS Plugin. Done
Set EV3_HOME and brick's name (Default is 10.0.1.1). Done EV3_HOME: C:\Program Files\leJOS EV3 Name: 10.0.1.1 File > Settings > Tools > leJOS Plugin is set
Write code to your EV3. Done I have created a leJOS PROJECT/"Hello World" program.
Create a run configuration. Done I have a Run/Debug Configurations setting. Should it say something specific.
Enjoy your robot! Error The leJOS program(Hello World) does not find and is not looking for an EV3. I do not get an "EV3 not found" error. The program is running on the PC and is printing to the computer screen. That can be a nice option considering the small EV3 screen, but does not serve the purpose.
What am I missing?
Hi, are you using jdk7? Can you ping your ev3 from your pc? Can you open an ssh connection to it?
On Mar 13, 2018 8:59 AM, "clplaneguy" notifications@github.com wrote:
1.
Install plugin and restart IDE. Done 2.
Create a lejOS project. Done Project name: 3-13-2018_leJOS_PROJECT 3.
Go to File > Settings > Tools > LejOS Plugin. Done 4.
Set EV3_HOME and brick's name (Default is 10.0.1.1). Done EV3_HOME C:\Program Files\leJOS EV3 Name 10.0.1.1 File > Settings > Tools > leJOS Plugin is set 5.
Write code to your EV3. Done I have created a leJOS PROJECT/"Hello World" program. 6.
Create a run configuration. Done I have a Run/Debug Configurations setting. Should it say something specific. 7.
Enjoy your robot! Error The leJOS program(Hello World) does not find and is not looking for an EV3. I do not get an "EV3 not found" error. The program is running on the PC and is printing to the computer screen. That can be a nice option considering the small EV3 screen, but does not serve the purpose.
What am I missing?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment-372674629, or mute the thread https://github.com/notifications/unsubscribe-auth/AFa56TjXOgzt6XM35Z5LMv_HRuNCZuhEks5td9DRgaJpZM4SnlFd .
Ping successful: 0% loss ssh made successfully: It's been a long time. I do not remember what to do with it. jdk down graded from 9 to 7.
No change. Output sent to computer.
Please share your code, I will try to replicate your issue.
import lejos.hardware.Button;
public class hello_world { public static void main(String[] args) { System.out.println("3/13/2018 TTest runme"); System.out.println("Hellobbbbbbbbbbbbbbbb World!!");
Button.waitForAnyPress();
}
}
On Tue, Mar 13, 2018 at 10:54 AM, Miguel Cordova notifications@github.com wrote:
Please share your code, I will try to replicate your issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment-372715749, or mute the thread https://github.com/notifications/unsubscribe-auth/AV8DihqQSnL4Vi5z5ixMhh8VRjZPdkARks5td-ujgaJpZM4SnlFd .
Use: LCD.drawString("Test", 1, 1); to print text on the brick.
Cannot resolve symbol 'LCD'
On Tue, Mar 13, 2018 at 11:14 AM, Miguel Cordova notifications@github.com wrote:
Use: LCD.drawString("Test", 1, 1); to print text on the brick.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment-372723333, or mute the thread https://github.com/notifications/unsubscribe-auth/AV8DiuoBWicbwe0ZiYwIK93ajDnGMdtRks5td_BGgaJpZM4SnlFd .
You have to import it: import lejos.hardware.lcd.LCD;
On Tue, Mar 13, 2018 at 11:31 AM, clplaneguy notifications@github.com wrote:
Cannot resolve symbol 'LCD'
On Tue, Mar 13, 2018 at 11:14 AM, Miguel Cordova <notifications@github.com
wrote:
Use: LCD.drawString("Test", 1, 1); to print text on the brick.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment- 372723333, or mute the thread https://github.com/notifications/unsubscribe-auth/ AV8DiuoBWicbwe0ZiYwIK93ajDnGMdtRks5td_BGgaJpZM4SnlFd .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment-372730000, or mute the thread https://github.com/notifications/unsubscribe-auth/AFa56cKPwrI9SnKvIL3UiA03MJgaJCcPks5td_R9gaJpZM4SnlFd .
package leJOS_PACKAGE;
import lejos.hardware.Button; import lejos.hardware.ev3.LocalEV3; import lejos.utility.; import lejos.; import lejos.hardware.lcd.LCD;
//import lejos.robotics. import lejos.hardware.Brick; import lejos.hardware.BrickFinder; // PACKAGE import lejos.hardware.Button; // PACKAGE import lejos.hardware.LocalBTDevice; import lejos.hardware.ev3.EV3; import lejos.hardware.lcd.Font; import lejos.hardware.lcd.GraphicsLCD; // PACKAGE import lejos.hardware.video.Video; // PACKAGE *import lejos.hardware.video.YUYVImage;
*// PACKAGE *public class hello_world { public static void main(String[] args) { System.out.println("3-13-2018 1"); System.out.println("Hello_World"); LCD.drawString("Test", 1, 1); Button.waitForAnyPress(); System.out.println("AfterButton.waitForAnyPress ' "); } }
/////////////////////////////////////////
Editor comments:
Cannot resolve symbol Hello_World
Cannot resolve symbol AfterButton
Cannot resolve symbol waitForAnyPress
On execution: Program prints to the computer screen
3-13-2018 1
Hello_World
Then execution stops and does not print to the screen
AfterButton.waitForAnyPress
The EV3 is never accessed.
I was going to work with Scala. Does all this have nothing to do with Scala?
On Tue, Mar 13, 2018 at 11:42 AM, Miguel Cordova notifications@github.com wrote:
You have to import it: import lejos.hardware.lcd.LCD;
On Tue, Mar 13, 2018 at 11:31 AM, clplaneguy notifications@github.com wrote:
Cannot resolve symbol 'LCD'
On Tue, Mar 13, 2018 at 11:14 AM, Miguel Cordova < notifications@github.com
wrote:
Use: LCD.drawString("Test", 1, 1); to print text on the brick.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment- 372723333, or mute the thread https://github.com/notifications/unsubscribe-auth/ AV8DiuoBWicbwe0ZiYwIK93ajDnGMdtRks5td_BGgaJpZM4SnlFd .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment- 372730000, or mute the thread https://github.com/notifications/unsubscribe-auth/ AFa56cKPwrI9SnKvIL3UiA03MJgaJCcPks5td_R9gaJpZM4SnlFd
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/8#issuecomment-372733649, or mute the thread https://github.com/notifications/unsubscribe-auth/AV8DiqhKUdB4srU5lelW12hgLtut9VNfks5td_b-gaJpZM4SnlFd .
Scala is not supported, maybe that's the reason.
InteliJ IDEA/leJOS plugin does not connect to the Lego brick with Windows 7. The brick is connected by both USB and BlueTooth. But. no application connection is made. Program runs on the PC. Should the IP address be used or the brick name?