Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Microsoft STL redistributable found in JDK is out of date

conrockJan 7 2025 — edited Jan 13 2025

Good day!

Maybe there is a workaround for this other than modifying the JDK installation (removing the jdk-21\bin\msvcp140.dll file) on all end user machines.

Note: I have submitted a bug report.

This issue:

There is an outdated version of the MS redistributables, specifically msvcp140.dll, located in the bin folder of installed JDKs.
A recent build of the native GDAL libraries crashes when used within a Java application using the Oracle JDK 21.0.5 but works once the jdk-21\bin\msvcp140.dll file is removed.

The application also works without crashing when using the most recent Adoptium JDK. Here is the same bug from earlier in the year at Adoptium which was resolved: https://github.com/adoptium/temurin-build/issues/3887

According to available information, the Microsoft Visual C++ Redistributable version 14.36.32532 (in the Oracle JDK) was last updated on May 16, 2023 and may be reaching end of support later this year. The latest release of the Microsoft Visual C++ Redistributable is 14.42.34433 which was released on November 12, 2024.

--------------- T H R E A D ---------------

Current thread (0x000001ffe2e31120): JavaThread "pool-3-thread-2" [_thread_in_native, id=116064, stack(0x000000f05ad00000,0x000000f05ae00000) (1024K)]

Stack: [0x000000f05ad00000,0x000000f05ae00000], sp=0x000000f05adfe430, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [msvcp140.dll+0x12f58]
C [gdal.dll+0xb970ad]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.gdal.gdal.gdalJNI.Open__SWIG_0(Ljava/lang/String;I)J+0
j org.gdal.gdal.gdal.Open(Ljava/lang/String;I)Lorg/gdal/gdal/Dataset;+2
j ...
J 10393 c1 java.util.concurrent.FutureTask.run()V java.base@21.0.5 (123 bytes) @ 0x000001ff89922e6c [0x000001ff899226c0+0x00000000000007ac]
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@21.0.5
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@21.0.5
J 5383 c1 java.lang.Thread.run()V java.base@21.0.5 (23 bytes) @ 0x000001ff88d9a87c [0x000001ff88d9a660+0x000000000000021c]
v ~StubRoutines::call_stub 0x000001ff8f81100d

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000000

Workaround: Delete jdk-21\bin\msvcp140.dll

Comments

The language shown in the Forms runtime is the result of your NLS_LANG setting in the runtime environment configuration (e.g. default.env). However, Forms can only change the language of labels it knows about. For example, the ones you highlighted. The column titles, in your example are labels that you elected to use (or column names from the DB). As a result, we cannot change them automatically because we would have no idea if that is what you wanted to do.

You would need to programmatically change those if desired. For example:

SET_LOV_COLUMN_PROPERTY ('LOV1', 2, TITLE, 'Nombre del empleado (Spanish)');

In this example, I am running a form in English but want one column to show in Spanish. So, I use the code above to make that change at runtime.

xu meng Feb 12 2025

Thanks for your reply, your example has inspired me a bit, but it still can't meet my usage needs.
I'm confused about:
When my system language variable is Chinese, I want to make the LOV component's Query/Confirm/Cancel button appear separately in other languages. As shown in the image above.
I don't know, but you can understand what I mean.

xu meng Feb 12 2025

As shown on the picture you provided. "查询" is displayed when the Chinese environment variable is used, and "FIND" is displayed when it is used in English. At present, I want to make the button of its LOV component window display "FIND" separately in the Chinese system, but I have not found the method in the help document and the network.

As I mentioned, strings built into Forms like “Find”, “Ok”, “Cancel”, and others can be translated into the language you choose in the runtime environment using the NLS_LANG settings. Unfortunately, this cannot be changed after the application has been started. So if the app is started with for example, Chinese-Traditional it cannot later be changed to French while the form is running. This means that you must either configure your server to support multiple languages and create modules for each language. This is often the best approach. There are other ways that customers have used, but what I described here likely would require the smallest effort.

You did not mention which Forms version you are using and therefore I cannot point you to the documentation for that version. However, here is the link to the related documentation for Forms 14.1.2. The concepts are basically the same for earlier versions, although some minor improvements have been introduced in the latest release (14.1.2).

https://docs.oracle.com/en/middleware/developer-tools/forms/14.1.2/working-forms/enabling-language-detection.html

But again, for strings that do not natively belong to Forms (you created them) you would need to programmatically change them as necessary.

xu meng Feb 12 2025

OH! I will try to implement your plan first. Thank you for your patience. My Forms version is 11.1.2.

As you are likely aware, but I feel it necessary to mention in case you are not, Forms 11.1.2 was desupported many years ago. I recommend you consider upgrading to the latest Supported version in order to ensure that you can get the latest bug fixes (including security fixes), the latest features, and improvements like what I mentioned about language support and others.

Details can always be found on the Forms product page.

https://www.oracle.com/application-development/technologies/forms/forms.html

xu meng Feb 12 2025

Thank you for telling me this news. I will consider your suggestion carefully and refer to it later. Thank you for your answer.

1 - 7

Post Details

Added on Jan 7 2025
0 comments
172 views