LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 535 users online 173434 members 847 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
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
2 online / 71 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

java environment problem
packages missing?
Replies: 3Last Post July 9 12:07pm by Squiddles
Single page for this topic Email Print Favorite
( Echo one )


Dairy Product Addict
Reply
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?

-------
I decided to be different from the rest of the world and be a
smart ass.


10:32 am on July 7, 2008 | Joined Mar. 2007 | 165 Days Active
Join to learn more about Echo one United States | 171 Posts | 1826 Points
amanitta


Wealthy Hobo
Reply
i sould learn it this summer bcs in 2010..i have  a national exam ! we have java..i need to learn it asap

-------
§ I LOVE YOU MEDITERRANEAN BOYS §

10:34 am on July 7, 2008 | Joined July 2007 | 153 Days Active
Join to learn more about amanitta Tunisia | Straight Female | 3035 Posts | 4970 Points
( Echo one )


Dairy Product Addict
Reply
can anyone tell me how to include packages?

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

-------
I decided to be different from the rest of the world and be a
smart ass.


1:14 pm on July 7, 2008 | Joined Mar. 2007 | 165 Days Active
Join to learn more about Echo one United States | 171 Posts | 1826 Points
Squiddles


Executive

Ad Free
Reply
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.


12:07 pm on July 9, 2008 | Joined Sep. 2004 | 360 Days Active
Join to learn more about Squiddles Virginia, United States | Straight Male | 271 Posts | 3745 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic