Results 1 to 5 of 5
Thread: Hello java program
- 09-29-2011, 10:43 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 69
- Rep Power
- 0
Hello java program
hi please can someone help with this code as i am getting errors i am very new to java only been doing for 2 days for my uni course i have done this at uni and it worked but when i try and do this at home i am getting errors please can somebody help me
i am running window 7 pro 64bit
many thanks...

the code i am using is
//output Hello World
public class Hello
{
public static void(Strings[]args)
{
System.out.println("Hello World");
System.out.println("Welcome to java");
}
}
-
Re: Hello java program
Post the error text here, not a picture of it. You can easily get it from the cmd window by right clicking on the window.
- 09-29-2011, 11:03 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 69
- Rep Power
- 0
Re: Hello java program
hi thanks for the reply sorry for attaching pics here is the code cmd is saying
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\System32>H:
H:\>javac Hello.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
H:\>cd FPT
H:\FPT>dir
Volume in drive H has no label.
Volume Serial Number is 687D-9764
Directory of H:\FPT
29/09/2011 21:05 <DIR> .
29/09/2011 21:05 <DIR> ..
29/09/2011 21:05 210 Hello.java
1 File(s) 210 bytes
2 Dir(s) 7,269,462,016 bytes free
H:\FPT>javac Hello.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
H:\FPT>
-
Re: Hello java program
You need to set your system path.
Please have a look here: http://download.oracle.com/javase/tu...ems/index.html
- 09-29-2011, 11:09 PM #5
Member
- Join Date
- Sep 2011
- Posts
- 69
- Rep Power
- 0
Similar Threads
-
Call one Java Program from another Java Program
By rajpalparyani in forum New To JavaReplies: 3Last Post: 02-14-2011, 04:13 AM -
Is There A Way To Call Another Java Program Within A Java Program
By SwissR in forum New To JavaReplies: 4Last Post: 07-30-2010, 12:25 PM -
execute java program within java program
By popey in forum New To JavaReplies: 2Last Post: 10-22-2009, 05:32 PM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks