Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2004, 11:58 AM   PM User | #1
annaantony
New to the CF scene

 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
annaantony is an unknown quantity at this point
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!");
}
}
annaantony is offline   Reply With Quote
Old 05-06-2004, 03:37 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,224
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 05-07-2004, 09:00 AM   PM User | #3
annaantony
New to the CF scene

 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
annaantony is an unknown quantity at this point
thankyou

thanks for the help .It's running
annaantony is offline   Reply With Quote
Old 05-08-2004, 02:49 AM   PM User | #4
Antoniohawk
Senior Coder

 
Join Date: Aug 2002
Location: Kansas City, Kansas
Posts: 1,518
Thanks: 0
Thanked 2 Times in 2 Posts
Antoniohawk will become famous soon enough
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.
Antoniohawk is offline   Reply With Quote
Old 05-20-2004, 04:08 PM   PM User | #5
lostinjava
New Coder

 
Join Date: Nov 2003
Location: Northwest
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
lostinjava is an unknown quantity at this point
example of a good IDE

i use blueJ, very good for testing individual methods and classes
lostinjava is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:24 PM.


Advertisement
Log in to turn off these ads.