Results 1 to 5 of 5
  1. #1
    andnlou2678 is offline Member
    Join Date
    Sep 2011
    Posts
    69
    Rep Power
    0

    Default 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...

    Hello java program-untitled.jpg


    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");
    }
    }
    Attached Thumbnails Attached Thumbnails Hello java program-untitled.jpg   Hello java program-untitled.jpg  

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default 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.

  3. #3
    andnlou2678 is offline Member
    Join Date
    Sep 2011
    Posts
    69
    Rep Power
    0

    Default 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>

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  5. #5
    andnlou2678 is offline Member
    Join Date
    Sep 2011
    Posts
    69
    Rep Power
    0

    Default Re: Hello java program

    sorry i am very new to this and still dont understand this please could you explain this alittle bit for me in a simpler terms for me

    many thanks

Similar Threads

  1. Call one Java Program from another Java Program
    By rajpalparyani in forum New To Java
    Replies: 3
    Last Post: 02-14-2011, 05:13 AM
  2. Replies: 4
    Last Post: 07-30-2010, 01:25 PM
  3. execute java program within java program
    By popey in forum New To Java
    Replies: 2
    Last Post: 10-22-2009, 06:32 PM
  4. Replies: 0
    Last Post: 04-04-2008, 03:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 10:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •