LiveWire Peer Support Network

Printable Version of Topic "java environment problem"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- java environment problem (http://www.golivewire.com/forums/peer-yaynspe-support-a.html)


-- Posted by Echo one 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?


-- Posted by amanitta 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


-- Posted by Echo one 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


-- Posted by Squiddles 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.


www.golivewire.com