Link to home
Start Free TrialLog in
Avatar of daveask
daveask

asked on

Before I can write a Java program

Hi Experts,

I knew little Java a few years ago and forgot all of them now.
However, I need to write a (very simple) Java program at the moment!
Can you suggest any software for editing, compiling and running Java codes? Where to download and how to install for my WindowsXP?

Thank you in advance.
ASKER CERTIFIED SOLUTION
Avatar of SergeiKo
SergeiKo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
offcourse Eclipse 3.0.1 works on XP and it is free!

http://www.eclipse.org/downloads/index.php

also Netbeans is excellent and free:

http://www.netbeans.org/
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sudhakar_koundinya
sudhakar_koundinya

read this thread and decide yourself to use the  IDE

http:Q_21048347.html
Avatar of daveask

ASKER

Thanks a lot for your helps!

Only one file I need to dowload and can do compiling and running my Java code?
http://java.sun.com/j2se/1.4.2/download.html      "J2SE v 1.4.2_06  SDK"

I am confused what I should download here:
http://www.eclipse.org/downloads/index.php
I saw a few files.....
davesk, any all of them are mirror to the same
Avatar of daveask

ASKER

sudhakar_koundinya,

So, I need to download eclipse-SDK-3.0.1-win32.zip and J2SE v 1.4.2_06  SDK?
hmmm download J2SE v 1.4.2_06  SDK  that is the better choice

>>So, I need to download eclipse-SDK-3.0.1-win32.zip and J2SE v 1.4.2_06  SDK?

So, You must
I am using Netbeans after discussed at
http:Q_21048347.html
Avatar of daveask

ASKER

OK, I installed J2SE v 1.4.2_06  SDK. Do I need to set something before I run my code?
I don't know which IDE you are preferring.

If  you have installed Eclipse/Net Beans IDE. You don't need any further software


OK,

If youd did not installed Eclipse like IDE then write a program in Notepad

and you need to compile them at command prmpt.

Regards
Sudhakar
Avatar of daveask

ASKER

sudhakar_koundinya,

Thank you.
No IDE yet! I cannot wait it and want to have a try now. Can you tell me what command I need to compile and then run a file: and what extention I shold give this file?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of daveask

ASKER

Thanks a lot!
I have done the 'set path' and 'set classpath', I found MyClass.class after javac, but when do java, I got
Exception in thread "main" Java.lang.NoClassDefFoundError: c:\...MyClass

MyClass.java is my program, do you think I did something wrong in it?
Avatar of daveask

ASKER

OK, now it is working, I even don't know why.......

Thanks a lot for all your helps.