Require JDK? [message #205782] |
Wed, 18 April 2007 17:29 |
Eclipse User |
|
|
|
Originally posted by: nospam_agrillage.yahoo.com
All the tutorials and installation instructions I see on the web say that
you need to install a Java SDK (JDK) and not just a JRE to be able to use
eclipse for Java development. The eclipse homepage says you need a JRE. I
know that eclipse has a built-in compiler that is javac compliant. So do I
need a JDK or not?
Andrew
|
|
|
Re: Require JDK? [message #205789 is a reply to message #205782] |
Wed, 18 April 2007 19:25 |
Eclipse User |
|
|
|
Originally posted by: nugaee.SPAMtlen.pl
Andrew Grillage wrote:
> All the tutorials and installation instructions I see on the web say that
> you need to install a Java SDK (JDK) and not just a JRE to be able to use
> eclipse for Java development. The eclipse homepage says you need a JRE. I
> know that eclipse has a built-in compiler that is javac compliant. So do I
> need a JDK or not?
it depends if you need source view of libraries and/or description of
classes methods and its paremeters or not.
bartek michalik
|
|
|
Re: Require JDK? [message #205797 is a reply to message #205789] |
Wed, 18 April 2007 19:33 |
Eclipse User |
|
|
|
Originally posted by: nospam_agrillage.yahoo.com
"Bartosz Michalik" <nugaee@SPAMtlen.pl> wrote in message
news:f05rb7$p75$1@build.eclipse.org...
> Andrew Grillage wrote:
>> All the tutorials and installation instructions I see on the web say that
>> you need to install a Java SDK (JDK) and not just a JRE to be able to use
>> eclipse for Java development. The eclipse homepage says you need a JRE. I
>> know that eclipse has a built-in compiler that is javac compliant. So do
>> I need a JDK or not?
> it depends if you need source view of libraries and/or description of
> classes methods and its paremeters or not.
>
Thanks. So if I have a JDK installed, will eclipse find it automatically or
do I need to set it somewhere? And what if I have a newer JRE, seperate from
my JDK? I currently have a 5.0 SDK and a 6.0 JRE installed.
Andrew
|
|
|
|
Re: Require JDK? [message #205958 is a reply to message #205818] |
Thu, 19 April 2007 05:47 |
Eclipse User |
|
|
|
Originally posted by: nospam_agrillage.yahoo.com
>
> On a project-by-project basis, you can change from the default. If you
> right-click a project in the Package Explorer and select Build Path ->
> Configure Build Path... and click on the Libraries tab, you can add/remove
> JREs used for building.
>
> When you run a project in Eclipse, you create a run configuration for it
> (or use an existing configuration). For instance, Run -> Run... brings up
> a list of configurations. Select the configuration you want to use, click
> the JRE tab, and you're given the opportunity to designate an alternative
> JRE for execution purposes.
>
Thanks Paul, however, I still wonder about the use of the SDK. For example,
if I choose to use the 6.0 JRE for my project, and not the 5.0 SDK that I
have installed, does this mean that the SDK will not be uses and I will not
get source and member information?
|
|
|
Re: Require JDK? [message #206008 is a reply to message #205958] |
Thu, 19 April 2007 06:34 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Andrew Grillage wrote:
>> On a project-by-project basis, you can change from the default. If you
>> right-click a project in the Package Explorer and select Build Path ->
>> Configure Build Path... and click on the Libraries tab, you can add/remove
>> JREs used for building.
>>
>> When you run a project in Eclipse, you create a run configuration for it
>> (or use an existing configuration). For instance, Run -> Run... brings up
>> a list of configurations. Select the configuration you want to use, click
>> the JRE tab, and you're given the opportunity to designate an alternative
>> JRE for execution purposes.
>>
>
> Thanks Paul, however, I still wonder about the use of the SDK. For example,
> if I choose to use the 6.0 JRE for my project, and not the 5.0 SDK that I
> have installed, does this mean that the SDK will not be uses and I will not
> get source and member information?
It will work, but you won't be able to browse the source code of the JDK
classes and you won't get tooltips showing the Javadoc for those classes
(as well as some other useful features like guessing at argument names
when you use Content Assist aka auto-complete).
Is there any reason you don't just install the 6.0 JDK?
Hope this helps,
Eric
|
|
|
Re: Require JDK? [message #206016 is a reply to message #206008] |
Thu, 19 April 2007 07:10 |
Eclipse User |
|
|
|
Originally posted by: nospam_agrillage.yahoo.com
>
> It will work, but you won't be able to browse the source code of the JDK
> classes and you won't get tooltips showing the Javadoc for those classes
> (as well as some other useful features like guessing at argument names
> when you use Content Assist aka auto-complete).
> Is there any reason you don't just install the 6.0 JDK?
>
Thanks Eric, and I can certainly install the 6.0 SDK, but I was just curious
as to how it all fits together. I think I am there now though.
|
|
|
Powered by
FUDForum. Page generated in 0.08774 seconds