Am trying to upgrade maven Struts 1.3 built using Java 1.7 to Java 1.8 and was able to successfully launch the application after changing all possible library files. Now, it has been instructed to upgrade the application to Java 11 or 12. Does Java 11 or 12 supports Struts 1.3 ? Can I proceed to make this changes? Your thoughts please.
Related
I have a project currently in grails 2.5.x and upgrading to grails 3.0.17.
Grails 2.5.x is being compiled on Java 11 (Didn't found any official Support).
Grails 3.0.17 when compiled(the same project after upgrading) give error that it doesnt support Java 11 (didn't got the logic why)
I found some pages where it says grails 3.0.17 uses gradle 2.4 and groovy 2.x which doesnt support Java 11 but makes no sense that it gets compiled on grails 2.5.x, a older version.
Grails 2, and 3 does not officially support Java 11. You need to update to Grails 4 to get Java 11 support.
When I create a spring boot project following tutorial, I can only choose java version 8 or 11.
I have already installed jdk 7 and jre 7 on my Mac.
Then I start a springboot project using idea like following steps:
1. Create New Project
2.select spring initializer
3.set project sdk to be jdk 7
4. when I step into "Project Metadata" page, I can only select "java version" 8 or 11. I want to select java 7, but the scroll down window only shows 8 or 11.
Spring Boot 2 is built on top of Spring 5 and Spring 5 requires at least Java 8.
If you need to build for Java 7 you must use Spring Boot 1.
The reason for 8 and 11 is that these version will have long term support where 9 and 10 will not.
I know Java 11 has not been officially released yet, but has anyone tested Grails 3.x with an early access release of Java 11? Or does anyone know when or if Grails 3.x will support Java 11?
Well I know that the support for Java 9+ in Groovy is getting worked on and I think 2.5.2 had some fixes. Technically Groovy will work on newer versions of java, but you'll get a bunch of warnings. All of this is supposed to be worked out for Groovy 3.0, probably coming around the end of the year, based on what I hear at GR8Con.US.
All that being said, Grails 3.3 is on Groovy 2.4.x, with spring boot 1.2, which I don't think either support newer versions of Java. Grails 4 is supposed to be coming out by the end of the year, with Groovy 2.5, and a newer version of spring boot. Once Groovy 3 comes out it shouldn't be too long before Grails upgrades to it.
Also check out the Groovy Podcast, there was a metion on the support from Groovy:
https://youtu.be/XQLblr2OGJ8
I know Java 11 has not been officially released yet, but has anyone
tested Grails 3.x with an early access release of Java 11?
I tried using Grails 3.3.8 and the early access release of JDK 11 and it didn't work, but I wondered if that might be something to do with the JDK.
Then I tried again using Oracle's official release of JDK 11 which came out a couple of days ago. I rebuilt an existing Grails project in NetBeans 9.0 using JDK 11 / Grails 3.3.8, and got the following error:
Command [clean] error: Could not determine java version from '11'. (Use --stacktrace to see the full trace)
I get similar errors when using JDK 9 and 10, but the project builds and runs fine using JDK 8.
See this SO answer for a similar problem when using Grails with JDK 10: Could not determine java version from '10.0.2' while starting Grails 3.3.8 application:
Grails 3.3.8 does not support Java 10. You will have to use Java 7 or Java 8 if you want to use Grails 3.3.8.
Or does anyone know when or if Grails 3.x will support Java 11?
Grails 3.x won't ever support JDK 11 according to a Grails developer. See the comments for the SO answer I linked to above:
You have to wait for Grails 4 to use a JDK > 8.
I don't know anything about a proposed release date for Grails 4.
Java 11 is supported in Grails 4. However, note Grails 4 still builds on Groovy 2.5.x which doesn't run all that smooth on Java 9-11 compared to Groovy 3. So warnings and stuff like that is to be expected.
//EDIT 22/01/2022: Grails 5 is build is built on Groovy 3.0.x and therefore works smoothly with Java 11.
I have been using Netbeans upto 8.2 for several years. But now I have installed JDK 10 and was forced to migrate to Eclipse. But I do not feel very comfortable. I would like to go back to Netbeans.
Does Netbeans support JDK version 10 now? I mean July, 2018.
Yes, NetBeans supports Java 10, but there are several important caveats to be aware of:
NetBeans 8.2 does not support Java 10. It just won't work.
NetBeans 9 supports Java 10. It was released yesterday (July 29, 2018).
NetBeans 9 only officially supports Java SE. Some options (plugins) available on NetBeans 8.2 are not provided on NetBeans 9 by default, such as Java EE and C/C++. However, there is a way to add those options (at your own risk). See this answer to How to get Netbeans 9 to deploy a valid webapp on Tomcat for details. Also see What's Happened to My Favorite NetBeans Plugins?
Notes:
NetBeans 8.2 is an Oracle product, but they are in the process of handing the NetBeans components over to Apache, and NetBeans 9 comes from Apache. The transition explains why many plugins are not available in the initial release of NetBeans 9, but they will become available in coming releases.
The NetBeans 9 download is in the form of a single zip file for all operating systems. Just unzip to a folder, then locate and run netbeans64.exe (or netbeans.exe for 32-bit).
Updated to add further notes:
You can safely install and run NetBeans 8.2 and NetBeans 9 concurrently.
The default platform for NetBeans 9 is still Java 8. You must explicitly add JDK 10 as a platform: Tools > Java Platforms > Add Platform...
To create a Java 10 project, open the project's properties and ensure that the following are set:
Properties > Libraries > Java Platform: JDK 10
Properties > Sources > Source/Binary Format: JDK 10
An easy way to verify that JDK 10 is set up correctly is to create a trivial Java application and put this code in the main() method: var v = 123; System.out.println("v=" + v); If that compiles and runs you are fine (and vice versa).
Netbeans 9 started working for me after I moved to JDK 10.0.2 instead of 10.0.1 ..... may be it will help guys who are struggling like me.
Enjoy.
First of all, I am an absolute noob in Java web applications.
So I apologise if my question looks silly.
I have to build Java Web application as a WAR file from source.
It should have Servlet version: 2.4 and JSP version: 2.0, and not greater.
For example, if I build it on Netbeans 7, I get it with Servlet version 3.0 and JSP version 2.1 - not what I need. So to get it built with older versions I have to use Netbeans 5.5 with JRE 1.5.0 installed.
But this method is totally awkward.
Can I use Ant (or maybe Maven) for the purpose, and how?