Eclipse: Difference between NXT Project and PC Project

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

Moderators: 99jonathan, roger, imaqine

Eclipse: Difference between NXT Project and PC Project

Postby VALBITZ57 » Fri Feb 24, 2012 9:45 pm

Hello,
what is the difference between a NXT Project and a PC Project in Eclipse ?

The NXT Project works fine with BlueTooth and USB, but the PC Project doesn't work with anything.
I just get the Error:
Native Library bluecove not available
Failed to open connection to the NXT


Thanks in advance,
VALBITZ57
VALBITZ57
New User
 
Posts: 2
Joined: Fri Feb 24, 2012 9:17 pm

Re: Eclipse: Difference between NXT Project and PC Project

Postby skoehler » Sun Feb 26, 2012 11:59 am

VALBITZ57 wrote:Hello,
what is the difference between a NXT Project and a PC Project in Eclipse ?


NXT Projects are for programs that run on the NXT.
PC Projects are for programs that run on the PC and remote control the NXT.

You should probably take a look at the tutorial:
http://lejos.sourceforge.net/nxt/nxj/tu ... clipse.htm
skoehler
leJOS Team Member
 
Posts: 1406
Joined: Thu Oct 30, 2008 4:54 pm

Re: Eclipse: Difference between NXT Project and PC Project

Postby skoehler » Sun Feb 26, 2012 12:46 pm

VALBITZ57 wrote:I just get the Error:
Native Library bluecove not available
Failed to open connection to the NXT


Is this the only output? Which code did you use?
skoehler
leJOS Team Member
 
Posts: 1406
Joined: Thu Oct 30, 2008 4:54 pm

Re: Eclipse: Difference between NXT Project and PC Project

Postby VALBITZ57 » Sun Feb 26, 2012 5:31 pm

Code: Select all
import lejos.nxt.Motor;

public class HelloWorld {
    /**
     * @param args
     */
    public static void main(String[] args) {
        System.out.println("Hello World!");
        Motor.A.forward();
    }
}


Console output:
Hello World!
Native Library bluecove not available
Failed to open connection to the NXT
VALBITZ57
New User
 
Posts: 2
Joined: Fri Feb 24, 2012 9:17 pm

Re: Eclipse: Difference between NXT Project and PC Project

Postby nxtfan » Sat Jun 09, 2012 10:41 am

The same thing happened to me as well!

Java Version: 1.7.0 u4
leJOS: 0.9.1beta-3
Eclipse: 3.7.2 indigo
Mac OS X 10.7.4

Any hint? Thanks a lot!
nxtfan
New User
 
Posts: 11
Joined: Sat Jun 09, 2012 10:36 am

Re: Eclipse: Difference between NXT Project and PC Project

Postby skoehler » Sat Jun 09, 2012 12:12 pm

It might be the case that bluecove has problems with OSX 10.7
I will try to reproduce the issue on OSX 10.7

You're using the jdk-7u4-macosx-x64.dmg as provided by oracle?
Update: it seem Java 7 is only available in 64Bit. leJOS does not support 64Bit Java yet. Please install Java 6 and point LEJOS_NXT_JAVA_HOME to the root directory of the Java 6 JDK for the command line utilities to work. If you want to launch leJOS PC project from within Eclipse, you must provide "-d32" in the JVM argument of the run configuration and you must chose Java 6 as the execution environment in the run configuration.
skoehler
leJOS Team Member
 
Posts: 1406
Joined: Thu Oct 30, 2008 4:54 pm

Re: Eclipse: Difference between NXT Project and PC Project

Postby nxtfan » Tue Jul 10, 2012 8:47 pm

skoehler wrote:It might be the case that bluecove has problems with OSX 10.7
I will try to reproduce the issue on OSX 10.7

You're using the jdk-7u4-macosx-x64.dmg as provided by oracle?
Update: it seem Java 7 is only available in 64Bit. leJOS does not support 64Bit Java yet. Please install Java 6 and point LEJOS_NXT_JAVA_HOME to the root directory of the Java 6 JDK for the command line utilities to work. If you want to launch leJOS PC project from within Eclipse, you must provide "-d32" in the JVM argument of the run configuration and you must chose Java 6 as the execution environment in the run configuration.


Yes, I am using the jdk-7u4-macosx-x64.dmg by oracle. It is in 64Bit... Ok I will install another 32Bit version 6.
nxtfan
New User
 
Posts: 11
Joined: Sat Jun 09, 2012 10:36 am


Return to NXJ Software

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 4 guests

more stuff