![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 7
Rep Power: 0
![]() |
New to Java - Compiling Error
Hey, i've recently had a lot of time on my hands, and have had a "Sams Teach Yourself Java 2 in 24 Hours" book sitting around for a lonnnng time.
I'm working through it, but have only made it so far as chapter 2, simply because I can't get either JCreator or NetBeans to compile basic java code. class bigdebt {
public static void main(String[] arguments) {
int debt = 446000000;
debt = debt / 1440;
system.out.println("A minute's worth of debt is $" + debt);
}
}![]() Anyway, in both, I get the error C:\Programming\Java\bigdebt.java:5: package system does not exist
system.out.println("A minute's worth of debt is $" + debt);
^
1 error
Process completed.Last edited by Kiwwa; Jun 16th, 2005 at 7:47 AM. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
the System class is case sensitive, try
System.out.println("A minute's worth of debt is $" + debt);Dizz |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Posts: 7
Rep Power: 0
![]() |
Ah, I see, i'll be more careful with my capitalisation in the future.
![]() |
|
|
|
|
|
#4 |
|
Professional Programmer
|
Java can be tricky like that, especially with included classes and functions. Luckily the error messages are clear..
![]() |
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
Quote:
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand." - B. Russell http://web.bryant.edu/~srk2 |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|