This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See javac PlasmaCloud.java ---------- 1. ERROR in PlasmaCloud.java (at line 35) double displacement = StdRandom.gaussian(0, stddev); ^^^^^^^^^ StdRandom cannot be resolved ---------- 2. ERROR in PlasmaCloud.java (at line 40) StdDraw.setPenColor(color); ^^^^^^^ StdDraw cannot be resolved ---------- 3. ERROR in PlasmaCloud.java (at line 41) StdDraw.filledSquare(x, y, size); ^^^^^^^ StdDraw cannot be resolved ---------- 4. WARNING in PlasmaCloud.java (at line 57) int SIZE = Integer.parseInt(args); ^^^^ The local variable SIZE is never read ---------- 4 problems (3 errors, 1 warning)morten@Westparkstr42:~$
In the comments of PlasmaCloud.java, it says, "Dependencies: StdDraw.java." This means that PlasmaCloud uses elements in the file StdDraw.java, and your compiler is complaining that it can't find these things. Although not listed as a dependency, StdRandom.java is also needed.
Add StdDraw.java and StdRandom.java to your directory containing PlasmaCloud.java, re-compile, and you should be okay.
(Another error in the comments is "Execution: java Plasma N". But execution should be java PlasmaCloud N, where N is some int.) [ June 29, 2007: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Note your compiler warnings: "...parameterized types are only available if source level is 5.0."
You need to change a preference in Eclipse so that it compiles with at least version 5.0 (which is the same as 1.5). This will allow the use of "generics," which appears to be what's preventing this from compiling.