Can't create Maven Web Application project in netbeans 9.0 - netbeans

I'm happy that netbeans 9.0 has just launched, but I can't create a Maven Web Application project in netbeans 9.0.
There is no Web Application option to select in Maven category when creating a new project.
I checked this post, but there is no available plugin for Java EE.
I have Java 10 enabled system wide.
Before netbeans 9.0, I was using netbeans 8.2 with Java 8 and had no problem.

For me, this is a big issue with Netbeans 9 and 10, but this is a way to handler for now:
Go to Tools > Plugins > Settings
Active Netbeans 8.2 Plugin
Portal
Wait for download content.
Then go to Available Plugins Tab.
Press Check for Newest
Search for web or EE
Check Install box for Java EE
Press Install
Restart IDE.
Yeah... we done!
FYI: https://vorozco.com/blog/2018/2018-07-30-NetBeans-9-JavaEE-JakartaEE.html

Related

Netbeans 9.0 (Apache) doesn't open Netbeans 8.2 project folder

I installed Netbeans 9.0 from the Apache site and have installed Jave JDK 10.0.2. Netbeans launches but when I try to open an existing netbeans 8.2 project it does not recognize the project folders.
I can create a new project and a file folder structure is setup that looks the same as my 8.2 project and this can be opened okay. It's like the open project menu does not see a 8.2 project in the folder path.
added 9/6/18: The project is a simple windows GUI controlling a Labjack USB digital IO.
I read this article on Apache NetBeans:
So, does that mean that all the features that are not integrated into
Apache NetBeans (incubating) 9.0 cannot be used? No, it does not. Go
to Tools | Plugins in Apache NetBeans (incubating) 9.0 and, in the
Settings tab, register the NetBeans IDE 8.2 update center:
http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz
Then go to the Available Plugins tab and you'll see all the plugins
for NetBeans IDE 8.2., and search for the word "Kit", which will give
you bundles of modules, for higher-level features such as C/C++,
JavaScript, Groovy, PHP, and enterprise Java (i.e., Java EE or, as it
is known now, Jakarta EE).
That solution is on Apache NetBeans.

How to use Tomcat 8 in Eclipse?

