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

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.

Related

Installing J2ME plugins in NetBeans 12.4

I downloaded J2ME plugins from here: https://www.oracle.com/java/technologies/javame-sdk-downloads.html
I can't install the plugins, this is the error:
Some plugins require plugin Java Profiler Core to be installed.
The plugin Java Profiler Core is requested in version >= 2.1.1 (release version 2) but only 3.41 (of release version different from 2) was found.
The following plugins are affected:
    Java ME SDK CPU Profiler Snapshot Viewer
    Profiler (Java ME Projects Support)
Please help me, thank you
First a couple of basic points:
I don't know whether Java ME works with NetBeans using a JDK version > 8 so I first set the default platform for NetBeans to JDK 8. This step may not be necessary, but it definitely works.
Do not download the NetBeans plugins from the Oracle page you linked to. Instead, use the approach detailed below to use older plugins which are compatible.
In NetBeans 12.4:
Go to Tools > Plugins > Settings and click Add to add http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz as an Upgrade Center, then check the Active column for its entry.
Click the Available Plugins tab. You should see four entries for Java ME. Click the Install checkbox for all four, then click the Install button to install those plugins:
Next download oracle-jmesdk-8-0-rr-win32-bin.exe from the Oracle page you linked to, then run the downloaded executable to install the Java ME SDK to a location of your choice (if you haven't already done that).
Add the ME JDK you just installed as a Java Platform within NetBeans using Tools > Java Platforms > Add Platform.... The exact steps are detailed in the update at the end of this answer to How to fix Netbeans 8.0 not detecting Java ME.
So Java ME SDK has been added as a Java Platform, and the older Java ME... plugins have been installed. The final step is to verify that you can now use the Project Wizard to create a Java ME Embedded Application in NetBeans 12.4:
Select Files > New Project... and you should see a new entry in the list of Categories list titled Java ME Embedded. In the Projects list there will be a single entry titled Java ME Embedded Application:
Click Next >, and you should see a screen similar to this:
Set the Project Name field, and any other fields, as necessary.
Finally, click Finish to create the Java ME project.

Eclipse Juno no JSP in Dynamic Web Project (but everything else is fine)

The short question, is when creating dynamic web project (1.6 jdk) I can see all file types to create but there is no option for jsp. To add to that when I check file associations there is no JSP editor to select from.
A slightly longer version is I simply want to edit JSP files, I have Juno EE version installed and it says web tools platform is installed and everything works just fine.
However while everything works, there was no *.jsp in file associations and on adding it there was no JSP editor in the list. This is an out of the box Juno EE.
So I checked installed plugins and it tells me that web tools is installed, there is an icon and a load of plugins. They are all listed under Java EE in the plugin/installation list. I even tried installing just 'java web develop tools' which lists as 'tools for working with jsp' but when I do that I get ""Eclipse Java Web Developer Tools" will be ignored because it is already installed." however I cannot uninstall it because it's part of Java EE eclipse platform. I have no other plugins installed that might have broken this, however it has taken some time to get all the settings good so I'd rather not install it all again.
So I tried to install the full WTP by hand and it said some things were already installed, but it installed others. However, still no JSP editor. Hence why I tried a dynamic web project to see if I could create JSP and it wasn't listed.
So, eclipse base install has absolutely everything (xml, html editor, java editor, all the tools) but just not JSP.
My JDK is fine as dynamic web project is not created unless you have a valid 1.6 or above.
Anyone help?
It seems your missing Eclipse web developer tools and Eclipse java web developer tools.
Help>Install new software>http://download.eclipse.org/releases/juno, select appropriate items under Web,XML,Java EE
Hope this helps
In Eclipse Juno, select File/New/Other, then type in jsp in the wizard field. Select jsp file or jsp tag and there you go. Hope that helps.
Try to install Eclipse with Java EE developer.It should work.
You can go to Eclipse Market place and search for "Java EE Developer tool". On clicking it you should be able to see if your Web developer tool is selected or not. Please select that option and your issue will be resolved.
Check your path. Make sure it is pointing to at least a 1.6 version of Java. Restart Eclipse. That fixed it for me.
If you have installed every thing proper and still it is not showing JSP option while creating new .jsp file then click to the web icon on top right corner of eclipse. If it doesn't work then you need to install updated version of eclipse.
I also faced the same problem; I looked through the "Web,XML,Java EE..." installables available at under Kepler downloads:
and that brought me the New->'JSP File' context menu item.

Eclipse setup Ubuntu 10.04

I am trying to setup Eclipse on Ubuntu 10.04. I have installed Eclipse SDK 3.5.2 from the Synaptic Package manager.
The problem is, Eclipse is not giving me an option to create Java or Dynamic Web Projects. It also does not properly recognize the projects that I import (shows source folders but not packages).
Do I have the right version of Eclipse or do I need to install anything besides this.
Please note that I already have Sun's JVM set as the default for my system. Have been trying for a while and have searched everywhere with no luck, any help would be highly appreciated.
Thanks
The version packaged in Ubuntu is a light version for Java SE development (i.e. standalone java application). If you want to create web projects, you need a version with a lot more plugins. Eclipse IDE for Java EE Developers
I guess you need Eclipse IDE for Java EE Developers.. Here it is.

I don't have "Dynamic Web Project" option in Eclipse new Project wizard

I have download the Eclipse IDE for Java developer, HELIOS. I click 'File -> New -> Project...', but I only have "General, CVS, Java project, Examples". I would like to be able to create "dynamic web project", why do I not have this option?
I searched from internet, and the reason is probably I don't have Eclipse Web Development Tools, but how can I get it?
-----------EDIT-----------
I know by install Eclipse IDE for Java EE developer can solve the problem. But, I am working under Linux Ubuntu, how to get Eclipse Java EE version for Ubuntu Linux machine?
Not all of them are required (I think), but after installing the components listed below I got the "Dynamic Web Project" template added to my Eclipse (Indigo). The list is:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
You can install those packages by clicking on "Help" > "Install New Software", selecting the repository that corresponds to your Eclipse build (i.e http://download.eclipse.org/releases/indigo for Indigo). The packages are grouped under "Web, XML, Java EE and OSGi Enterprise Development".
I think you need the Web Tools Platform package for this. Not very sure though. You can add it to your current eclipse through Help > install new software.
Then add the software repository site location for WTP for your version of eclipse. This is how you can install plugins in eclipse.
"http://download.eclipse.org/releases/kepler"(If you have Eclipse Kepler)
Based on your eclipse choose above link and copy in
help>Install new software
paste in "work with" click add
give any name you want - plugin
In the list select>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE
Developer Tools. select and install it.
After restart you will have your Dyanmic web project option.
Thank You.
Like me if it worked please
You only need to install
Eclipse Java EE Developer Tools
and you will be able to see "Dynamic web project" wizard.
Download Eclipse IDE for Java EE Developers, everything you need should be included inside. This is the most painless way of obtaining Web Development Tools.
If you want to leave your existing Eclipse IDE, you can go to 'Help -> Install New Software' and find WDT to install them, although I haven't personally tried to go this route, so I can't guarantee everything will work out of the box.
Edit: not sure if it's included in Ubuntu's repository. One other way to do it is to download Linux 32-bit (or 64-bit, depending on your machine) version of Eclipse EE, but you'll have to check if it's the source you have to compile yourself, or an already compiled binary.
Fwiw, I downloaded the standard Java EE version of the Mars version of Eclipse, and ran into the same deal -- didn't see a Web option if I tried File >>> New >>> Project wizard.
The good news: Probably no extra installation needed.
It looks like what I wanted was to select the Other option rather than the Project item (strangely this is what comes up when you hit Ctrl-N, but that also lets us know we're probably on the right track):
After you select "Other", you'll see the "Select a wizard" screen, where you can select "Dynamic Web Project" and profit.
HELP
Install New Software
In Work With input box paste this url: http://download.eclipse.org/releases/{version}/
Replace version with your eclipse's version (eg: LUNA)
Hit enter
Underneath box will have different options, select package of your need.
Maybe Eclipse WTP plugin has been accidently removed. Have you tried re-installing WTP using this location ? If I were you I would have reinstall Eclipse from strach or even better try Spring ToolSuite which integrates with Google Plugin for Eclipse seamlessly (usign Extenstions tab on STS Dashboard)
Just download any eclipse with "EE" letters
I had a similar problem, you may find that going to the top right corner of your page in Eclipse and click "Java EE" instead of "Java" will solve your problem. I had EE installed correctly like you, and this solved the issue for me. Hope I helped :)
Go to Eclipse --> Help
and click--->Install new software
then you can see a window ...There a click add
Then put below url in url box: http://download.eclipse.org/webtools/repository/juno/
i am having juno
if u have any other means put that name .
then click ok.
Make sure to check dynamic web app in "other section" i.e File>New>Other>Web or type in "dynamic web app" in your wizard filter. If dynamic web app is not there then follow following steps:
On Eclipse Menu Select HELP > INSTALL NEW SOFTWARE
In work with test box simply type in your eclipse version, which is oxygen in my case
Once you type in yur version something like this "Oxygen - http://download.eclipse.org/releases/oxygen"will be recommended to you in drop down
If you do not get any recommendation then simply copy " http://download.eclipse.org/releases/your-version" and paste it. Make sure to edit your-version.
After you Enter the address and press enter bunch of new softwares will be listed just ubderneath work with text box.
Scroll, find and Expand WEB, XML, Java EE .... tab
Select only these three options: Eclipse Java EE Developer Tools, Eclipse Java Web Developer Tools,Eclipse Web Developer Tools
Next, next and finish!
The easiest way to handle this is to install the full package installer with all weblogic add ons from the oracle site. This will install eclipse with all the features/plug ins you need.
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/oepe-network-installer-2371168.html
This helped me find the "Dynamic web project" in Eclipse 2020-12 version. Restart the eclipse and go to file->new->other->web and you will see
project will be available.
This option might be missing because more than one and other than Tomcat runtime is selected. At the marked spot I was shown that I have selected Java JDK runtime. After unselecting it Dynamic Web Module reappeared.

Eclipse, how to combine 2 editions

I'm using the PHP edition of Eclipse, but was told that I also need the Java EE edition. I'd like to install them both in the same install (single launch) and not have to open 2 editions in parallel. Is there a way to easily get this done? I'm new to eclipse, so detailed instructions are welcome.
I would do it the other way around: first install Eclipse IDE for Java EE developers and then add the PHP Development Tools (PDT) from the update site (instructions here).
This should be pretty straightforward. Download one edition, then have it install the plugins comprising the other. This is done via Install New Software in the Help menu; first time out you will need to hit the Add button and tell it about the update site URL for the plugin set you want to install. You can find the update site URLs via the main Eclipse website.
It looks like the Java EE version is a superset of the PHP one, at least for things mentioned in this chart...
http://www.eclipse.org/downloads/packages/compare-packages
So, I would start with Java EE. Check the plugins and features and use the Help->Install dialog to add any new plugins you want.
In your case, I would start with the "Eclipse IDE for Java Developers" and then add those plugins needed for PHP. From this chart, it looks like you'll need to add Webtools and the PDT.