Not compilng
javac: invalid flag: --class-path
I'm not able to reproduce that on my end. What is the output of javac --version on your system?
javac 23
I'm not able to reproduce that on my end. What is the output of
javac --versionon your system?
I git cloned it again and now it says Preprocessing classic/src/name/bizna/logi6502/AbstractCore.java... Preprocessing classic/src/name/bizna/logi6502/Components.java... Preprocessing classic/src/name/bizna/logi6502/CoreState.java... Preprocessing classic/src/name/bizna/logi6502/Logi6502.java... Preprocessing classic/src/name/bizna/logi6502/Logi6502Expert.java... Preprocessing classic/src/name/bizna/logi6502/Logi6502Simple.java... Preprocessing classic/src/name/bizna/logi6502/Logi6502_PDIP40.java... Preprocessing classic/src/name/bizna/logi6502/PortInfo.java... Preprocessing classic/src/name/bizna/logi6502/W65C02.java... Compiling logi6502-classic.jar... Creating logi6502-classic.jar... warning: [options] bootstrap class path is not set in conjunction with -source 7 not setting the bootstrap class path may lead to class files that cannot run on JDK 8 --release 7 is recommended instead of -source 7 -target 7 because it sets the bootstrap class path automatically error: Source option 7 is no longer supported. Use 8 or later. error: Target option 7 is no longer supported. Use 8 or later. make: *** [GNUmakefile:38: logi6502-classic.jar] Error 2
Here are a few things to try:
- Add
--release 8to every line ofGNUmakefilethat starts with@javac - Install and use an older JDK (version 17 works for me)