You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "Brad K." <ze...@gmail.com> on 2022/01/20 16:57:44 UTC
NetBeans 12.6 / Oracle JDK 11.0.14 LTS / JAX-B Binding
Hello --
1. New Project -> Java with Maven
2. Copy Primer.xsd from here
(https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling)
3. File -> New -> JAX-B Binding
4. Binding name: Primer,
file: navigate to file in ${project}/xsd/Primer.xsd
package: primer
5. Click finish. Ever so briefly see a progress bar that immediately
disappears and nothing happens.
No error messages, no exceptions. Click "Help" and get nothing.
Is there something I need to do to enable the JAX-B Binding stuff?
V/r,
BK
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: NetBeans 12.6 / Oracle JDK 11.0.14 LTS / JAX-B Binding
Posted by "Brad K." <ze...@gmail.com>.
Okay, thanks. I knew that JavaFX had been separated from the baseline
JDK, but I didn't realize how many other implementations have been
removed that used to be built-in. Definitely took me down a rabbit hole.
Ultimately, I downloaded the jaxb-ri .zip file and unzipped/installed it
locally and added it to my Windows PATH and stuff started to work. A few
pom.xml revisions later, I could compile the .xsd into JAX-B objects.
Thanks for the pointer to get me started.
V/r,
BK
On 1/20/2022 12:09 PM, Mark Eggers wrote:
> BK,
>
> On 1/20/2022 8:57 AM, Brad K. wrote:
>> Hello --
>>
>> 1. New Project -> Java with Maven
>> 2. Copy Primer.xsd from here
>> (https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling)
>>
>> 3. File -> New -> JAX-B Binding
>> 4. Binding name: Primer,
>> file: navigate to file in ${project}/xsd/Primer.xsd
>> package: primer
>> 5. Click finish. Ever so briefly see a progress bar that immediately
>> disappears and nothing happens.
>>
>> No error messages, no exceptions. Click "Help" and get nothing.
>>
>> Is there something I need to do to enable the JAX-B Binding stuff?
>>
>> V/r,
>>
>> BK
>
> Those classes are no longer in the JDK/JRE (along with activation).
> You'll need at least the following in your pom.xml:
>
> <!-- java 11 removes a bunch of stuff -->
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-core</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>javax.activation</groupId>
> <artifactId>activation</artifactId>
> <version>1.1.1</version>
> </dependency>
>
> Update to the latest versions as necessary.
>
> . . . . just my two cents
> /mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: NetBeans 12.6 / Oracle JDK 11.0.14 LTS / JAX-B Binding
Posted by Mark Eggers <it...@yahoo.com.INVALID>.
BK,
On 1/20/2022 8:57 AM, Brad K. wrote:
> Hello --
>
> 1. New Project -> Java with Maven
> 2. Copy Primer.xsd from here
> (https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling)
>
> 3. File -> New -> JAX-B Binding
> 4. Binding name: Primer,
> file: navigate to file in ${project}/xsd/Primer.xsd
> package: primer
> 5. Click finish. Ever so briefly see a progress bar that immediately
> disappears and nothing happens.
>
> No error messages, no exceptions. Click "Help" and get nothing.
>
> Is there something I need to do to enable the JAX-B Binding stuff?
>
> V/r,
>
> BK
Those classes are no longer in the JDK/JRE (along with activation).
You'll need at least the following in your pom.xml:
<!-- java 11 removes a bunch of stuff -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
Update to the latest versions as necessary.
. . . . just my two cents
/mde/