473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple error, newbie question.

4 New Member
I've just started attempting to learn Java, but when I tried to compile my "Hello World" program I got an error. I'm hoping someone here can help me fix it, I imagine it won't be to difficult, a little info: I have "jdk1.6.0_07" and "jre1.6.0_07"
in my Java folder, this is the code I'm trying to compile:
Expand|Select|Wrap|Line Numbers
  1. public class HelloWorld {
  2.     public static void main (String[] args) {
  3.         system.out.print("Hello World!");
  4.     }
  5. }
  6.  
This is the .cmd file I'm using to compile:
Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. "javac.exe" *.java
  3. pause
  4.  
and this is the error I'm getting:
Expand|Select|Wrap|Line Numbers
  1. HelloWorld.java:3: package system does not exist
  2.                        system.out.print("Hello World!");
  3.                                  ^ 
Oct 9 '08 #1
3 1336
r035198x
13,262 MVP
Java is case sensitive. System != system.
Oct 9 '08 #2
Sean425
4 New Member
I'm not sure what you mean, all of my "System"s are "system"s, I don't have any with capitalized letters in them.
Oct 9 '08 #3
JosAH
11,448 Recognized Expert MVP
I'm not sure what you mean, all of my "System"s are "system"s, I don't have any with capitalized letters in them.
Then they're all incorrect; the name of the class is 'System', not 'system'; that
was what r035198x was trying to tell you.

kind regards,

Jos
Oct 9 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2150
by: SteveB | last post by:
However, despite being simple, I can't figure it out (maybe because I'm a newbie). I'm trying to replace a string with another string, but it simply is not working (no error messages, just won't...
3
2043
by: Mr Newbie | last post by:
I'm testing error handling configurations and having some trouble. I created a WebForm called. ErrDefault.aspx and I am trying to use the Page error attribute to force the redirection to a custom...
5
1270
by: Newbie | last post by:
Hi all, Just want to comment on this thread. Seems like every discussion about this matter (setting up DB provider for membership) and all the samples/references given by some MVPs always...
15
2955
by: gjoneshtfc | last post by:
Hello, I have a simple problem that I just cannot get my head around! I currently have the following line in my ASP recordset: Recordset1.Source = "SELECT * FROM MainTable ORDER BY Price ASC"...
1
1206
by: Raycaster | last post by:
I'm 3/4 finished 2 simple VB apps for a upcoming silent auction being held at my children's school. Very Simple - This is what it does: 1st app allows input and builds a text database Unit...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.