Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
chhenning
chhenning's Profile
2
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
unexpected token: import
[1 Reply]
18-Feb-2013 07:53 AM
Forum:
Programming Questions
I'm using Processing 2.0b7 outside of the IDE and I cannot get around the error message:
unexpected token: import
My code is:
import java.util.*
void setup() {
size(640,480);
background(255);
generator = new Random();
}
void draw() {
}
My command line is:
processing-java.exe --sketch="c:/chhenning/processing-2.0b7/sketches/gaussian_distribution/" --output="c:/chhenning/processing-2.0b7/output/gaussian_distribution" --force --run
What am I missing?
Thanks,
Christian
Cannot find a class or type named "Random"
[4 Replies]
17-Feb-2013 07:04 PM
Forum:
Programming Questions
Hi there, I'm new to Processing and I cannot eliminate the error with the following code:
Random generator;
void setup() {
size(640,480);
background(255);
generator = new Random();
}
void draw() {
}
What is wrong here?
Thanks,
Christian
«Prev
Next »
Moderate user : chhenning
Forum