Running application in a previous Windows version
I have been trying to figure out how to run a java program in compatibility mode for a previous version of Windows. Currently I am on Windows 10 but the java project only supports Window 7 and parts of it fail outside of that version. The project also requires JRE 1.6.0_21.
I have tried manually setting compatibility on java.exe (right click -> properties -> compatibility ) but it creates this error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9172b91b2, pid=8208, tid=10176
#
# JRE version: 6.0_21-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 )
# Problematic frame:
# C [ntdll.dll+0xa91b2]
#
# An error report file with more information is saved as:
Picked up _JAVA_OPTIONS: -Xmx512m
Disconnected from the target VM, address: '127.0.0.1:54825', transport: 'socket'
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
I am very new to IntelliJ IDEA and Java itself so I was just looking to see if there is a better approach and perhaps something I overlooked.
Thanks!
Please sign in to leave a comment.
Try a more recent Java build. The problem has nothing to do with IntelliJ IDEA.
Using a newer version of Java completely breaks the application I am trying to work on. All I was trying to ask is if there is a way to run the application in 'compatibility' mode so that the project and Java files run as windows 7. Wasn't sure if there was a magical argument/setting I was missing.
Compatibility mode on Windows can be set to java.exe that is used to run your application. Not sure how it would help in this case.
You are using Java 6u21 which is very old, you should at least try 6u45 version if your app doesn't run on 1.7 or later versions.
Yes it is a legacy project I am attempting to work on. Setting compatibility mode gives me the error above.
I do have a compiled version of the project and if I put compatibility mode on javaw.exe it runs fine on Windows 10 (outside of IntelliJ).
I suppose I will have to get a copy of Windows 7 and work on it that way.