Hi, I've confirmed that SimplyHTML crashes on both Ubuntu 24.04.4 and
the current Ubuntu 26.04.1.

To investigate further, I downloaded the source from the project's own
repository rather than the Debian source package. I was able to compile
and run it successfully using both Java 11 via mise and the Java 17
package available in Ubuntu. The project is configured to target Java 8
and uses an obsolete Gradle setup.

However, the more relevant issue appears to be that the upstream version
currently used by the package is quite old. The upstream discussion
already points to upgrading the package to the newer version I used for
testing, which no longer exhibits this issue:

https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=1104088&pow_referer=https%3A%2F%2Fbugs.launchpad.net%2F#29

In the meantime, you can successfully compile the project from
https://github.com/freeplane/shtml/. The only caveat is that you need
Gradle 8.

The Gradle setup doesn't have a `run` task, so I bypassed that by adding
this task to the Gradle configuration:

```groovy
tasks.register('printRuntimeClasspath') {
    doLast {
        println sourceSets.main.runtimeClasspath.asPath
    }
}
```

Then run:

```bash
gradle build
java -cp "$(gradle -q printRuntimeClasspath)" com.lightdev.app.shtm.App
```


** Bug watch added: Debian Bug tracker #1104088
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104088

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165181

Title:
  simplyhtml crashes with java.lang.NullPointerException

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/simplyhtml/+bug/2165181/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to