apache / apache/netbeans

Impossible to build web app project with ant with binary format newer than java 8

Open
#7,935 1 comment 0 reactions 0 assignees View on GitHub
Ant Java EE/Jakarta EE kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 23

### What happened

error when try to build with binary format newer than java 8
```
Exception in thread "main" java.lang.IllegalArgumentException: PWC6309: Illegal compilerSourceVM: 17
at org.apache.jasper.JspC.setCompilerSourceVM(JspC.java:684)
at org.netbeans.modules.web.project.ant.JspC.main(JspC.java:55)
```

### Language / Project Type / NetBeans Component

Java web application with Ant

### How to reproduce

create new project and try to build with binary format > 8

### Did this work correctly in an earlier version?

Apache NetBeans 17

### Operating System

debian

### JDK

17

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start with the JspC.java entry point named in the stack trace, especially JspC.main and its compilerSourceVM handling. Reproduce the Ant Java web application build with binary format 17 on JDK 17, then verify that the build completes without the Illegal compilerSourceVM error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.