Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not public cannot be accessed from outside package

807601Jan 1 2008 — edited Jan 1 2008
Hi all
Happy new year
I try to use the InetAddress object
in my java code
InetAddress inet = new  InetAddress();
but I get the following error
InetAddress() is not public in java.net.InetAddress; cannot be accessed from outside package
Can you help me please

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 29 2008
Added on Jan 1 2008
2 comments
1,401 views