問題描述
我最近不得不遷移到一臺新機器并重新安裝了 Eclipse.目前,我需要從 xsd 生成 JAXB 類.我不太記得我安裝了什么,但在我的舊 Eclipse 中,我有選項 -rightclick-generate-jaxb 類.
I recently had to migrate to a new machine and re-installed Eclipse. At the moment, I need to generate JAXB classes from an xsd. I cannot quite remember what I installed, but in my old Eclipse I had the option -rightclick-generate-jaxb classes.
誰知道我必須安裝/插件才能找回它?
Who knows what I have to install/plug-in to get it back?
我正在考慮安裝 Dali,這似乎是正確的,但是我很確定我上次沒有安裝 Dali.和上次一樣,我還在構建路徑中包含了 jaxb jar,所以應該沒問題.
I was looking at installing Dali, which seems like it could be right, but I am pretty sure I did not install Dali last time. I also included the jaxb jars in my build path, as last time, so that should be ok.
我正在使用 Eclipse 3.6 和 Java SE 1.6.
I am using Eclipse 3.6 and Java SE 1.6.
推薦答案
解決這個問題的一個簡單方法 - 而不是擔心添加額外的插件或安裝 - 是安裝 Eclipse IDE for Java EE Developers而不是 Eclipse Classic(兩者都可以在 here 找到).這帶有 JAXB 支持,因此提供了 >Generate>Jaxb 類 選項.
A simple fix for this problem - rather than worrying about adding additional plugins or installs - is to install Eclipse IDE for Java EE Developers rather than Eclipse Classic (both to be found here). This comes with the JAXB support and therefore provides the >Generate>Jaxb classes option.
這篇關于如何獲得“Eclipse>Generate>Jaxb 類"?選擇回來?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!