• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java compiler

 
Neema Doma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
ankush walia
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic