I'm starting a new project and considering moving to Java 8 already, since newest Spring Framework 4.0 supports it, and it's not so long until final release this march.
Currently we are using STS 3.4 (Eclipse 4.3.1 based) and I have installed latest JDK8 and Java 8 (BETA) support. Simple projects seems to find themselves at home with Java 8, but not UI project (Dynamic Web Module 3.0, the one deployed on server). I'm getting error that compiler version (1.8 BETA) doesn't match installed project facet "Java" (1.7). And there is no such option "1.8" in "Java" project facet...
Have anybody succeeded running UI project with Java 8?
Thanks!
Have you tried to install WTP's org.eclipse.jst.common.fproj.enablement.jdt.feature.patch from here?
http://download.eclipse.org/webtools/patches/drops/R3.5.2/P-3.5.2-20140329045715/repository
You might also want support for Java 8 in Maven, PDE, and JDT.
For those features, use these sites:
Maven (M2E) 1.4.1 (org.eclipse.m2e.feature) http://download.eclipse.org/technology/m2e/releases/1.4/1.4.1.20140328-1905
JDT & PDE Feature patches : http://download.eclipse.org/eclipse/updates/4.3-P-builds/
If you happen to be a fan of JBoss Tools, it's coming directly to JBoss Central:
https://issues.jboss.org/browse/JBIDE-17002
Related
I am trying to install Spring Tool Suite 4 in Eclipse Kepler using Eclipse marketplace.
I am getting the following error when trying to install :
Cannot complete the install because one or more required items could not be found.
Software being installed: Cloud Foundry Manifest Language Server Feature 4.1.0.201812201040 (org.springframework.tooling.cloudfoundry.manifest.ls.feature.feature.group 4.1.0.201812201040)
Missing requirement: Language Server Protocol client for Eclipse IDE (Incubation) 0.7.0.201809061243 (org.eclipse.lsp4e 0.7.0.201809061243) requires 'bundle org.eclipse.core.runtime 3.12.0' but it could not be found
Cannot satisfy dependency:
From: Cloud Foundry Manifest Language Server Feature 4.1.0.201812201040 (org.springframework.tooling.cloudfoundry.manifest.ls.feature.feature.group 4.1.0.201812201040)
To: org.eclipse.lsp4e 0.6.0
i have tried to install Language Server Protocol but i can't find him in marketplace or google
My Eclipse version is Kepler Service Release 2
Java version : Java 8
Spring Plugin link : https://marketplace.eclipse.org/content/spring-tools-4-spring-boot-aka-spring-tool-suite-4
The error is saying that the plug-in org.eclipse.core.runtime with a version of at least 3.12.0 is required. Eclipse Kepler only has version 3.9 of this plug-in.
So Eclipse Kepler is too old for this install (it is 10 releases and 6 years out of date). You will need to use an up to date version of Eclipse for this code - Eclipse 2019-09 is the current version.
I have installed the Weblogic 12c server and I want to add it to a project in Netbeans 11. When I select "add server" from server instance, the Weblogic server option is not displayed
I expected to see the option as shown in the following link https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html
I was able to connect the plugin for weblogic from netbeans version 8.2.
You must copy the plug-in files from the netbeans 8.2 directory to the netbeans 11 directory.
Files of a plug-in:
...\plugins\servers\enterprise\modules\org-netbeans-modules-j2ee-weblogic9.jar
...\plugins\servers\enterprise\config\Modules\org-netbeans-modules-j2ee-weblogic9.xml
...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-j2ee-weblogic9.xml
...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-weblogic-common.xml
Checked on versions 11, 11.1, 11.2.
Update.
Second method
The plugin can be compiled from sources.
Plugin sources here:
https://github.com/apache/netbeans/tree/master/contrib/j2ee.weblogic9
But you need to build all netbeans project. Build command:
ant all
The resulting .nbm file can then be imported in NetBeans (Tools -> Plugins -> Downloaded -> Add Plugin)
Discussion of the problem here:
https://issues.apache.org/jira/browse/NETBEANS-2476
Compiled nbm plugin file:
https://issues.apache.org/jira/secure/attachment/12991973/org-netbeans-modules-j2ee-weblogic9.nbm
Checked on versions 12.x
From what i can tell only Netbeans versions 7.2, 7.3, 7.4, 8.0 can work with weblogic as of now. Also the guide you are following is using a pre Apache Netbeans version. I would recommend switching to one of the following Netbeans versions. Download the All bundle or EE.
Netbeans 8.0
Netbeans 7.4
https://netbeans.apache.org/kb/docs/web/jsf-jpa-weblogic.html
Unfortunately Apache NetBeans 11.0 does not currently support the addition or use of a WebLogic server. See open Apache NetBeans Bug Report 2476: Netbeans 11 EE Support Weblogic Server
I don't know for sure, but I suspect that this is a legal problem is related to licensing issues rather than any technical obstacles. The absence of licensing on Apache NetBeans 11.0 also impacts other important products such as Hibernate (NETBEANS-2719 Resolve Hibernate Support), and Wildfly (NETBEANS-2415
Bring back support for WildFly server).
There are licensing issues because Apache assumed ownership of NetBeans releases from Oracle last year.
Also, because WebLogic was supported "out of the box" in NetBeans 8.2 there is no old WebLogic plugin available for use on Apache NetBeans 11.0.
Your options are:
Regress NetBeans to use the most recent NetBeans release which does support WebLogic: Oracle NetBeans 8.2. Note that this means you cannot develop using Java EE 8, nor use any JDK version > 8.
Stick with Apache NetBeans 11.0, and instead of WebLogic use one of the four application servers which it formally supports "out of the box": Payara, Glassfish, Apache Tomcat and Apache TomEE.
Install your WebLogic server outside of Apache NetBeans 11.0, and deploy your NetBeans web applications to that external server.
I have downloaded Netbeans 9 sources from github and built it.
Now I would like to create Netbeans application as maven project using api 9, but in project wizard I can only choose between api version 8.2 and 8.1
How to register api version 9 to be able to choose it in project wizard?
AFAIK, the reason is that at this point (end of August 2018) the Netbeans 9.0 artifacts cannot yet be publicly released to a Maven repository, due to ownership of the org.netbeans namespace (including the Maven groupId) not yet being transferred from Oracle to the Apache Foundation. But it is in the works.
I'm trying to create a simple webform in Java with Eclipse but I've seen that I have to do New Project --> Web --> Dynamic Project
However, all I see when I click on New Project is the screenshoot below. I don't have the Web option.
I'm using Ubuntu and I've installed Eclipse Standard 4.3.2 (http://www.eclipse.org/downloads/packages/release/Kepler/SR2)
Should I install a different version? Eclipse IDE for Java EE Developers?
UPDATE
This is the printshoot of the error when installing the IDE for Java Developers
Eclipse IDE for Java EE is not a different version so much as a different package containing support for developing JSPs, Servlets, and other web artifacts. Kepler SR2, though, is a version--a two year old one that's since been superseded by Mars.2. So download the Mars.2 version of the Eclipse IDE for Java EE Developers. The download page at http://download.eclipse.org/ should always have the current supported version.
I'm trying to build a Dynamic Web Application in eclipse using Java 8 (and Wildfly appServer if that matters) but I'm unable to make Eclipse Luna M5 use Java 8 (I do have Java 8 BETA support installed and it works on JavaSE projects).
In my POM I set the level to Java 8:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
But after I do maven -> update project I get the following error:
Could not update project ExampleApp configuration
Version 1.8 of project facet java does not exist.
And indeed there is no java 1.8 project facet under project->preferences->project facets->java
Can I manually create such facet and add It to to eclipse or I'll have to wait until java 8 is released and the eclipse guys decide to add it ?
There are additional patches available for Kepler SR2 officially.
In ecliplse, go to "Help" --> "Market Place" --> Search for java 8 kepler.
Then choose and install the following.
install Java 8 support eclipse kepler sr2,
Java 8 Facets for web tools eclipse kepler sr2
Java 8 support for m2e for Eclipse Kepler SR2 (if required)
Reference: http://www.eclipse.org/downloads/java8/
After this, my multi-module maven project with java 8 is building fine without any error in eclipse kepler SR2.
UPDATE: If you are using Spring Tool Suite (STS), then version 3.5.1 has included these features.
There is an official bug report/patch for Kepler SR2. It also works with Spring Tool Suite 3.5.0.RC4 (which is based on Kepler). It should work for Luna too.
Bug report : https://bugs.eclipse.org/bugs/show_bug.cgi?id=430637 (see comment #12)
Update site for the Java 8 facet : http://download.eclipse.org/webtools/patches/drops/R3.5.2/P-3.5.2-20140329045715/repository
While we await official Java 1.8 support, I've made a github fork that contains what I believe are the required changes - these require the Java 8 patches from here first: https://wiki.eclipse.org/JDT_Core/Java8
To install the 1.8 facet support (assuming that you're running 4.3.1 or 4.3.2, and have write access to the main .../eclipse/plugins dir):
git clone https://github.com/stevestorey/webtools.common.fproj
git checkout java8-support
Import the various projects in this feature set into your Eclipse IDE (can be on a new workspace). Specifically you need org.eclipse.wst.common.project.facet.core and org.eclipse.wst.common.project.facet.core
Right click on the org.eclipse.jst.common.project.facet.core project and choose "Export" and then "Plug-in development\Deployable plugins and fragments"
From the Export dialog, select only the org.eclipse.jst.common.project.facet.core plugin, and choose the bottom "Install into host" radio button, and choose a suitable path (I believe I went with the default, but I don't think it particularly matters)
Clicking Finish will build the plugin, and then kick off the installation into your Eclipse environment.
After restarting Eclipse, you should find that 1.8 is now selectable as a Java facet :) (and it also works with M2E enabled projects that specify source/target of 1.8).
Note the instruction from the standard 1.8 patch instructions that the installed JDK /must/ be called "JavaSE-1.8" within the Eclipse properties.
Also note that if/when you update Eclipse (e.g. to upgrade to 4.3.2), you will probably need to re-install the patched version again as the update will put the "official" version of the plugin back in.
I hit exactly the same problem a few days ago. Looks like this will be included into the next release of Eclipse Luna.
Java Version 1.8 of project facet java does not exist
Eclipse Luna M6 is scheduled for release on March 14th so hopefully it will be included then.
Recently Java updated to Java 8 so you need to update to the new Eclipse for it to work. I was running Eclipse 4.3 (Kepler) and I had to upgrade to Eclipse 4.4 (Luna)
Go to Your Project Property search for project facet and change java version