Results 1 to 7 of 7
  1. #1
    mgm2010 is offline Member
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    0

    Default Elementary problems

    I am an old timer trying to refresh my working of Java and I have installed java 2 since I had the Book and CD for it. If I succeed in using it I will update to java 6.
    2. I have written the following code in the notepad and saved it to c:\jdk1.2.1\bin with the file name "hello.java" and I can see a file by name 'hello' is in the bin folder.

    class HelloWorldApp {
    public static void main(String[] args) {
    System.out.println("Hello World!"); // Display the string.
    }
    }

    3. Then I go to DOS and go to the directory jdk1.2.1\bin and enter the following

    javac hello.java

    4. Here I get the message that the program cannot be opened in DOS.
    5. Perhaps I have not followed the correct steps. I shall be grateful for any advice.

    6. I am on win98 although I have dual booting with winXP.

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    by DOS, do you mean the command prompt?
    not too sure about this, but i don't think java works in 16-bit DOS.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  3. #3
    mgm2010 is offline Member
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    0

    Default

    I restarted win98 in ms-dos mode for working on java.

  4. #4
    noobienoob8 is offline Member
    Join Date
    Feb 2009
    Location
    philippines
    Posts
    2
    Rep Power
    0

    Default

    how do i deal with "invalid path"?

  5. #5
    noobienoob8 is offline Member
    Join Date
    Feb 2009
    Location
    philippines
    Posts
    2
    Rep Power
    0

    Default Problems regarding the language

    i'm new to this java thing.. wud u people help to teach me bout this programming language?.. actually i learned some basics.. but i'm way too far..

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

    Default

    noobie, you may wish to start your own thread rather than stepping on mgm2010's thread.

    Also, most here will be happy to answer direct questions, but actually teaching someone is likely out of the abilities of the members of this or any forum.

  7. #7
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    mgm2010, as stated above in the second post, i don't believe java works in 16-bit dos. you should use the command promt in windows.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

Similar Threads

  1. Elementary Quesions
    By hitmen in forum New To Java
    Replies: 6
    Last Post: 10-21-2008, 12:23 AM
  2. GUI problems.
    By saytri in forum New To Java
    Replies: 1
    Last Post: 12-16-2007, 10:27 PM
  3. many to many problems
    By cecily in forum JDBC
    Replies: 1
    Last Post: 08-02-2007, 05:51 PM
  4. a few problems
    By gary in forum AWT / Swing
    Replies: 0
    Last Post: 07-11-2007, 04:57 PM
  5. problems with JPA
    By Ed in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 05:34 AM

Posting Permissions

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