ईवेंट्स
Power BI DataViz World Championship
14 फ़र॰, 4 pm - 31 मार्च, 4 pm
प्रवेश करने के 4 अवसरों के साथ, आप एक सम्मेलन पैकेज जीत सकते हैं और लास वेगास में लाइव ग्रैंड फिनाले में जगह बना सकते हैं
अधिक जानेंयह ब्राउज़र अब समर्थित नहीं है.
नवीनतम सुविधाओं, सुरक्षा अपडेट और तकनीकी सहायता का लाभ लेने के लिए Microsoft Edge में अपग्रेड करें.
This article provides high-level guidance on migrating your application from Java 7 to Java 8. The usage of Java 8 features isn't covered.
There's no one-size-fits-all solution to transition code from Java 7 to Java 8. Moving from Java 7 to Java 8 is typically a small amount of work. Potential issues include a handful of changed APIs, tightening of type inference in javac, changes to class loaders, and changes to permgen (part of garbage collection).
In general, the best approach is to try to run on Java 8 without recompiling first. This approach will get your application up and running as quickly as possible. For a library, your goal will be to publish an artifact that's compiled and tested with JDK 8.
Community support will end when Java 7 reaches End Of Life on 29 July 2022. Any applications running on Java 7 will continue to run, but Java 7 itself won't receive updates or security patches. To minimize risk and potential security vulnerabilities, upgrade your applications to Java 8 or 11 depending on your workload requirements.
The canonical guide to follow is the Oracle JDK Migration Guide. The migration guide covers all of the incompatibilities in the Java specification and incompatibilities in the JDK implementation. Most of these incompatibilities are edge cases, and you should investigate when you see a warning or experience an error.
Most applications should run on Java 8 without modification. The first thing to try
is to run on Java 8 without recompiling the code. The point of just running is to
see what warnings and errors come out of the execution. This approach gets an
application to run on Java 8 more quickly by focusing on the minimum work that needs
to be done.
You can resolve most of the problems you may come across without having to recompile code.
If you have to fix an issue in the code, then make the fix, but continue to compile
with JDK 7. If possible, work on getting the application to run with java
version 8 before compiling with JDK 8.
Compiling with JDK 8 may require updates to build scripts, tools, test frameworks,
and included libraries. Use the -Xlint:unchecked
option for javac
to get the
details on the use of JDK internal API and other warnings.
To migrate your App Services from Java 7 to Java 8 or 11, sign in to Azure portal, navigate to the web app(s) you want to update, then go to Configuration > Settings > Stack Settings. You'll see dropdowns for the Java major and minor versions, and the Tomcat version if you're using Tomcat. Select Java 8 or 11. Remember, you can make this configuration change in a deployment slot to safely test the configuration change, then swap the new environment into production. (Java 7 may be hidden to keep customers from taking dependencies on old runtimes.) For more information, see Set up staging environments in Azure App Service.
You can use the JAVA_TOOLS
app setting if you need to specify any new runtime options, and they'll be applied when your application starts. For more information, see Configure a Java app for Azure App Service. For more information about support policies for runtimes on App Service, see the Built-in languages and frameworks section of the App Service overview.
After you get your application to run on Java 8, we recommend following the Java modernization path to Java 11 using the following guides.
ईवेंट्स
Power BI DataViz World Championship
14 फ़र॰, 4 pm - 31 मार्च, 4 pm
प्रवेश करने के 4 अवसरों के साथ, आप एक सम्मेलन पैकेज जीत सकते हैं और लास वेगास में लाइव ग्रैंड फिनाले में जगह बना सकते हैं
अधिक जानेंप्रशिक्षण
प्रशिक्षण पथ
بدء استخدام Java على Azure - Training
ابدأ هنا وتعرف على كيفية إنشاء تطبيقات Java وترحيلها وتغيير حجمها على Azure باستخدام خدمات Azure. استخدم الأدوات وأطر العمل التي تعرفها وتجيد العمل عليها - Spring وTomcat وWildFly وJBoss وWebLogic وWebSphere وMaven وGradle وIntelliJ وEclipse وJenkins وTerraform والمزيد.
दस्तावेज़ीकरण
Reasons to move to Java 11 - Azure
A summary-level document intended for decision makers who are weighing the benefits of moving from Java 8 to Java 11.
Transition from Java 8 to Java 11 - Azure
A guide for managing the move from Java 8 to Java 11.
URLs for Major Versions of the Microsoft Build of OpenJDK
Describes where to download major versions of the Microsoft Build of OpenJDK.