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