|
I just updated Netbeans 5.5 with some stuff from Sun's website, and now I am having problems getting code the run property that I already wrote, and to write new code.
/* One example set of code */
package Arithmetic02; /* * Arithmetic02.java */
public class Arithmetic02 { public static void main (String[] args) { int result = 10; // result is now 3 System.out.println("Result is " +result);
result = result / 2; // result is now 5 result = result + 10; // result is now 15 result = result * 3; // result is now 45 System.out.println("The result is now " + result); result += 1; // increments result by 1 System.out.println("The result is now " + result); } }
This simple program runs in Netbeans and in the Output box it says that the build is successful, but the println command doesn't work, so no output is printed.
--------------------------------------------------------------------------- Writing new code, I get an error message when I try to import graphics packages:
/* Another example set of code * *package forspatialsciences; * *import java. */
When I get to that point I get the error:
"Javadoc not found. Either Javadoc documentation for this item does not exist, or you have not added specified item in either the Java Platform Manager or the Libary Manager."
I checked in the Netbeans Platform Manager in the tab Javadoc and found this: C:\Documents and Settings\mwdavis\.netbeans\5.5\docs\netbeansAPIs.zip
I went to both the Platform Manager and the Library Manager and inserted the downloaded zip file, but nothing happened. Do I need to unzip the file first, or what? Where would I extract the files to?
|