Hi,
The first error may be caused because you're not running the command
as root. Try to use sudo.
The second warning is caused by the fact that you're using java 1.6
The third error is caused because you're trying to run the source
code, you need to compile it before beeing able to use it (use the
makefile). Once compiled you'll be able to run java TestSerial

2010/1/11 t'aim . <[email protected]>:
> HI ,
>
> i am using ubuntu +tinyos .All Apps are working fine but there is some
> problem in Java I think .these r the errors i am recieving
>
> 1st error:::
>
> tk...@cnsr-2:~$ tos-install-jni
> [: 31: =: unexpected operator
> Installing 32-bit Java JNI code in /usr/lib/jvm/java-6-sun/jre/lib/i386 ...
> install: cannot remove `/usr/lib/jvm/java-6-sun/jre/lib/i386/libgetenv.so':
> Permission denied
>
> 2nd Error:::
>
> WARNING: The JAVA version found first by tos-check-env may not be version
> 1.4 or version 1.5one of which is required by TOS. Please ensure that the
> located Java version is 1.4 or 1.5
>
> 3rd Error::
>
> tk...@cnsr-2:/opt/tinyos-2.1.0/apps/tests/TestSerial$ java TestSerial.java
> Exception in thread "main" java.lang.NoClassDefFoundError: TestSerial/java
> Caused by: java.lang.ClassNotFoundException: TestSerial.java
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: TestSerial.java.  Program will exit.
>
> Help me guys
> Thanks Taimoor
>
> ________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Jordi Soucheiron
Software Engineer

DEXMA
Parc Tecnològic la Salle
Sant Joan de la Salle, 42
08022 Barcelona
t/f: [+34] 93 181 01 95
www.dexmatech.com
[email protected]

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to