1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[JBoss] JsonBuilder not found with provided dependency javax javaee-api 8

Discussão em 'StackOverflow' iniciado por Stack, Setembro 13, 2021.

  1. Stack

    Stack Membro Participativo

    Environment:

    • Jboss 7.2
    • java 11
    • maven

    I am trying to add the class javax.json.bind.JsonBuilder but when it compiles it says it cannot find symbol.

    On Jboss 7.2 modules directory there is a jar javax.json.bind-api-1.0.0.redhat-1.jar that contains JsonBuilder.java.

    Any idea where the problem is?

    Error

    Ping.java:[3,23] cannot find symbol
    [ERROR] symbol: class JsonBuilder
    [ERROR] location: package javax.json.bind


    pom.xml

    <dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>8.0</version>
    <scope>provided</scope>
    </dependency>

    Continue reading...

Compartilhe esta Página