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

顺利解决报错!

此处附上成功截图:

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

相关推荐
阿里云大数据AI技术1 小时前
StarRocks x Fluss x Paimon湖流一体方案:构建秒级响应、湖流一体的实时数据引擎
大数据·人工智能
Databend2 小时前
Agent 轨迹分析与归因的数据工程实践
大数据·数据库·agent
喵个咪3 小时前
Go Wind UBA 拆解系列 - 架构总览:三服务、数据流与契约优先
大数据·后端·go
喵个咪3 小时前
Go Wind UBA 拆解系列 - 多租户与安全:两套隔离机制的边界
大数据·后端·go
喵个咪3 小时前
Go Wind UBA 拆解系列 - OLAP 与 SQL 硬核:25 个分析模型怎么落地
大数据·后端·go
喵个咪3 小时前
Go Wind UBA 拆解系列 - SDK 与采集层:从浏览器到 Kafka
大数据·后端·go
OpenTiny社区5 小时前
从零开发 AI 聊天页要两周?试试这款 Vue3 垂直对话组件库 TinyRobot,直接开箱即用
前端·vue.js·github
逛逛GitHub5 小时前
2 万多 Star!Google 开源了这个神级 GitHub 项目。
github
逛逛GitHub6 小时前
免费 Token 烧掉 5 万亿之后,他们出了个一站式创作平台。
github
QCC产品中心7 小时前
MiniMax Agent 接入实测:企业查询、股权穿透与 UBO 识别(附 Prompt 模板)
大数据·mcp·金融/非金融