By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,799 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,799 IT Pros & Developers. It's quick & easy.

import java.io.*;

oll3i
100+
P: 679
why netbeans says incorrect package on import java.io.*;

Thank You
Oct 9 '13 #1
Share this Question
Share on Google+
1 Reply


Nepomuk
Expert 2.5K+
P: 3,112
Is the line "import java.io.*;" the first line of your program by any chance? If so, netbeans probably thinks that you're trying to declare the package in which that file lies. You would correctly declare that with something like
Expand|Select|Wrap|Line Numbers
  1. package my.package.for.this.project;
as the first line of your code.
Oct 9 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.