Finding the location of function name in eclipse ide [duplicate] - java

This question already has answers here:
Does a "Find in project..." feature exist in Eclipse IDE?
(15 answers)
Closed 3 years ago.
I am new to java world.
I am working on ECLIPSE IDE. I have a function name that i need to use but i am not able to find in which class it is written.
How can i get this information
Can some one help me out here

When you are coding in Eclipse, press CTRL and click on any core Java class/Custom Class/Methods name in your source. You will be taken to the source.
Eclipse will now show a screen saying you don't have the sources installed if you are trying to access a code for which you don't have source. However, in this screen there will be a link saying "Attach source...". Click that link and import the src.zip file from your JDK installation directory (src.zip).
Use JDK in development environment not JRE, this is good for learning

Related

Why when I run wathever program in NetBeans, the part of system.out.println() affears as class unidentified [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I just installed Netbeans and I wanted to write a small program that can read a value and then show it on screen. The thing is that whenever I add the sentence System.out.println() it marks an error and it says that the class is unidentified. I've tried to solve looking for it's library but I got no clue. Would you mind giving me a hand
You need to setup your project JDK. Here`s how to do it:
To enable JDK support in the NetBeans IDE:
1.Download and install JDK on your system.
2.In the IDE, choose Tools > Java Platforms from the main menu.
3.Click Add Platform and specify the directory that contains the JDK (e.g. on Windows, this is the JDK installation directory, default is C:\Program Files\Java\jdk_version).
4.The directory that contains the Java platform is marked with the Java Platform icon icon.
5.In the Platform Name step, verify that the default locations of the Platform Sources zip file and API documentation are valid.
6.Click Finish to close the Add Java Platform dialog box.
7.Ensure JDK is chosen in the Platforms list and click Close.
Once you have registered JDK in the IDE, you need to configure your project to use this JDK for compilation, running, and debugging:
1.Create a Java project. Choose File > New Project and select Java Application as the project type. Click Next.
2.Type ProjectNameHere as the project name and specify its location.
3.In the Files window, right-click the ProjectNameHere project's node and choose Properties > Libraries. On this tab, choose JDK from the list of Java Platforms.
4.Switch to the Sources tab of the Project Properties window and choose JDK as the Source/Binary Format.
5.Click OK to save changes. Your project is set to recognize new JDK language features.
You can refer to this link:
https://netbeans.org/kb/73/java/javase-jdk7.html
Use this guide for your first code
https://netbeans.org/kb/docs/java/quickstart.html

Can't Compile Correctly java, might be a bad version [duplicate]

This question already has answers here:
Build path incomplete only in some workspaces (Android)
(8 answers)
Closed 8 years ago.
My adt work one time very well and i am able to run all the projects and then open in next day it wants some updates for sdk otherwise show error of DDMS missing i updated the sdk and now
Error: Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
Do any one tell me how to solve all these errors and work on ADT smoothly or there any other option.
The problem here is your IDE couln't recognise your SDK location, if you are using MyEclipse the do following
Go to Windows -> preference -> Android and set your sdk path again.
In Studio File -> setting and then set your sdk path.
Then restart eclipse/studio.
Seems you are missing Java itself within the IDE which include java.lang.Object. I'd check to see if the project you are working with has Java on the build path.

where can i find source code of abstractuiplugin which is part of eclipse framework? [duplicate]

This question already has answers here:
How to install source/javadoc for Eclipse PDE?
(2 answers)
Closed 7 years ago.
now i am developing kind of eclipse plugin, sometimes i want to debug into eclipse code, i am using eclipse 3.7 and is now trying to find the corresponding code of some eclipse classes, i am seeking these code with this url http://archive.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/
lot's of code is included by Source Build (Source in .zip) (instructions)
(source: img.itc.cn)
but why i cannot find the code of AbstractUIPlugin?
where i can find the archive which include AbstractUIPlugin? is it part of swing ui framework, or it's part of jface?
any suggestions?
This is part of the Eclipse SDK
For Eclipse 3.7 you can install the Eclipse SDK from the http://download.eclipse.org/eclipse/updates/3.7 update site (in 'Install New Software').
Once it is installed open the Preferences and go to 'Plug-in Development' and select 'Include all plug-ins from target in Java Search' (since 3.7 is very old I am not sure this actually exists in that release).
Once you have do that you should be able to open any Eclipse source file using the 'Open Type' dialog.

Eclipse - Generated file not appearing in project folder [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Auto refresh eclipse project upon folder update
I have been working with Java projects using Eclipse (both Ganymede and Helios). I have noticed that when I generate a file, for instance if I create and write data to a text file, or if I serialize some objects, then although the file is visible if I search outside of eclipse (i.e. using windows explorer or the places on linux) it is not appearing in my project folder.
If I try and import this file into my project, then Eclipse tells me that I can't do this because the file is already in my project structure. So I have to move the file manually outside of this folder using windows explorer etc and then import it into the eclipse project before I can see it.
Is there a way to make these generated files appear automatically? What ias the reason they're not already doing so?
Thanks in advance
right click on the project -> refresh
or press F5
Refresh your Eclispe project (F5).
If you are writing those files programmatically, you might be interested in either Auto refresh as Beau suggested, or, if you can, switch to the Eclipse IO API if you wish tighter integration with Eclipse, which will directly take care of this.

IntelliJ IDEA on osx lion - How to setup JSDK? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
IntelliJ IDEA JDK configuration on Mac OS
I'm currently trying to get IntelliJ to work on my osx lion. But when creating a new project the wizard shows me the following page:
Please select JSDK for this project
Project JDK
Nothing to show
And no matter where I go with the file browser, I always get "nothing to show". Because of that I can't complete the wizard... (I tried several places I found googling)
(Creating Java apps with Eclipse works fine by the way)
What do I have to do to get this working?
Thanks!
IIRC, IDEA already preselected the correct directory when adding a new JSDK.

Categories