File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java installation procedure.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

java installation procedure..

archana keerti

Joined: Feb 03, 2009
Posts: 20
hey guys,
i am new to java....
would you please help me how to compile and execute the java codes.
which java installation package should i install?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37936
Welcome to JavaRanch
Have a look at the getting started part of the Java Tutorials. Download JDK 6 update 11. Don't use the JRE (it hasn't got a compiler) and don't use NetBeans at this stage.

It tells you in great detail what to do: the bit which most commonly causes trouble is setting the PATH. Please ask again if you have any problems.
archana keerti

Joined: Feb 03, 2009
Posts: 20
hi ,
please anyone could help me...i have a problem in the compilation of the below given program.

public class puzz
public static void main(String args[])
dog[] d=new dog[6];
int x=0;
int y=1;
int result=0;

dog[x]=new dog[];
System.out.println("result is"+result)



class dog
int v;
public int do(int f)
return v*f;

return v*(5-f);

the required output for the program is 543345.

when i compile i get some error messages like,illegal start of type,<identifier>expected, ; expected.....
i couldn't find where i am wrong.....
Henry Wong

Joined: Sep 28, 2004
Posts: 18508

Duplicate post....


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: java installation procedure..
Similar Threads
Automaticallly Installing Webstart
Two instances of Tomcat on the same OS
Is xjc utility (JAXB) part of Java 1.6 installation?
No longer able to connect to JNDI Datasource
how to install java on linux5