Can't find Web Application project in Netbeans - netbeans-plugins

When I start a netbeans project, there is no categories "Java Web". Which is for make "Web Application" project. How can I add "java web" plugin or something in netbeans to see the java web categories in categories list in netbeans. please someone help me.

Go to the Tools menu and select Plugins. Then click on the "Available Plugins" tab.
Check the box for "Java Web Applications".
Click the "Install" button.
Click your way through the dialogs until the plugin and its dependencies are installed.
Restart the IDE.
You should now find "Java Web" in File -> New Project.

For anyone else that has this issue I've figured out how to fix it (when you find find the files for your webproject in htdocs).
Click on File -> New Project
Then click on Php Application from Existing Sources...
Then click on the files you have in your htdocs folder and it should show back up.
(Note you might have to double check the port numbers when you set it back up).

Related

Not able to install sonarlint plugin in Platform: Eclipse Mars.1 (4.5.1)

Trying to install sonar lint plugin in STS tool, it is not installing and says Sonar lint not compatible with this version of eclipse.
Find the versions details.
Spring Tool Suite
Version: 3.7.2.RELEASE
Build Id: 201511261048
Platform: Eclipse Mars.1 (4.5.1)
Hi you can download sonar lint from the follwing URL http://www.sonarlint.org/eclipse/ then follow the steps given below
Make sure the download location, Don't unpack the archive file(for windows)
Go to install new software option in eclipse Help >>
Click Add button in right of work with text field, following screen will appear
Fill name location as "Sonar" etc
Now select the downloaded archive file by clicking Archive button
Follow the installation instructions from the Installation window
you can also install zip file of SonarLint as follow:
1.go to the site https://bintray.com/sonarsource/SonarLint-for-Eclipse/releases/2.6.0.
2.download the setup jar file and go to help menu of eclipse
3.click on "install new software"
4.click on add.
5.click on "archive".
6."open" the jar file from the location you have downloaded the jar.
install the software.
Not sure what the problem exactly is, but I worked around this by starting up STS, select "Install New Software" and pasted the Solarlint update site URL into that dialog: http://eclipse.sonarlint.org/
That allowed me to install the plugin into STS 3.7.2 without any issues.
Hope this helps!!!
Please Make visit to this link and as i see you are using mars.
1. If you have eclipse marketplace installed then you can proceed as per.
you just need to drag this icon to your eclipse and done.
2. If not Installed then also same link click on download button and after downloading go to eclipse on right side there is search functionality type install new software and then select that option window will pop up choose>>add button>>archive button>>and upload zip file from download location >>accept agreement and done click on next done.
If you found it easy and helpful please up-vote happy coding and reviewing with sonarlint
1.Download it from https://www.sonarlint.org/eclipse/
2.In Eclipse go to Help->Install New Software->Add
3.Now click on Archive and select downloaded plugin zip and click Ok
4.Select the items and click Next and then accept license agreement and finally it will ask for a restart

Configure and install Intellij IDEA SDK

Now I want to write a plugin in intellij , development of every custom plugins requires the IntelliJ IDEA SDK to be installed and configured for that project. How can I install and configure sdk to my project?
Here you can read official guide to configure IntelliJ Idea SDK
Press CTRL + ALT + SHIFT + S
In the Project Structure dialog box that opens, do the following, and then click OK
Under Platform Settings, click SDKs, and then click the plus sign icon.
From the provided list, select IntelliJ IDEA Plugin SDK.
Using the Select Path dialog box that opens, select the IntelliJ IDEA installation directory directory, and then click OK. Note, that by default, this dialog box automatically selects the home directory of the currently running IntelliJ IDEA installation.
In the Select internal Java platform dialog box that opens, select a Java SDK (JDK 1.6 is recommended) to be used as IDEA internal platform, and then click OK.
Optionally, in Sandbox Home, change the default folder to which Intellij IDEA will copy plugins for debugging.
Open the Sourcepath tab, click Add, and then select the folder where you have checked out the sources of IntelliJ IDEA Community Edition.
In the Detected Source Roots dialog box that opens, click OK.

How to import and run existing plugins from intellij community edition repo

