JavaBeat
Eclipse Home Articles Tutorials Java Interview Questions & FAQs Java QnA Code Junction

Next : Create source folders

Use an alternative JRE


In the Package Explorer panel of the Java perspective, right-click on your newly created project and select "Properties". The Properties dialog opens on Java Build Path, which controls the project's classpath.

 

For now, the only entry is the JRE System Library shown in the "Libraries" tab. This defaults to the same JRE that was used to run Eclipse. In my case, a Java 5.0 installation was used. Depending on what versions of Java you have installed, you may see a different JRE here.

You might want to use a different JRE, for example the default may be Java 5.0 but you want your project to be compatible with Java 1.4 or 1.3 (your application will be useful to more people if it's backwards compatible with older JREs).


If you're happy with the default JRE, skip to the next section.


Ensure that you have the appropriate JDK or JRE version installed on your machine. If not, download and install from http://java.sun.com.

First click on "Add Library":




Click "Next" and then "Installed JREs..."



Click "Add".

In the next dialog, browse to the JRE or JDK that you want to use, and enter a name:

 

Click "OK" and then choose the new JRE:

 

Click "OK" and then "Finish". Your project will now be compiled against the new JRE.

 

Sponsors
Webmaster Hosting Forum
Java Jobs
MyVideoLib
India News
Internet Advances
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Media (2004-2008), India
javabeat | planetoss | links directory | advertise
Copyright (2004 - 2008), JavaBeat