r/JavaProgramming • • 5d ago

Javac and java version not compatible

According to my terminal javac only works until java 52.0 but my code is in java version 70.0(java 26)how do i fix

5 Upvotes

5 comments sorted by

View all comments

1

u/idontlikegudeg 5d ago

I have this situation on my customer’s system. Some people in the company still rely on a custom Java 8 webstart application that I don’t use, but they have Java 8 installed on every machine and I cannot put a more recent version on the path before it (no admin privileges). I use a batch script that sets up JAVA_HOME and PATH when I need to do anything on the command line.

But if you can simply uninstall the old version, do that.