Hi,
 
 This is nandy again... As per my knowledge
CLASSPATH=. will  set the class path for the currnet folder but older classpath will be lost with this.
 
so tried with this but coulnd't work. I m getting same error.
 
Help me out.  Thanks in advance.
 


Michael Schippling <[EMAIL PROTECTED]> wrote:
you _should_ be able to set a classpath in your environment
before starting appletviewer...I think. The easiest might be
to try: export CLASSPATH=. and then run the viewer from
tools/java where it will then search down net/tinyos/...
Or include the full path to your tools/java in the CP and
you can run from anywhere.

On the other hand you may just need to sp! ecify the full
package name to the viewer: net.tinyos.tools.Listen

Also I believe you want the class file, not the .java file
so leave off ".java". I think I used appletviewer once so
take this all with a grain of salt...

MS

nandy jones wrote:
> Hi,
>
> I m trying to modify the Listen.java file for fetching the light value
> as its done in oscilloscope application. In which I have modified some
> of the content of Listen.java file. I have made it extended with
> applets. So when I m trying to run it with
>
> appletviewer Listen.java
>
> It shows the FOLLOWING ERROR
> $ appletviewer Listen.java
> java.lang.NoClassDefFoundError: Listen (wrong name: net/tinyos/tools/Listen)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
> at
> sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148)!
> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> at
> sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
> at sun.applet.AppletPanel.run(AppletPanel.java:293)
> at java.lang.Thread.run(Thread.java:536)
>
>
> So I think there is problem with class path setting But where I can set
> the path..
> because It seems ! all files are compiled with make command..
>
> so please let me know which file to edit for setting classpath OR its
&g! t; the different problem..
>
> thanks
>
> ------------------------------------------------------------------------
> Yahoo! Photos
> Ring in the New Year with Photo Calendars
> .
> Add photos, events, holidays, whatever.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

Reply via email to