I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code.
I've pulled the Intellij community edition from the github repo, and imported the git4idea plugin as a project. I'm running the Intellij community edition
My main issue is this:
After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type.
This means that when trying to create a new run\debug configuration, I get [none] under "Use classpath of module", instead of of the ability to select the git4idea plugin. This obviously results in a "Run configuration error: no plugin module specified for configuration".
So the question is -
How can I change the general type of imported "git4idea" to plugin type?
Or better yet, what are the steps required in order to import and build/debug/run a plugin from the Intellij community edition repo?
I was able to solve this by manually reordering file directories, sorting out dependencies and editing the .iml file. The type of plugin is defined by changing type="JAVA_MODULE" to type="PLUGIN_MODULE".
...
This is the answer given by Dmitry Jemerov on the official Jetbrains plugin development forum:
The easiest answer to this is "don't". The IntelliJ IDEA Community
Edition project is set up to be developed as a whole, and the
dependencies are set up accordingly. If you want to hack on the Git
plugin, you simply run IDEA using the provided run configuration, it
runs with all plugins enabled, and you simply make whatever changes
you need and test them using the main run configuration.
If you really want, you can set up a new plugin module and point it to
the source code of the git4idea plugin inside the IntelliJ IDEA
Community Edition Git checkout. This is not too hard, but it's
something you'll need to do from scratch, and you can't use the
existing .iml file.
I had the same no plugin module specified for configuration issue. To work around it, instead of importing, I created a new plugin project and used the existing code directory.
when you import the intelij plugin projects
You should run the 'runIde' task in gradle.
Step-by-step instruction
Build your IDEA plugin (usually done with gradle build).
Start Intellij IDEA.
If you have any project opened, go to menu "File->Close all projects" to return to Intellij IDEA startup screen.
Install the plugin you've just built: on the left side of the "Welcome to Intellij IDEA" startup screen go to "Plugins", then click "gear" icon on the right side, it's located to the right of "Marketplace" and "Installed". From the pop-up menu select "Install Plugin from Disk...", navigate to plugin file (usually in build folder) and click "Ignore and continue" when you see the warning message saying something about signature.
Restart Intellij IDEA.
Open the folder with your IDEA plugin.
Wait until IDEA imported your Gradle project.
Put breakpoints inside your plugin code so you can debug it.
Go to menu "Run->Edit configurations".
In the "Run/Debug Configurations" window on the left side click "+".
Select "Gradle" from the pop-up menu.
On the right side change "Name" to "gradle-run-ide" (without quotes).
On the right side under "Run", inside "Tasks and arguments" field enter runIde ("i" must be capital, other letters small).
Click "OK" to save changes.
Go to menu "Run->Debug 'gradle-run-ide'".
A new, black-colored IDEA window should appear.
In this black-colored IDEA window do whatever you need to do in order to invoke methods of your plugin. When you invoke them, the first IDEA window should stop you on breakpoints you set previously.
Happy debugging.
After changing type="JAVA_MODULE" to type="PLUGIN_MODULE" in *.iml file I was getting following error -
Error running 'IdeaPlugin': Wrong SDK type for plugin module
To fix this go to -
Module Settings -> Platform settings -> SDKs.
Click on Add new SDK
Select Intellij Platform plugin SDK
For home directory select your Inetllij installation dir
Select JAVA SDK you want to use with it.
Once this is added got to Module Settings again
Module Settings -> Project settings -> project.
In Project SDK change the JAVA sdk to the SDK we just added in the above steps.
Run/Debug you plugin now.

New>Generic problem in Eclipse Helios no other attributes

When I am trying to use eclipse Helios for plug-in development,I am not getting any attributes beside generic in any new RCL option. I have gone through net and found to download the source code but there is no way to append the same in Helios. Please suggest
You can install Eclipse RCP Plug-in Developer Resources via Eclipse update site
The shortest way to do it is:
Download the helios version for RCP developers from the eclipse web site.
Open target platform from the preferences menu.
Click "add" to add a new target platform.
"Nothing" is chosen for default target platform creation. Click next
On the new window click on the locations tab.. Click add , on the pop up window click directory and browse the plugin directory of eclipse for RCP developers (This version of helios includes the necessary plugin sources inside) and click finish
On the "implicit dependencies" tab show all the plugins added (choose all plugins)
and then click finish and close the wizard window.
Finally choose the new target platform configuration you have just created.
Now you can see all the new attributes beside generics (related to the plugin)
Download the SDK plugins from:
http://download.eclipse.org/eclipse/updates/4.3/

Eclipse Plugin API: how can I add javadoc support for specific platform plugins?

using Eclipse 3.4 Ganymede and I cannot find the way to add javadoc support for all platform plugin apis, but specifically to JFace e Ui Forms packages.
Opening the property panel of any jar linked to the library named "plug-in dependecies" I receive the following message into the "Javadoc location" node:
The current class path entry belongs to container 'Plug-in Dependencies'
wich does not allow user modifications to Javadoc locations in its entries"...
what does it mean, that I must re-build Eclipse with some wired javadoc location?
If you have the eclipse SDK "classic", "RCP/Plugin" or "Modeling" installed, that means sources for the eclipse plugins are included.
While it is true you cannot setup Javadoc for those plugins, you still access to that documentation since the sources are here, fully "Java-documented".
If there are no sources, you still can import all eclipse plugins with their sources in a dedicated workspace.
alt text http://www.vogella.de/articles/EclipseCodeAccess/images/eclipsesource30.gif
I'm using eclipse 3.4.2 with visual editor 1.4.0.
For some reason, my eclipse doesn't find the swt javadocs by default and the "import plugins method" does not work.
But I found a work arround:
Project Properties -> Java Build Path -> Libraries -> Add External Jar
add /plugins/org.eclipse.swt.gtk.linux.x86_64.3.4.1.v3452b.jar
edit the "source attachment" to org.eclipse.swt.gtk.linux.x86_64.source_3.4.1.v3452b.jar
Press ok. Note, that you are now using swt "twice" :O)
If it is still not working, go to the same dialog, remove the "Standard Widget Toolkit (SWT)" and press ok. Return to the dialog and add it again with the button "Add Library" -> SWT -> IDE Platform. Press ok. Close all Visual Editors. And go to Project -> Clean...
Now you the Javadocs are displayed directly in Eclipse and Visual Editor still works.