I have a program that cannot run as long as Java 8 is installed on my system. Can I specify which version of java that should run that specific .jar file, so I don't have to uninstall it each time I'm going to run the program?
Asked
Active
Viewed 123 times
-1
-
2`I have a program that cannot run as long as Java 8 is installed on my system` I find this very hard to believe that having Java 8 any where on a system could cause, a Java 6 or 7 program to not run. – Peter Lawrey Feb 04 '15 at 11:37
-
It also shouldn´t cause any Error Messages until it hits a part with unknown classes, expression or methods for prior Java Versions. – SomeJavaGuy Feb 04 '15 at 11:40
-
@PeterLawrey It does. I'll post a screenshot when I get to the computer. – Daniel Kvist Feb 04 '15 at 12:07
1 Answers
1
you could check the Java Version at the start of your main class and exit it if a version lower then 1.8 is installed.
take a look here Getting Java version at runtime

Community
- 1
- 1

SomeJavaGuy
- 7,307
- 2
- 21
- 33
-
-
@KevinEsche I have not programmed the program. It's a game launcher (ATLauncher) which launches different minecraft modpacks. – Daniel Kvist Feb 05 '15 at 08:25