Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I need someone's help for learning java

    hello ,

    I don't know any thing about java .

    I have a prgrm like this from a tutorial HelloWorld.java now I want to compile it What I have to do for compiling it .I try to compile it in dos prompt
    java c HelloWorld.java
    it's in my E:\javafiles\HelloWorld.java
    I have install tomcat also now what to do

    class HelloWorld {
    public static void main(String args[]) {
    System.out.printIn("Hello World!");
    }
    }

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Well you really don't need Tomcat for this. Tomcat is for serving and working with JSP(Java Server Pages). For just compiling your programs like that you only need to use the JDK (Java Development Kit) (Not to be confused with one of our moderators JKD)

    To compile this from a command prompt the command would be

    javac HelloWorld.java

    you should be in the directory where that file is at. Also you must have your java paths set up correctly. That is needed so that you can use the command javac from any directory that you choose.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thankyou

    thanks for the help .It's running

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    For some it's only a hindrance and for others it's gift from god, but an ide (integrated development enviornment) might be of great use to you. I use [JCreator] and it works wonders for me.

  • #5
    New Coder
    Join Date
    Nov 2003
    Location
    Northwest
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    example of a good IDE

    i use blueJ, very good for testing individual methods and classes


  •  

    Posting Permissions

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