Code Monkey home page Code Monkey logo

lapis's Issues

Could not open settings generic class cache for settings file

日志如下:

`

在运行本程序之前, 请确保你已经安装 java.
请在下方输入版本号并回车以下载开发版本.
开发版本的版本号可以在以下链接中获取:
https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-core

输入版本号: 2.15.0-dev-105
注: 其中一个库下载耗时较长,请耐心等待

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not open settings generic class cache for settings file 'E:\mirai17_8\1\Lapis-main\settings.gradle' (C:\Users\Administrator.gradle\caches\7.5.1\scripts\f5aywg0zhth9sb62gucahm1jh).

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 64

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1s

若提示 BUILD SUCCESSFUL, 一键包已成功打包到 ./build/lapis 文件夹中.
若提示 BUILD FAILED, 可能是版本号输入错误或者网络问题.
按任意键退出`

QQ截图20230707152954

请问应该如何解决这个问题?谢谢

win2016运行setup.bat出错:不是内部或外部命令,也不是可运行的程序 或批处理文件。

在win2016服务器下部署lapris,双击运行setup.bat文件后出错,内容如下:
'开发版本的版本号可以在以下链接中获取:' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'version' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 '谙略?' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'ion' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 '籼崾?BUILD' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'D' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 '按任意键退出' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

QQ截图20230707151053

Could not find or load main class net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader

  • 环境:centos7、java11
  • 安装版本 mirai-2.15.0-dev-105
  • build成功但执行start脚本报错
  • log如下,谢谢大佬解答

[root@VM-0-11-centos Lapis-main]# ./setup.sh

在运行本程序之前, 请确保你已经安装 java.
请在下方输入版本号并回车以下载开发版本.
开发版本的版本号可以在以下链接中获取:
https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-core

输入版本号: 2.15.0-dev-105
注: 其中一个库下载耗时较长,请耐心等待

Downloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%

Welcome to Gradle 7.5.1!

Here are the highlights of this release:

  • Support for Java 18
  • Support for building with Groovy 4
  • Much more responsive continuous builds
  • Improved diagnostics for dependency resolution

For more details see https://docs.gradle.org/7.5.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m 17s
4 actionable tasks: 3 executed, 1 up-to-date

若提示 BUILD SUCCESSFUL, 一键包已成功打包到 ./build/lapis 文件夹中.
若提示 BUILD FAILED, 可能是版本号输入错误或者网络问题.
[root@VM-0-11-centos Lapis-main]# ./mirai/Start.Server.sh
-bash: ./mirai/Start.Server.sh: No such file or directory
[root@VM-0-11-centos Lapis-main]# ./build/mirai/Start.Server.sh
Error: Could not find or load main class net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
[root@VM-0-11-centos Lapis-main]# java -version
openjdk version "11.0.16" 2022-07-19 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.el7_9) (build 11.0.16+8-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.el7_9) (build 11.0.16+8-LTS, mixed mode, sharing)
[root@VM-0-11-centos Lapis-main]# ./build/mirai/Start.Server.sh
Error: Could not find or load main class net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
[root@VM-0-11-centos Lapis-main]# ./build/mirai/Start.Server.cmd
./build/mirai/Start.Server.cmd: line 1: @echo: command not found
./build/mirai/Start.Server.cmd: line 2: setLocal: command not found
./build/mirai/Start.Server.cmd: line 3: title: command not found
./build/mirai/Start.Server.cmd: line 8: fg: no job control
./build/mirai/Start.Server.cmd: line 11: syntax error near unexpected token (' ./build/mirai/Start.Server.cmd: line 11: if %EL% NEQ 0 ('
[root@VM-0-11-centos Lapis-main]# ./build/mirai/Start.Server.sh
Error: Could not find or load main class net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.