I am trying to run a .bat file that will decompile code so i can work on it in eclipse. however, when i run the file it says, "error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later." i have searched the entire web and have no idea how to change my target option and source option. I am using java 18, im double clicking the batch file and when i type java -version and javac -verison it returns 18.0.1 if that helps.
EDIT:
i found a command to do this, javac -source 18 -target 18 -bootclasspath C:\Program Files\Java\jdk-18.0.1\lib. the command wont work in program files tho, because of the space. any help here?