redhat-developer / redhat-developer/vscode-java

LinkageError occurred while loading main class Jobship java.lang.UnsupportedClassVersionError: Preview features are not enabled for Jobship (class file version 60.65535). Try running with '--enable-preview'

未关闭
#2,013 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

compile
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

[provide a description of the issue]

Environment
  • Operating System: windows 10
  • JDK version:16.0.1
  • Visual Studio Code version: 1.57.1
  • Java extension version:
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error]
Please attach logs

Current Result Linkage Error will only run with --enable-preview it is a jar file
Expected Result : it should run the program
Additional Information;

I'm having issue with my jar file of which I want to create a .exe file but my jar file won't open directly i have to run the command every time I want to open it
and hence due to this exe file also won't open .

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未提供源文件、测试、日志或示例项目,并且 issue 模板指示应将 Java 运行或调试问题提交到 vscode-java-debug。首先使用 Windows 10、JDK 16.0.1 以及所提供的 jar,在带有和不带有 --enable-preview 的情况下分别在那里验证该问题。完成的要求是提供一份可复现的报告,其中定义了组件和预期行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
devtools
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
10/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。