Lỗi Java crash thường gặp khi chạy Minecraft hoặc app Java khác. Nguyên nhân chính: xung đột driver card màn hình với Java Environment.
Cách 1: Cập nhật driver Card màn hình (Quan trọng nhất)
- NVIDIA: GeForce Experience hoặc tải từ nvidia.com
- AMD: Radeon Software hoặc amd.com
- Intel: Intel Driver & Support Assistant
Update xong → Restart → test.
Cách 2: Cài lại hoàn toàn Java
- Win+R →
appwiz.cpl→ gỡ **tất cả** bản Java - Restart
- Tải Java mới nhất từ java.com → cài đặt → Restart
Cách 3: Clean Boot tìm phần mềm xung đột
- Win+R →
msconfig - Tab Services: tick "Hide all Microsoft services" → Disable all
- Tab Startup: Open Task Manager → Disable all
- Restart → nếu hết lỗi → bật từng service/startup để tìm thủ phạm
Cách 4: Sửa file WER (Windows Error Reporting)
- Mở file .wer tại:
C:\Users\(user)\AppData\Local\Microsoft\Windows\WER\ReportArchive\ - Mở bằng Notepad/Wordpad → tìm AppPath (đường dẫn java.exe gây lỗi)
- Chuột phải file java.exe đó → Properties → Compatibility tab
- Bỏ tick Compatibility mode → tick "Run this program in compatibility mode for" → chọn Windows version cũ hơn → OK
Cách 5: Dùng Java Web Start thay Blackboard Collaborate Launcher
Đối với file .collab: chuột phải → Open with → Chọn Java(TM) Web Start Launcher (tìm tại C:\Program Files\Java\jreXXX\bin\javaws.exe)
Cách 6: Chạy trong Safe Mode
Win 10: Shift+Restart → Troubleshoot → Advanced Options → Startup Settings → Restart → nhấn 4 (Safe Mode) hoặc 5 (Safe Mode with Networking). Test Java trong Safe Mode.
Cách 7: Cài lại Minecraft (Nếu lỗi khi chơi MC)
- Gỡ Minecraft qua
appwiz.cpl - Tải launcher mới từ minecraft.net → cài lại
Cách 8: Cấu hình Environment Variable _JAVA_OPTIONS
- Control Panel → System → Advanced System Settings → Advanced → Environment Variables
- System variables → New: Name:
_JAVA_OPTIONS, Value:-Xmx256M - OK tất cả → Restart
Cách 9: Dọn dẹp Java cũ bằng PowerShell Script
Chạy script PowerShell (Run as Admin) để xóa tự động các bản Java cũ, chỉ giữ bản mới nhất. (Script dài, xem bài gốc).
Cách 10: Xóa Java Cache
- Mở Java Control Panel (Win 10: Control Panel → Programs → Java)
- Tab General → Temporary Internet Files → Settings → Delete Files
- Tick tất cả → OK