BigData File Viewer报错

文章目录

背景回顾

博主在做项目是,需要查看parquet文件,考虑到没有现成的exe程序或在线解析网站,就找到了这个工具BigDataFileViewer
github仓库地址
gitee仓库地址

但是在按教程步骤进行是发生了报错。报错信息如下

python 复制代码
[INFO]
[INFO] --- clean:3.1.0:clean (default-clean) @ BigdataFileViewer ---
[INFO]
[INFO] --- resources:3.1.0:resources (default-resources) @ BigdataFileViewer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- compiler:3.8.1:compile (default-compile) @ BigdataFileViewer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 33 source files to D:\Program Files (x86)\BigDataFileViewer\bigdata-file-viewer\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------

原因解析

然而在仓库链接内pom.xml中依赖项中包含两个版本的JavaFx依赖

xml 复制代码
        <dependency>
          <groupId>org.openjfx</groupId>
          <artifactId>javafx-controls</artifactId>
          <version>11.0.2</version>
        </dependency>
        <dependency>
          <groupId>org.openjfx</groupId>
          <artifactId>javafx-media</artifactId>
          <version>17.0.10</version>
        </dependency>
        <dependency>
          <groupId>org.openjfx</groupId>
          <artifactId>javafx-graphics</artifactId>
          <version>11</version>
        </dependency>

因此需要在mvn构建时指定系统java版本号

解决方法

在命令行窗口执行

bash 复制代码
C:\Users\Administrator>javac -version
javac 17.0.12

查看java版本,根据自己的版本选择新的mvn构建方式

此处博主的java版本为17.0.12,因此执行指令

bash 复制代码
mvn clean install -Pjava17

顺利解决报错!

此处附上成功截图:

希望大家通过教程顺利解决自己的问题!

相关推荐
互联网江湖1 小时前
快手营收利润双增,可灵AI会不会成为第二个Seedance?
大数据·人工智能
KANGBboy1 小时前
ES 父子索引使用
大数据·elasticsearch·搜索引擎
pp起床2 小时前
Part02:基本概念以及基本要素
大数据·人工智能·算法
Gauss松鼠会2 小时前
【GaussDB】LLVM技术在GaussDB等数据库中的应用
大数据·数据库·架构·数据库开发·gaussdb·llvm
易天ETU3 小时前
100G BIDI 80km ZR4光模块:长距离传输的革新力量
大数据·光模块·易天光通信
七夜zippoe3 小时前
OpenClaw 接入 Discord:从零开始
大数据·人工智能·microsoft·discord·openclaw
逛逛GitHub3 小时前
7 个最近 GitHub 上火火火的开源项目,推荐一哈。
github
北京软秦科技有限公司3 小时前
AI报告审核守护公共卫生安全:IACheck助力公共纺织品卫生检测报告合规与健康保障
大数据·人工智能·安全
__雨夜星辰__4 小时前
什么是 Git 与 Git※hub(※Git※hub加※速访※问教程)
git·github
子夜江寒4 小时前
GitHub入门协作
github