0

I want to run a bot on windows. I'm trying to run sbt in cmd. I installed sbt and java 22 x64 MSI Installer. I ran sbt but i keep getting an error. I think maybe this has to do with java so i installed using java x64 Installer. So, what's the problem?

pg 1

pg2

pg 3

C:\Users\lilys\Downloads\resy-booking-bot-master>sbt
[info] welcome to sbt 1.7.1 (Oracle Corporation Java 22.0.1)
error:
  bad constant pool index: 0 at pos: 49176
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.12.16
    compiler version: version 2.12.16
  reconstructed args: -classpath C:\Users\lilys\.sbt\boot\scala-2.12.16\lib\scala-library.jar -Yrangepos

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

error:
  bad constant pool index: 0 at pos: 49176
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.12.16
    compiler version: version 2.12.16
  reconstructed args: -classpath C:\Users\lilys\.sbt\boot\scala-2.12.16\lib\scala-library.jar -Yrangepos

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

Exception in thread "sbt-parser-init-thread" java.lang.ExceptionInInitializerError
        at sbt.internal.parser.SbtParserInit$$anon$2.run(SbtParser.scala:191)
Caused by: scala.reflect.internal.FatalError:
  bad constant pool index: 0 at pos: 49176
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.12.16
    compiler version: version 2.12.16
  reconstructed args: -classpath C:\Users\lilys\.sbt\boot\scala-2.12.16\lib\scala-library.jar -Yrangepos

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

[error] java.lang.NoClassDefFoundError: Could not initialize class sbt.internal.parser.SbtParser$
[error] Use 'last' for the full log.
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)
2
  • It’s having problems parsing whatever file it’s trying to parse
    – Ramhound
    Commented 7 hours ago
  • how do i solve that?
    – Lily White
    Commented 6 hours ago

0

You must log in to answer this question.

Browse other questions tagged .