FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   Error in IDE execution?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Error in IDE execution?  (Read 1612 times)
metaphorz


Error in IDE execution?
« on: Sep 11th, 2004, 4:55am »

I just noticed this problem at home, and don't
recall seeing it at the work machine. Anyway,
take the following program and underneath the
"code" directory, put the jar file found at
http://www.cise.ufl.edu/~fishwick/Sim.jar. An
Export to Web works fine and the resulting applet
works perfectly. However, a "play" in the IDE
fails with:  
 
java.lang.NoClassDefFoundError: files\Internet
Exception in thread "main"
 
Any ideas? Here is the code:
 
 
// Random Discrete Event Draws
// Test Program for SimPack
 
TOKEN token = new TOKEN();
int DRAW = 0,event;
 
void setup()
{
  Sim.init(Const.HEAP);
  size(300, 300);
  background(0);
  stroke(255);
  framerate(30);
  for (int i=1;i<100;i++) {
    token.attr[0] = (double) i;
    Sim.schedule(DRAW, minute()*60+second()+i*(double) random(0,3),token);
  }
}
 
void loop()
{
     
    int tt=Sim.next_event(event,token,minute()*60+second(),Const.SYNC);
    if(tt == DRAW) {
 float r1 = random(0, 255);
 float r2 = random(0, 255);
 float r3 = random(0, 50);
 ellipse(r1,r2,r3,r3);
    }
}
 
 
 
 
metaphorz


Re: Error in IDE execution?
« Reply #1 on: Sep 11th, 2004, 3:38pm »

Extra Info: Windows XP platform
 
I just did a test and noticed that everything works
fine under 0068, but that the failure seems to  
occur only in 0069. Again, I don't recall having
this problem on another machine, but that could
be a fluke and I may have been running 0068 there
or I was just running the applet version...
 
metaphorz


Re: Error in IDE execution?
« Reply #2 on: Sep 25th, 2004, 9:37pm »

Here is a simpler example. Place Sim.jar underneath
the sketch's code directory. You can may find Sim.jar
under:
 
http://www.cise.ufl.edu/~fishwick/simpackj/source/
 
 
At this machine at home, in 0068 (windows xp),
both the IDE->play and IDE->Export-to-Applet  
work fine. In 0069, only the IDE->Export-to-Applet
works. When I try IDE->play, I get the
java.lang.NoClassDefFoundError.
 
 
 
 
// Random Discrete Event Draws
// Test Program for SimPack
 
public TOKEN token = new TOKEN();
public int DRAW = 0,event;
 
void setup()
{
  Sim.init(minute()*60+second(),Const.HEAP);
  size(300, 300);
  background(0);
  stroke(255);
  for (int i=0;i<100;i++) {
    token.attr[0] = (double) i;
    Sim.schedule(DRAW, random(0,10) ,token);
  }
}
 
void loop()
{
     
    int event = Sim.next_event(token,minute()*60+second(),Const.SYNC);
    if(event == DRAW) {
 float r1 = random(0, 255);
 float r2 = random(0, 255);
 float r3 = random(0, 50);
 ellipse(r1,r2,r3,r3);
    }
}
 
metaphorz


solution: clear CLASSPATH variable
« Reply #3 on: Sep 26th, 2004, 7:08pm »

Well..a suggestion from my TA was that I
try clearing my CLASSPATH, so I went ahead
and cleared both of them (user, system),
and now I do not get the error. The CLASSPATH
had become bloated over time to include all
kinds of junk.
 
fry


WWW
Re: Error in IDE execution?
« Reply #4 on: Sep 27th, 2004, 6:33pm »

making a note of this in bugs.txt for 0070.
 
Pages: 1 

« Previous topic | Next topic »