Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Where is JDK in eclipse for java?(jdk)
Where is JDK in eclipse for java? [message #1172759] Wed, 06 November 2013 04:18 Go to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
I install eclipse for java and run a smaple, it's ok,
but where can find jdk in the eclipse and how to check what its version is?

in the eclipse there is no jdk or sdk folder, there are
configuration; dropins; features; p2; plugins and readme folders under the eclipse.

what are they?


Thanks,
Re: Where is JDK in eclipse for java? [message #1172765 is a reply to message #1172759] Wed, 06 November 2013 04:23 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
I check it on the console, it can not run javac. and can not find javac anywhere,
how does eclipse manipulate the java program?


Thanks,
Re: Where is JDK in eclipse for java? [message #1173082 is a reply to message #1172765] Wed, 06 November 2013 09:25 Go to previous messageGo to next message
frank b is currently offline frank bFriend
Messages: 45
Registered: July 2009
Member
Usually, Eclipse uses default java installation directory.

This Java folder location depends on your OS and where you have choosed
to install it.

Reading this topic on stackoverflow may help you :

http://stackoverflow.com/questions/3930383/jre-installation-directory-in-windows

Have a look at this page as you may have a PATH configuration problem :

http://www.java.com/en/download/help/path.xml


Hope it helped !
Re: Where is JDK in eclipse for java? [message #1174137 is a reply to message #1173082] Thu, 07 November 2013 00:23 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
Thank you, I was told that eclipse for fava develop has its own build-in jdk, and need not download jdk, just install jre enough. is this correct?
I use this eclipse for java dev to make some java samples and can run them well. I have not download jdk either.

why?


Thanks,
Re: Where is JDK in eclipse for java? [message #1174153 is a reply to message #1174137] Thu, 07 November 2013 00:36 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
from eclipse ide for java developer, it says,

----The essential tools for any Java developer, including a Java IDE, a CVS client, Git client, XML Editor, Mylyn, Maven integration...
Does that mean this java IDE include jdk? and where is it?


Thanks,
Re: Where is JDK in eclipse for java? [message #1174164 is a reply to message #1174153] Thu, 07 November 2013 00:48 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/6/2013 5:36 PM, Zhg Mising name wrote:
> from eclipse ide for java developer, it says,
>
> ----The essential tools for any Java developer, including a Java IDE, a
> CVS client, Git client, XML Editor, Mylyn, Maven integration...
> Does that mean this java IDE include jdk? and where is it?

Nope. Eclipse has it's own Java compiler, but you need a proper JDK out
of which comes Javadoc for use by Eclipse's Content Assist (the feature
that's like Visual Studio's Intellisense).
Re: Where is JDK in eclipse for java? [message #1174361 is a reply to message #1174164] Thu, 07 November 2013 03:56 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
Thank you. that means eclipse build=in compiler is different from jdk. we have to install jdk outside for javadoc use.

and which compiler will the ant use? both can do? or we have to modify its build.xml to suit to outside jdk?


Thanks,
Re: Where is JDK in eclipse for java? [message #1175069 is a reply to message #1174361] Thu, 07 November 2013 14:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/06/2013 08:56 PM, Zhg Mising name wrote:
> Thank you. that means eclipse build=in compiler is different from jdk.
> we have to install jdk outside for javadoc use.
>
> and which compiler will the ant use? both can do? or we have to modify
> its build.xml to suit to outside jdk?

I understand your concern. While I'm sure tiny problems have arisen in
the differences, I've not personally experienced any inconvenience using
Eclipse and, later, building my JAR or WAR with ant and either OpenJDK
or a Sun JDK.

It's likely the case that ant can be directed to use Eclipse's javac,
but I've never looked to see how that would be done.
Re: Where is JDK in eclipse for java? [message #1175196 is a reply to message #1175069] Thu, 07 November 2013 15:36 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
this may be all in build.xml, I keep all default environment without any change. so it would use primitive setting.

but interest, at the java build path item, there is nothing under the projects tab.
and can not add project which is working.


Thanks,
Re: Where is JDK in eclipse for java? [message #1175204 is a reply to message #1175196] Thu, 07 November 2013 15:43 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
Buildfile: D:\workspace\Fstapp\build.xml
[taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-set-mode-check:
-set-debug-files:
-check-env:
BUILD FAILED
D:\workspace\Fstapp\build.xml:397: Problem: failed to create task or type checkenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Thanks,
Re: Where is JDK in eclipse for java? [message #1175224 is a reply to message #1175204] Thu, 07 November 2013 15:57 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
<!-- Basic Ant + SDK check -->
<target name="-check-env">
<checkenv /> ---------- < 397


Thanks,
Re: Where is JDK in eclipse for java? [message #1176792 is a reply to message #1175224] Fri, 08 November 2013 15:03 Go to previous message
Zhg Mising name is currently offline Zhg Mising nameFriend
Messages: 81
Registered: March 2011
Member
I check tackdef and find no problem at path side, all jar were included. what's matter?
<!-- jar file from where the tasks are loaded -->  
85.    <path id="android.antlibs">  
86.        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />  
87.    </path>  
88.  
89.    <!-- Custom tasks -->  
90.    <taskdef resource="anttasks.properties" classpathref="android.antlibs" />  
91.  
92.    <!-- Emma configuration -->  
93.    <property name="emma.dir" value="${sdk.dir}/tools/lib" />  
94.    <path id="emma.lib">  
95.        <pathelement location="${emma.dir}/emma.jar" />  
96.        <pathelement location="${emma.dir}/emma_ant.jar" />  
97.    </path>  
98.    <taskdef resource="emma_ant.properties" classpathref="emma.lib" />  
99.    <!-- End of emma configuration -->  




Thanks,
Previous Topic:Going nuts with project layout vs. paths on hard disk
Next Topic:Console doesn't update properly
Goto Forum:
  


Current Time: Thu Apr 25 01:19:12 GMT 2024

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

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

Back to the top