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分享|一款Coze、Dify类开源AI应用超级智能体快速构建工具:FastbuildAI
人工智能·开源·prompt·github·aigc·ai编程·ai-native
喂完待续1 小时前
【Tech Arch】Hive技术解析:大数据仓库的SQL桥梁
大数据·数据仓库·hive·hadoop·sql·apache
我是哪吒1 小时前
分布式微服务系统架构第165集:阿里,字节,腾讯架构经验汇总
后端·面试·github
SelectDB2 小时前
5000+ 中大型企业首选的 Doris,在稳定性的提升上究竟花了多大的功夫?
大数据·数据库·apache
最初的↘那颗心2 小时前
Flink Stream API 源码走读 - window 和 sum
大数据·hadoop·flink·源码·实时计算·窗口函数
GoGeekBaird3 小时前
GoHumanLoopHub开源上线,开启Agent人际协作新方式
人工智能·后端·github
Yusei_05234 小时前
迅速掌握Git通用指令
大数据·git·elasticsearch
一只栖枝10 小时前
华为 HCIE 大数据认证中 Linux 命令行的运用及价值
大数据·linux·运维·华为·华为认证·hcie·it
草梅友仁14 小时前
草梅 Auth 1.4.0 发布与 ESLint v9 更新 | 2025 年第 33 周草梅周报
vue.js·github·nuxt.js
喂完待续14 小时前
Apache Hudi:数据湖的实时革命
大数据·数据仓库·分布式·架构·apache·数据库架构