how to view Netbeans 8.2 java library coding - java

I had install netbeans 8.2 version the problem is for example imagine that we have cord like
String name = "thilina";
when I press ctrl+ mouse click on String word it will view a String class but, codes in side the functions not showing instead of code it shows enter image description here// compiled code like fallowing image

You just need to add the Sources for your JDK 8 entry in NetBeans:
Select Tools > Java Platforms to open the Java Platform Manager window, then select the entry in the Platforms panel for JDK 1.8.
Click the Sources tab, then click the Add JAR/folder... button.
Navigate to your installation directory for JDK 8, select the file named src.zip, then click the Add JAR/Folder button.
This should create an entry in the Platform Sources panel:
Click the Close button to close the Java Platform Manager window.
Now if you press ctrl + Mouse click on String in your source you should see the source code for String.java.

Related

My NetBeans installation fails to run my simple application

I have a problem with Netbeans. It does not run my code, and I am sure my code is correct. Here is what NetBeans looks like when I try to run:
enter image description here
first, check your JDK version. Maybe it not compatible with your NetBeans version.
if are you installed the correct version, configure JDK in your system.
control panel -> system -> advanced system setting ->environmental variable(in Advanced tab) ->Now you can see the list of paths. So click on the new button and copy the path of JDK where you installed JDK. By default, it will be such as “C:\Program Files\Java\jdk1.8.0_221\bin”. Then paste the path and click OK -> Now under the user variables section, Click on New button. new user variable window will open. In variable name, type JAVA_HOME into it and variable value, give the path “C:\Program Files\Java\jdk1.8.0_221” and click on OK. Then again click on OK.

Delete "Project SDK" configuration in IntelliJ

Here is a screenshot of IntelliJ 2017.3.3 "New Project" dialog box.
Note how the Project SDK popup shows in red text an older release of Java 9 that I physically deleted from my Mac (from the /Library/Java/JavaVirtualMachines folder).
⇒ How do I delete that particular "Project SDK" setting within IntelliJ?
Clicking the "New" button in the upper-right of that dialog lets me add another JVM but does not allow me to delete.
Select Project Structure from the File menu.
Click SDKs in the left column and select the SDK you want to remove.
Click the Delete icon (the minus sign).
Click Apply (essential!) then OK to close the Project Structure window.
I just tried this in 2017.3.3 and it worked fine. The JetBrains documentation states that you can also click Alt+DELETE instead of clicking the Delete icon, but that didn't work for me.
Here's the screen:
To be clear, this action means that the SDK you just removed will no longer be available when you try to create a new project; that SDK will have to be added again on an individual project basis if needed.

adding an option of your application to window's right click menu

i am creating a java application and want to provide a functionality of it in mouse right click menu on windows os
like if we have notepad++ installed then if we right click on some file then it shows an option "edit with notepad++"
i want to do similar kind of thing but with selected text
You'll have to add to your program a functionality to insert your program path into the registry. Check adding program to windows right click option menu for help.

Note: An exception occurred while getting the Javadoc. See log for details.-eclipse

I added java doc location for the SWT (org.eclipse.swt.gtk.linux.x86_64_3.102.1.v20140206-1358.jar) as "http://help.eclipse.org/stable/nftopic/org.eclipse.platform.doc.isv/reference/api/" but after that, when I move the mouse pointer to a SWT class name or method name on the editor, it popups above message. How to solve that and get the actual java doc details.
In Eclipse do the following:
Go to Windows -> Preferences.
Click Installed JREs.
Click Add.
Select Standard VM.
Click Next.
Click Directory
Choose your Sun JDK folder.
Click Finish.
Tick your Sun JDK folder from the list.
Click OK.
Restart Eclipse.
Problem solved!

Why can't I find Java desktop application in Netbeans 8.0

I downloaded Netbeans 8.0 with all bundle from http://netbeans.org/downloads and installed it successfully on Windows 8.
But I can't find Java Desktop Application which should be under Java category when add new project as 6.5 does.
Where is it? Or what is the substitute one in 8.0? I need something to create GUI by dragging components.
Thanks
You can still use Netbeans GUI components in Netbeans 8.0.
Create a normal Java Project:
Select "New Project" on the "File" menu.
Select "Java"
Select "Java Application"
Fill out the required data and finish.
Once the project is created:
Right click in a java package and select "New", then "Other" at the bottom of the menu.
Select "Swing GUI Forms"
Then choose the file type (JFrame as an example).
Netbeans will load the GUI tools for you at that moment.

Categories

Resources