Forums Register Login

Java compiler

+Pie Number of slices to send: Send
I am trying to figure out to install Java Compiler,
please anyone help me with info...
where can i find it and how to run program...
thanks
+Pie Number of slices to send: Send
hi neema;
u seem to be a real new amatuer into the world of JAVA !!
well i would really like to help u out!!u can download the
jdk1.2 package (required for running u'r JAVA applications) from the following site--->
http://java.sun.com/products/jdk/1.2/

and to run u'r application u need to ensure that u save u'r file by the class file name followed by ".java extension"!!
EXAMPLE--->
If u have the following simple code.............
public class abc{
public static void main (String s[])
{
System.out.println("A CUP OF JAVA");
}
}
now u need to save this code as "abc.java" in C:\ or any other directory!!

Then u need to open up the DOS shell if u r working on Windows 98/95/2000 and after that u need to set the path for u'r application to run properly(so that the system can locate where u have saved u'r file)!!will tell u more about path setting if u have problems running u'r application.just write the code out here so that i can tell u more along with the location where u have saved u'r file!!once u have done this.......... u simply need to compile the program using following command on DOS prompt
javac abc.java
and at last u have to run the code using.........
java abc
I hope this helps!!if u have any problems u can fire u'r doubts back!!will try to help u out further!!It might seem difficult to u to run u'r program out here in JAVA being a begginer.but itzz not tough,itzzz rather quite easy!!
ankush!!
[This message has been edited by ankush walia (edited February 07, 2001).]
There's a way to do it better - find it. -Edison. A better tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 690 times.
Similar Threads
If i want to report a bug
Compiler flag
Prolem wih the applets.
what will be the ans
compilers and Editor for java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:11:09.