Skip to content

Windows BasicStroke on later Java versions #187

Open

Description

@jbfaden

I notice Java 17 on Windows can't use BasicStroke, throwing a runtime error about a class it can't find. This is not an issue with the .exe made by Install4J, which uses Java 8.

Activity

  1. jbfaden commented on Sep 5, 2026

    @jbfaden
    MemberAuthor

    Unfortunately I couldn't get this to show with a simpler example. See https://github.com/autoplot/dev/blob/master/bugs/ghdas2/0187/basicStroke.jy

  2. jbfaden commented on Sep 22, 2026

    @jbfaden
    MemberAuthor

    ChatGPT pointed out that

    g.stroke= BasicStroke(3)
    

    uses reflection, while

    g.setStroke( BasicStroke(3) )
    

    does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions