LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 383 users online 221746 members 547 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
roflfuckyou
Supportiveness: 88.00%
Mood: Lifeless
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 / 18 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

java environment problem
packages missing?
Replies: 3Last Post July 9, 2008 12:07pm by Squiddles
Welcome to LiveWire!
We're Stronger Together.
Join the Community
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 | Days Active: 197
Join to learn more about Echo one United States | Posts: 178 | Points: 2,153
LiveWire Humor
amanitta


Connoisseur
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 | Days Active: 247
Join to learn more about amanitta Tunisia | Straight Female | Posts: 3,317 | Points: 6,322
( 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 | Days Active: 197
Join to learn more about Echo one United States | Posts: 178 | Points: 2,153
Squiddles


Wealthy Hobo

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 | Days Active: 380
Join to learn more about Squiddles Virginia, United States | Straight Male | Posts: 271 | Points: 4,025
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