Welcome to Dream.In.Code
Become a Java Expert!

Join 149,497 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,365 people online right now. Registration is fast and FREE... Join Now!




Netbeans update

 
Reply to this topicStart new topic

Netbeans update, code won't run any more in Netbeans after update

morgan
25 Mar, 2007 - 11:56 AM
Post #1

New D.I.C Head
*

Joined: 25 Mar, 2007
Posts: 1


My Contributions
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?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 06:11PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month