在学习tinyos时,我现在面临一些关于java的问题。
还有一些关于我的java和tinyos.sh
的设置 //.bashrc
# Start TinyOS environment pathing
export TOSROOT=/opt/tinyos-2.1.2
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.$CLASSPATH
export MAKERULES=$TOSROOT/support/make/Makerules
export PATH=/opt/msp430/bin:$PATH
source /opt/tinyos-2.1.2/tinyos.sh
# End TinyOS pathing
export JAVA_HOME=/usr/local/java/jdk1.8.0
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
# TinyOS 2.1.2 Configuration Guide
# Here we setup the environment
# variables needed by the tinyos
# make system
echo "Setting up for TinyOS 2.1.2"
export TOSROOT="/opt/tinyos-2.1.2"
export TOSDIR="$TOSROOT/tos"
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python
exportCLASSPATH=
$CLASSPATH:$TOSROOT/support/sdk/java:.:$TOSROOT/support/sdk/java/tinyos.jar
如有任何建议,请告诉我。
答案 0 :(得分:0)
您的问题几乎在于您的类路径,请尝试:
CLASSPATH="$TOSROOT/support/sdk/java/tinyos.jar:$TOSROOT/support/sdk/java:$TOSROOT
/support/sdk/java/net/tinyos:{Insert_folder_where_NesC_Is}/nesc-1.3.4/tools:."
上面的类路径应该涵盖了你可能需要的每个与java相关的东西。