Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Java compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java compiler" Watch "Java compiler" New topic
Author

Java compiler

Neema Doma
Greenhorn

Joined: Feb 06, 2001
Posts: 4
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

Joined: Jan 24, 2001
Posts: 95
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java compiler
 
Similar Threads
Prolem wih the applets.
what will be the ans
compilers and Editor for java
Compiler flag
If i want to report a bug