> I will appreciate it if u could specify me what is wrong with the classpath.
If you type

echo $CLASSPATH

at the cygwin, you should be seeing a windows style classpath (with
drive letters, semicolons as separators). If you see something
different, you have a problem.


> I used the commands found in the tutorial
>
> export CLASSPATH='cygpath -w $TOSROOT/support/sdk/java/tinyos.jar'
>
> export CLASSPATH="$CLASSPATH;."
That looks good. I assume you specified TOSROOT beforehand.

Janos

> ________________________________
> From: Janos Sallai <sal...@isis.vanderbilt.edu>
> To: Lupe Krops <lupe...@yahoo.com>
> Sent: Wednesday, March 18, 2009 6:39:52 PM
> Subject: Re: [Tinyos-help] Javac error
>
> Your classpath is incorrect. Please follow the installation instructions at
> http://docs.tinyos.net/index.php/Installing_TinyOS_2.1
>
> Janos
>
> 2009/3/18 Lupe Krops <lupe...@yahoo.com>:
>> Hello to everyone,
>>
>>
>>
>> I'm having a problem compiling with javac in Tinyos2.1 under windows xp.
>>
>> I have searched through the forums, set the paths, and verify that at
>> least
>> the paths are the expected (or I hope so).
>>
>> My settings are the following:
>>
>> $ type java
>>
>> java is hashed (/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin/java)
>>
>> $ type javac
>>
>> javac is hashed (/cygdrive/c/Program Files/Java/jdk1.6.0_12/bin/javac)
>>
>> $ tos-locate-jre --javac
>>
>> /cygdrive/c/Program Files/Java/jdk1.6.0_12/bin
>>
>> $ tos-locate-jre --java
>>
>> /cygdrive/c/Program Files/Java/jdk1.6.0_12/bin
>>
>> $ tos-locate-jre --jni
>>
>> /cygdrive/c/Program Files/Java/jdk1.6.0_12/jre/bin
>>
>> $ $CLASSPATH
>>
>> $TOSROOT\support\sdk\java\tinyos.jar;
>>
>>
>>
>> I tried to run make micaz sim in RadioCountToLeds folder and got the
>> following errors:
>>
>> $ make micaz sim
>>
>> mkdir -p simbuild/micaz
>>
>> javac RadioCountMsg.java
>>
>> RadioCountMsg.java:7: package net.tinyos.message does not exist
>>
>> public class RadioCountMsg extends net.tinyos.message.Message {
>>
>> ^
>>
>> RadioCountMsg.java:67: package net.tinyos.message does not exist
>>
>> public RadioCountMsg(net.tinyos.message.Message msg, int base_offset)
>>
>> .....
>>
>>
>>
>> After searching on the forums, I then tried the following:
>>
>> 1.
>>
>> $ tos-install-jni
>>
>> Installing 32-bit Java JNI code in /cygdrive/c/Program
>> Files/Java/jdk1.6.0_12/jre/bin ...
>>
>> done.
>>
>> I still received the same errors
>>
>>
>>
>> 2.
>>
>> I navigated to the /opt/tinyos-2.x/support/sdk/java and executed the make
>> command, getting
>>
>> the following errors:
>>
>> ... /opt/tinyos-2.x/support/sdk/java
>>
>> make[1]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net'
>>
>> ... /opt/tinyos-2.x/support/sdk/java/net
>>
>> make[2]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos'
>>
>> ... /opt/tinyos-2.x/support/sdk/java/net/tinyos
>>
>> make[3]: Entering directory
>> `/opt/tinyos-2.x/support/sdk/java/net/tinyos/packet'
>>
>> ... /opt/tinyos-2.x/support/sdk/java/net/tinyos/packet
>>
>> ncg -o Serial.java -java-classname=net.tinyos.packet.Serial java
>> /opt/tinyos-2..x/tos/lib/serial/Serial.h Serial.h
>>
>> javac Serial.java
>>
>> javac AbstractSource.java
>>
>> AbstractSource.java:37: package net.tinyos.util does not exist
>>
>> import net.tinyos.util.*;
>>
>> .......
>>
>>
>>
>> 3. I created a .java and .jar test files under the ../sdk/java directory
>> amd
>> have been compiled succesfully.
>>
>>
>>
>> I'm in deadend and don't know what is the problem or at least what to
>> check
>> for.
>>
>>
>>
>> Any feedback is much appreciated.
>>
>>
>>
>> Best regards,
>>
>> Lup.
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to