-1

Getting: can't find symbol whenever I typed System.out.println();

What, I have tried:

Deleted and reinstalled netbeans a couple times to no avail. Tried deleting the cache and now the line of code won't throw error if it is written in the main method of the main class, otherwise, it throws error still.

P.S. IDE: netbeans 8.1 OS: Windows 7.

1
  • Formatted text and separated what user tried Mar 28, 2016 at 5:05

1 Answer 1

0

Since you haven't provided any additional info other than your OS and IDE might I suggest:

It doesn't look like netbeans comes with a JDK from this page: https://netbeans.org/community/releases/81/install.html

Verify that you have the latest release of the Java JDK from this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Make sure that netbeans is pointed to the correct JDK: How to set the JDK Netbeans runs on?

If you can provide some sample code to demonstrate the situation in which your issue is occurring, someone may be able to provide more concise assistance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.