EDIT 2014-02-07: Eclipse Luna is here, and support for Tomcat 8 is included in the bundled WTP : ) Happy days!
Tomcat 8 is still in development, but you can get it here. Now there is a RC version on the main Apache Tomcat page. Update 2/27/14: 8 is released now, and adapters built for WTP, just not integrated into eclipse bundles yet. Soon!
In Eclipse Kepler though, there is no supported adapter in the add server list for Tomcat 8. the Tomcat 7 adapter doesn't work, and it doesn't look like there's a new extension for it to download in the "Install new Extension" dialog.
Is my only option to get it (Tomcat 8) running locally outside of Eclipse and maybe hook a remote debugger into it for stepping through code? Will that even work for Eclipse Kepler + Tomcat 8? IntelliJ IDEA 12 couldn't do it in the 30 minutes of time I put into that path.
If you're wondering why I'm trying to do this at all, I'm playing around with Spring 4.0.0.M1 and 4.0.0.M2 WebSocket stuff. They (per Rossen Stoyanchev's Spring 4.0 blog post and examples) use JSR-356, which is implemented in Tomcat 8, theoretically to be back-ported at some point to Tomcat 7.
An answer to the broader question of "How can I easily get a development environment going for Spring 4 WebSocket support?" would be nice, but it would also still be nice to know how to plug in unsupported web servers to Eclipse.
Cheers,
E
**Update 8/7/13 - Rossen Stoyanchev updated the Spring 4.0.0.M2 blog and added some jpda wisdom and shared that yeah, he's using remote debugging:
That said, it's not very hard to debug with Tomcat 8 inside Eclipse. Just change the last line in bin/startup.sh to be (note the addition of "jpda"):
exec "$PRGDIR"/"$EXECUTABLE" jpda start "$#"
Inside Eclipse create a remote debugging configuration for localhost port 80, launch it after starting Tomcat, and you can put breakpoints in the source code.
Thanks Rossen!
**Update 9/29/13 - Eclipse Kepler SR1 just arrived, but alas! No WTP support for Tomcat 8. Tomcat 8 is up to RC3.
**Updates 12/5/13
Blog url fix.
Tomcat 8 up to RC5.
Bug to track WTP fix in Eclipse to support Tomcat 8 HERE.
IntelliJ IDEA new version 13 says it now supports Tomcat 8. Haven't tried yet personally.
UPDATE: Eclipse Mars EE and later have native support for Tomcat8. Use this only if you have an earlier version of eclipse.
The latest version of Eclipse still does not support Tomcat 8, but you can add the new version of WTP and Tomcat 8 support will be added natively. To do this:
Download the latest version of Eclipse for Java EE
Go to the WTP downloads page, select the latest version (currently 3.6), and download the zip (under
Traditional Zip Files...Web App Developers). Here's the current link.
Copy the all of the files in features and plugins directories of the downloaded WTP into the corresponding Eclipse directories in your Eclipse folder (overwriting the existing files).
Start Eclipse and you should have a Tomcat 8 option available when you go to deploy.
I follow Jason's step, but not works.
And then I find the WTP Update site http://download.eclipse.org/webtools/updates/.
Help -> Install new software -> Add > WTP:http://download.eclipse.org/webtools/updates/ -> OK
Then Help -> Check for update, just works, I don't know whether Jason's affect this .
The only thing the eclipse plugin is checking is the tomcat version inside:
catalina.jar!/org/apache/catalina/util/ServerInfo.properties
I replaced the properties file with the one in tomcat7 and that fixed the issue for eclipse
In order to be able to deploy the spring-websockets sample app you need to edit the following file in eclipse:
.settings/org.eclipse.wst.common.project.facet.core.xml
And change the web version to 2.5
<installed facet="jst.web" version="2.5"/>
This should be a comment under the accepted answer, but I don't have 50 reputation yet.
At http://download.eclipse.org/webtools/downloads/
I first selected Released 3.5.2, which like others did not work for me.
Then I picked Integration 3.6.0, and saw Tomcat 8 for New Project of Dynamic Web Project.
I have tried below and it worked for me.
In eclipse go to Help->Eclipse Marketplace
Type JST extension in search box.
Install JSP Adapters for Luna
Restart the eclispe
You should be able to see Tocmat 8 server while adding new server.
In addition to #Jason's answer I had to do a bit more to get my app to run.
Download & unzip Eclipse IDE for Java EE Developers (Note the EE edition)
Download & unzip Eclipse's Web Tools Platform Stable (Milestone) 3.6+
Overwrite the two folders in the Eclipse IDE, with the WTP folder(s) (features & plugins folders)
Download and unzip Tomcat 8
In eclipse new -> other -> server -> Tomcat 8 (choose the unzipped location)
If you get a 404, click the Tomcat 8 in the Servers view -> Server Locations -> Change to Use Tomcat installation, and change the Deploy path: to webapps *
(If you can't edit this, delete any published webapps)
To add the Tomcat 9.0 (Tomcat build from the trunk) as a server in Eclipse.
Update the ServerInfo.properties file properties as below.
server.info=Apache Tomcat/#VERSION#
server.number=#VERSION_NUMBER#
server.built=#VERSION_BUILT#
server.info=Apache Tomcat/7.0.57
server.number=7.0.57.0
server.built=Nov 3 2014 08:39:16 UTC
Build the tomcat server from trunk and add the server as tomcat7 instance in Eclipse.
ServerInfo.properties file location : \tomcat\java\org\apache\catalina\util\ServerInfo.properties
The latest version of Springsource STS (3.6) supports Tomcat 8. It is based on eclipse Luna 4.4 and supports Java 8. Have at it!
Alternatively we can use eclipse update site (Help -> Install New Features -> Add Site (urls below) -> Select desired Features).
For Luna: http://download.eclipse.org/webtools/repository/luna
For Kepler: http://download.eclipse.org/webtools/repository/kepler
For Helios: http://download.eclipse.org/webtools/repository/helios
For older version: http://download.eclipse.org/webtools/updates/
Downloaded Eclipse Luna and installed WTP using http://download.eclipse.org/webtools/repository/luna
Downloaded Tomcat 8 and configured new server in Eclipse. I am able to setup tomcat 8 now in Eclipse luna
If you have untarred your own version of tomcat v8 with a root user into a custom directory (linux) then the default permissions on the TOMCATROOT/lib directory do not allow normal user access.
Eclipse will not be able to see the catalina.jar to check the version. So no amount of fiddling aorund with the server.properties will help!
just add chmod u+x lib/ to allow normal user access to the libs.

Installed Eclipse GWT plugin, but no Web Application project

I have Eclipse IDE for Java EE Developers (3.7) installed on Windows XP and I installed Google plugin and GWT SDK , but even though plugin shows up as installed, I still do not get an option File > New > Web Application Project as it should be. And no icon with 'g' in blue circle on toolbar. What am I missing?
Thanks
Here is what I see on 'Plug-ins' tab in my Eclipse Installation Details screen:
Google App Engine Java SDK 1.7.6
Google Eclipse 3.7 Platform Plugin 3.2.2.v201303261859-r3l-r37
Google Eclipse Platform Plugin 3.2.2.v201303261859-r3l-r37
Google Eclipse Shared Platform Plugin 3.2.2.v201303261859-r3l-r37
Google Web Toolkit SDK 2.5.1
Go to Eclipse Market Place --> Search For GWT Plugin --> Download Google Plugin for Eclipse 3.7
It will take some time to download and install all the packages and plugins. But once it will be done, you will be able to see the google icon at the toolbar.
Also go through the following link.
https://developers.google.com/web-toolkit/usingeclipse
I had the same problen when following the GWT Tutorial and I fix the issue.
You can go:
Eclipse --> Help -->Install New Software --> Work with
Then paste, any of these urls but change indigo or helios for your eclipse IDE distribution
Indigo Update Site - http://download.eclipse.org/releases/indigo/
http://download.eclipse.org/webtools/repository/helios
Wait a moment and Eclipse will show you all options.
Check the option:
Web, XML, Java EE and OSGi Enterprise Development
Then click the Next, Apply and Finish and restart your IDE to see the changes.
Is all.
You are probably missing Java 7 JDK.
Download and install the JDK from the above link, then follow these instructions to let Eclipse know where to find it.
After I installed Java 7, the GWT plugin buttons and menus finally appeared next time I started Eclipse.

Cannot select framework to use in new web application using Netbeans on Ubuntu

Using Netbeans 6.9.1 on Ubuntu 10.10 Beta, when I try to create a new web application, none of checkboxes on the frameworks page are selectable. Here are my exact steps:
File > New Project
Choose Java Web from Categories and Web Application from Projects, and click Next
Accept the defaults on the Name and Location page, and click Next
Accept the defaults on the Server and Settings page (Server: GlassFish Server 3; Java EE Version: Java EE 6 Web, and click Next
On the Frameworks page, 6 options appear with checkboxes (Google Web Toolkit, Spring Web MVC, Echo2...), but I can't figure out how to check one. I can do it on my Windows machine running the same version of Netbeans. I have all available plugins installed in Netbeans.
What am I missing?
after a lot of searching, I found a solution.
In my case it seemed to be open-jdk that was causing the issue...
I wrote the solutions down here:
http://netbeans.org/bugzilla/show_bug.cgi?id=191959
hope it helps...
dGo
I had the same problem... after many attempts to fix this i removed netbeans from the software center, installed it manually.. and now it all works smooth :D
I do believe that netbeans from the repo is 6.9 though and i installed 6.9.1 (on ubuntu 10.10)
Also I installed the sun java sdk: sudo apt-get install sun-java6-jdk
Try this : first, create your project without selecting a framework, then choose the framework you want to use in its properties.
Here you go, I ran into the same problem and finally figured out how to resolve it
Go to Tools > Plugins > Installed Plugins (Tab)
You will find the following plugins there
Java SE
Java ME
Groovy
Base IDE
Java Web and EE
Ensure that Java SE, Base IDE, Java Web and EE plugins are active, if not activate them. You should all set from there.

How to add GlassFish Server to Eclipse Oxygen?

I am using Eclipse Oxygen for Java EE. I have installed the Java EE 7 Web Profile SDK Update 3, that includes GlassFish Open Source Edition Web Profile 4.1.2.
When I do File >> New >> Server, the GlassFish does not appear on the server type list.
I already have seen this answer to this question, but it didn't help me because in Eclipse Oxygen I don't know where is the option to download additional server adapters.
How can I add GlassFish to Eclipse Oxygen?
I solved this problem by just installing GlassFish Tools through Marketplace.
What you have to do is drag the Install button in this link GlassFish Tools
and drop in your workspace, it may take a few minutes but after reboot your eclipse you will be able to add a GlassFish server