Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to setup eclipse properly?
How to setup eclipse properly? [message #92295] Fri, 11 July 2003 20:26
Eclipse UserFriend
Originally posted by: mrtank.freenet.de

Hello together,
I'm an ABAP developer and just started with JAVA. A friend recommended to
use the eclipse workbench for my JAVA development.
Now I downloaded eclipse (Vers.2.0) and installed it successfully on
Win2000. My SDK is from SUN, it's J2SDK 1.4.0.
I set the following variables (in eclipse):
Classpath variables:
- classpath - c:\java\j2sdk1.4.0\lib
- java_bin - c:\java\j2sdk1.4.0\bin
- java_home - c:\java\j2sdk1.4.0
- path - c:\java\j2sdk1.4.0\bin

and I did the same in the system settings of Win2000.

The JRE was found by eclipse itself and is pointing to my SDK 1.4.0.

When I start the eclipse workbench and write a first simple class, e.g.
HelloWorld, there is now way of compiling the class nor to execute it
except for the fact that I could use external tools.

My question now is, are there other settings I need to do or why can't I
run an automatic compilation and execution on my classes? Any hint,
suggestion would be appriciated. In case you need more information to
analyse the problem please let me know.

Kind regards
MrTank.
Re: How to setup eclipse properly? [message #92342 is a reply to message #92295] Thu, 10 July 2003 21:44 Go to previous message
Eclipse UserFriend
Originally posted by: zabilcm.hathway.com

MrTank wrote:

> Hello together,
> I'm an ABAP developer and just started with JAVA. A friend recommended to
> use the eclipse workbench for my JAVA development.
> Now I downloaded eclipse (Vers.2.0) and installed it successfully on
> Win2000. My SDK is from SUN, it's J2SDK 1.4.0.
> I set the following variables (in eclipse):
> Classpath variables:
> - classpath - c:\java\j2sdk1.4.0\lib
> - java_bin - c:\java\j2sdk1.4.0\bin
> - java_home - c:\java\j2sdk1.4.0
> - path - c:\java\j2sdk1.4.0\bin
>
> and I did the same in the system settings of Win2000.
>
> The JRE was found by eclipse itself and is pointing to my SDK 1.4.0.
>
> When I start the eclipse workbench and write a first simple class, e.g.
> HelloWorld, there is now way of compiling the class nor to execute it
> except for the fact that I could use external tools.
>
> My question now is, are there other settings I need to do or why can't I
> run an automatic compilation and execution on my classes? Any hint,
> suggestion would be appriciated. In case you need more information to
> analyse the problem please let me now.
>
> Kind regards
> MrTank.

By default eclipse compiles the class everytime you do a save.
To explicitly compile the classes you choose "Project->Rebuild Project"
To run the class make sure the main is there.
Switch to the java perspective "Windows->Open perspective->java"
Then click on "Run->Run" right click on "Java Application->new" your class
file should automatically appear. Then click on the run button.
This will run your class file.
Previous Topic:Re: CVS Graph plugin for Eclipse available
Next Topic:Eclipse 3.0 CVS build
Goto Forum:
  


Current Time: Wed May 28 19:37:07 EDT 2025

Powered by FUDForum. Page generated in 0.02483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top