...

I need someone's help for learning java

annaantony
05-06-2004, 11:58 AM
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!");
}
}

Spookster
05-06-2004, 03:37 PM
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.

annaantony
05-07-2004, 09:00 AM
thanks for the help .It's running :thumbsup:

Antoniohawk
05-08-2004, 02:49 AM
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 (http://www.jcreator.com/)] and it works wonders for me.

lostinjava
05-20-2004, 04:08 PM
i use blueJ, very good for testing individual methods and classes



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum