Hi Tony,
Thanks a lot,, i have ibm JVM only installed,, and earlier the Classpath
was not pointing to /opt/ibm/java... so i set it right so the first
problem went away...
The problem i am facing is in trying to "Listen"
I have set MOTECOM environment variables as given in
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
and when i run
% java net.tinyos.tools.Listen
[EMAIL PROTECTED]:19200: resynchronising
I get this and it is not printing any binary data... i am just worried
that my hardware platform is not anyone specified in TinyOS,.. i bought
a Chipcon CC2420DBK... and have defined my own harware platform
according to tutorial 10 in tinyos-2.x tutorials... My boards are almost
similar to Mica's, just the LED's and push buttons hook on to different
ports....
What can be the reason for it not giving anything after the above line...
Thanks for your help!!!!!!!!!!
Cheers!!!!!
VJ
Tony Mancill wrote:
Have you installed a JavaCOMM? It doesn't come by default with the JVM.
I had enough problems with installing it on Sun's JVM that I gave up
and switched to IBM's JVM. Here are some notes I took during the
install (from an internal wiki - else I'd send you a link):
Install IBM's JDK and JavaCOMM package, available via developerWorks.
You will have to create an account with IBM in order to do the download.
The tarballs required are ibm-java2-sdk-50-linux-i386.tgz and
ibm-java2-sdk-50-linux-i386.tgz.
* Extract the two tarballs downloaded from IBM under /opt. You'll
end up with /opt/ibm-java2-i386-50/. Optionally, you make choose to
create an ibm diretory and rename the JDK diretory to be
/opt/ibm/java2-i386-50/ (as this matches the documentation on IBM's
site). In either case, your new JDKROOT (for the .bashrc_tinyos script)
is now wherever you install the JDK - i.e. either /opt/ibm-java2-i386-50
or /opt/ibm/java2-i386-50.
* Install libstdc++5, as IBM's JDK appears to be linked against it.
Hope that helps.
Cheers,
tony
Spidernet Lists wrote:
Hi,
I have been able to fix this error already.. the classpath define was
not right... but now i am getting a different error while using the
Listen command... It says
invalid packet source (check your MOTECOM environment variables)
Can anyone help me on this???
Cheers!!!!!!
VJ
Tony Mancill wrote:
Hi,
What JVM are you using? It appears that you're using gcj. I'd
recommend looking at your PATH or trying 'which java' to see which java
is being invoked. You should setup your PATH to locate either the IBM
or Sun JVM.
Hope that helps,
tony
Spidernet Lists wrote:
Hi,
I am trying to talk with my platform over the serial port using the
"TestSerial" application.
The javapath is correctly defined but I am getting the following error:
[EMAIL PROTECTED] TestSerial]# java TestSerial
Exception in thread "main" java.lang.NoClassDefFoundError: while
resolving class: TestSerial
at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0
(/opt/tinyos-2.x/apps/tests/TestSerial/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses
(/opt/tinyos-2.x/apps/tests/TestSerial/java.version=1.4.2)
Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not
found in [file:/opt/tinyos-2.x/support/sdk/java/tinyos.jar, file:./,
file:/usr/share/java/libgcj-3.4.6.jar, file:./, core:/]
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
...9 more
I am also getting a "jni" error but i cannot find the makefile in
/opt/tinyos-2.x/tools
as there is no such folder ,,, instead I have
/opt/tinyos-2.x/support/sdk/java
and when i go there, it has a makefile.... but what to do now... can
anyone help???
Cheers!!!
VJ
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help