Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion NoClassDefFoundError from Processing Example
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
andrew  
View profile  
 More options Feb 20 2012, 2:31 pm
From: andrew <andrew.r...@gmail.com>
Date: Mon, 20 Feb 2012 11:31:59 -0800 (PST)
Local: Mon, Feb 20 2012 2:31 pm
Subject: Re: NoClassDefFoundError from Processing Example
The issue here is the log4j.jar cannot be found.  Did you load the jar
files into processing per the wiki:

After starting Processing, the first thing we need to do is add the
XBee-API JAR files. The easiest way to do this is to drag the JAR
files into the Processing window. The required files are xbee-api-
version-.jar and log4j.jar. The RXTX libraries are already included in
Processing.

If you want to run outside of processing, you can just put the code
from setup into the main method and also copy the code from
readPackets into main.  Don't forget to add the jars to your classpath
and also the rxtx native lib

On Feb 18, 3:31 pm, Daniel Carroll <dannyfl...@gmail.com> wrote:

> I'm brand new to XBee API programming and I have no clue where to
> start.  I followed the steps on

> http://code.google.com/p/xbee-api/wiki/Processing

> exactly, but when I try to run the code I get

> Exception in thread "Animation Thread" java.lang.NoClassDefFoundError:
> org/apache/log4j/Logger
>         at com.rapplogic.xbee.api.XBee.<clinit>(XBee.java:42)
>         at sketch_feb18a.setup(sketch_feb18a.java:46)
>         at processing.core.PApplet.handleDraw(Unknown Source)
>         at processing.core.PApplet.run(Unknown Source)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         ... 5 more

> I have no clue what's going on and would greatly appreciate any help.

> Also, seeing as I need to know this eventually, how should I export
> the code to the XBee; I couldn't really find any documentation or
> procedures for this.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.