I've a class definition problem.
I copy the code from class example and past to processing 0090 beta but it can't run.
Here is message:
Code:
java.lang.NoClassDefFoundError: Files\Symantec\Norton
java.lang.NoClassDefFoundError: Files\Symantec\Norton
Exception in thread "main"
Exception in thread "main"
If I change class and object definition to comment then the problem is gone.
Is any body can tell me why?
This is my code. it can be run if I change "draw()" to "loop()" in processing 69 alpha.
Code:
Wave[] river;
int waveNum=10;
//--------------------------------------------------
void setup(){
size(640, 480);
framerate(12);
river=new Wave[waveNum];
for(int i=0; i<waveNum; i++){
river[i]=new Wave(int(random(150)), int(height/2), int(height/2+height/2), 2);
}
}
void draw() {
background(0);
for(int i=0; i<waveNum; i++){
river[i].startMove();
}
}
//---------------------------------------------------
class Wave{
float noiseScale=random(0.001, 0.005);
float xConver;
float yConver;
float waveConver=random(0.001,0.005);
int myAlpha, startH, endH;
float randomGB1,randomGB2;
Wave(int _myAlpha, int _startH, int _endH,int _randomNum){
this.startH=_startH;
this.endH=_endH;
this.myAlpha=_myAlpha;
this.randomGB1=random(_randomNum);
this.randomGB2=random(_randomNum);
}
void startMove(){
for(int x=0; x<width; x++) {
xConver+=waveConver;
yConver+=waveConver;
float noiseVal = noise((this.xConver+x)*this.noiseScale, this.yConver*noiseScale);
float colorPic=noiseVal*255;
stroke(0,colorPic/randomGB1,colorPic/randomGB2, myAlpha);
line(x, noiseVal*startH, x, noiseVal*endH);
}
}
}