Tổng hợp lỗi java version is out of date

Các bạn có thể tham gia nhiều Khóa lập trình với học phí hấp dẫn và bài học phong phú khác tại đây: Link hơn 500 khóa

1. Bấm chuộc phải vào biểu tượng Computer/ chọn Properties

2. Một cửa sổ mới hiện lên, chúng ta chọn Advanced System Settings

3. Cửa sổ System Properties sẽ hiển thị ra, chúng ta vào tab Advanced, click chọn button Environment Variables…Cửa sổ Environment variables sẽ hiển thị như hình bên dưới:

5. Trong mục System variables, click chọn button New.

Mục Variable name, chúng ta nhập vào biến JAVA_HOME

Mục Variable value, chúng ta copy đường dẫn cài đặt JDK vào đây, trong ví dụ này thì JDK được cài đặt như hình minh họa. Tức là nếu máy của bạn cài JDK ở đâu thì copy paste đường dẫn đó vào mục này:

Sau khi chọn OK, bạn quan sát trong vùng System Variables, biến JAVA_HOME và giá trị của nó sẽ xuất hiện như hình minh họa bên dưới:

5. Bước tiếp theo, các bạn tìm tới biến Path trong mục System variables, click chọn Edit:

Trong mục Variable value, các bạn di chuyển tới cuối, nhập vào các giá trị như hình minh họa : %JAVA_HOME%\bin;.;

6. Kiểm tra lại cấu hình có chính xác hay không:

Để kiểm tra xem máy tính của bạn đang cài JDK version bao nhiêu, vào Start/ Run. Hoặc gõ tổ hợp phím Windows+R để hiển thị cửa sổ Run, trong cửa sổ này các bạn gõ vào lệnh cmd rồi nhấn phím Enter:

We have Java Runtime Environment 1.7.0_45 installed on our pcs, we are seeing "Your Java version is out of date"

How to supress ?

Answers [3]

Assuming it is Windows, I use the following setting;

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 - See more at: //www.itninja.com/question/java-runtime-environment-6-update-14-disable-updates

sthash.QfEqtu8z.dpuf

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 - See more at: //www.itninja.com/question/java-runtime-environment-6-update-14-disable-updates

sthash.QfEqtu8z.dpuf

Start here to learn how the deployment.properties file works:

//docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/properties.html

You'll want to edit your deployment.properties file to include the line

deployment.expiration.check.enabled=false

I deploy the config and properties file using smart labels to target the machines and then a script to push the 2 files out to those machines. Works like a charm.

Try "setx deployment.expiration.check.enabled false /m"

This will create an environment variable to suppress the update checks which is being initiated by application exe itself.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Chủ Đề