logi6502 icon indicating copy to clipboard operation
logi6502 copied to clipboard

Not compilng

Open irtygo opened this issue 1 year ago • 4 comments

javac: invalid flag: --class-path

irtygo avatar Sep 15 '24 10:09 irtygo

I'm not able to reproduce that on my end. What is the output of javac --version on your system?

SolraBizna avatar Sep 19 '24 14:09 SolraBizna

javac 23

I'm not able to reproduce that on my end. What is the output of javac --version on your system?

irtygo avatar Jan 24 '25 08:01 irtygo

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

irtygo avatar Jan 24 '25 09:01 irtygo

Here are a few things to try:

  • Add --release 8 to every line of GNUmakefile that starts with @javac
  • Install and use an older JDK (version 17 works for me)

SolraBizna avatar Jan 24 '25 12:01 SolraBizna