NO pc window

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

Moderators: 99jonathan, roger, imaqine

NO pc window

Postby johncap » Thu Jul 19, 2012 1:08 pm

When I run a pc java application program the first time a window showed up on the pc screen. But did not seem to have an affect on the program.
I had to shut off the NXT brick to stop the program.

I tried downloading a program again, and no pc window has showed up on the pc screen..

Where does on set the pc java application window?

thanks
johncap
New User
 
Posts: 5
Joined: Mon Jul 16, 2012 11:04 pm

Re: NO pc window

Postby skoehler » Thu Jul 19, 2012 1:11 pm

It's probably an error in your PC program. Show us the source code.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: NO pc window

Postby johncap » Thu Jul 19, 2012 5:08 pm

It is the following:
package com.domain;

import lejos.nxt.Motor;
public class HeoolWorld {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Heool World!");
Motor.A.forward();

// TODO Auto-generated method stub
}
}
johncap
New User
 
Posts: 5
Joined: Mon Jul 16, 2012 11:04 pm

Re: NO pc window

Postby skoehler » Thu Jul 19, 2012 6:10 pm

Your program doesn't open any windows. I just outputs something on the console.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron
more stuff