LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 567 users online 225204 members 1137 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Elizabeth1114
Favs: I like to do a lot of things.
Mood: Angry
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
4 online / 32 MPM
Christmas Eve
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Adding Reply
Archived Topic: It will not be bumped to the top of the forum.
Topic java environment problem
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
Echo one Posted at 10:32 am on July 7, 2008
I've decided to start trying to learn Java again. I know a few soft typed programming languages and am familiar with the basics of java (declaring variables etc).

The problem is, I'm writing a simple math script using a switch, just to test out classes and calling things.

I tried to call system.out.print(); and the environment (netbeans 6.1) says the package system doesn't exist. Same thing with Math.

How do I include these two packages? Is this just something wierd with Netbeans?

Replies
Squiddles Posted at 12:07 pm on July 9, 2008
I am not familiar with net beans, but the package java.lang (which contains System and Math) should be imported automatically into all java programs.

Try adding
Code:
import java.lang.*;

If that doesn't work, it may be that Java isn't properly installed.

Echo one Posted at 1:14 pm on July 7, 2008
can anyone tell me how to include packages?

I seriously can't do anything without a basic print function. It's kinda annoying

amanitta Posted at 10:34 am on July 7, 2008
i sould learn it this summer bcs in 2010..i have  a national exam ! we have java..i need to learn it asap
All 3 previous replies displayed.