如何在 Eclipse 中安装 Hibernate Tools?

发布于 2024-07-09 19:25:05 字数 329 浏览 14 评论 0原文

在 Eclipse 中将 Hibernate Tools 作为插件安装的正确方法是什么? Hibernate site 并没有真正给出任何说明。

查看 Hibernate Tools 二进制文件 HibernateTools-3.2.4.Beta1-R200810311334.zip,看来我可以将其解压缩到我的 eclipse 目录中。 我只是将其解压到我的 eclipse 目录中吗? 安装它似乎很麻烦。

What is the proper way to install Hibernate Tools in Eclipse as a plugin?
The Hibernate site doesn't really give any instructions.

Looking at the Hibernate Tools binary HibernateTools-3.2.4.Beta1-R200810311334.zip, it appears that I can just unzip this in my eclipse directory. Do I just unzip it in my eclipse directory? This seems like a hacky was to install it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

感悟人生的甜 2024-07-16 19:25:06

将插件和功能文件夹复制到 eclipse 后(例如 c:\program files\eclipse(或安装它的任何位置)。您将在那里看到功能和插件文件夹),您可以通过以下方式检查 hibernate 是否已安装帮助> 软件更新> 安装的软件。 如果 hibernate 未列出,请关闭 eclipse 并使用此命令“eclipse -clean”通过命令窗口再次启动它。

Once you have copied the plugins and features folder to eclipse (eg. c:\program files\eclipse (or whereever you installed it). You will see a features and plugins folder there already) you can check if hibernate has installed by going to Help > Software updates > installed software. If hibernate is not listed close eclipse and launch it again via a command window with this command "eclipse -clean".

小糖芽 2024-07-16 19:25:06

对于 Eclipse 插件,您只需解压缩它们并将文件夹放入 Eclipse\Plugins 目录中。 就那么简单。

For Eclipse plugins, you just unzip them and drop the folder in the Eclipse\Plugins directory. Simple as that.

过气美图社 2024-07-16 19:25:05

嗯,最方便、最安全的方法是在 Eclipse 软件更新中使用 JBoss 更新站点(帮助 -> 软件更新... -> 添加站点...):

JBoss 工具的最新稳定版本更新站点

在那里您可以找到 Hibernate 工具以及其他方便的 JBoss 插件。

Well, most convenient and safest way is to use JBoss update site within Eclipse software updates (Help -> Software Updates... -> Add Site...):

The latest stable release update site for JBoss Tools

There you can find Hibernate tools together with other handy JBoss plugins.

路还长,别太狂 2024-07-16 19:25:05

在下面的 URL 中找到 hibernate 插件的稳定版本(用于自动更新的 Zip 或 URL)。
http://www.jboss.org/tools/download

不过,不要安装所有内容。 您只需要:

  1. 中的整个所有 JBoss Tools 3.2.0 部分
  2. Hibernate Tools (HT)
  3. 应用程序开发 HT 来自数据服务
  4. JBoss Maven Hibernate 配置器来自Maven 支持
  5. HT来自Web 和 Java EE 开发< /strong>

仅此而已!

2013 年,您可能会使用最新版本的 Eclipse 和 Hibernate。 对于 Eclipse-4.2.2。 您需要的 JBoss Tools 4.0:

  1. 来自 Abridged JBoss Tools 4.0
  2. Application 中的 JBoss Hibenate Tools 部分 Hibernate Tools (HT)开发
  3. HT 来自 JBoss Data Services
  4. JBoss Maven Hibernate 配置器 来自 Maven 支持
  5. HT 来自 Web 和 Java EE 开发

那么您就可以开始了!

Find the stable version of the hibernate plugin (Zip or URL for auto update) in the below URL.
http://www.jboss.org/tools/download

Do not install everything though. You just need:

  1. The entire All JBoss Tools 3.2.0 section
  2. Hibernate Tools (HT) from Application Development
  3. HT from Data Services
  4. JBoss Maven Hibernate Configurator from Maven Support and
  5. HT from Web and Java EE Development

That's all!

In 2013, you will be probably using the latest versions of Eclipse and Hibernate. For Eclipse-4.2.2. and JBoss Tools 4.0 you need:

  1. From the Abridged JBoss Tools 4.0, the JBoss Hibenate Tools section
  2. Hibernate Tools (HT) from Application Development
  3. HT from JBoss Data Services
  4. JBoss Maven Hibernate Configurator from Maven Support and
  5. HT from Web and Java EE Development

Then you are ready to go!

伴梦长久 2024-07-16 19:25:05

Eclipse Indigo 说明:

安装后,单击 Window -> 显示视图-> 其他。 弹出一个新窗口。 单击文件夹“Hibernate”并选择“Hibernate 配置”以设置数据库连接。 可以使用现有的 Hiberbate 属性文件或创建 JDBC 连接来设置新连接。

设置数据库连接后,单击 Ping 测试一切是否正确。

最后,单击“打开 HQL 编辑器”按钮(顶部 Hibernate 配置菜单上的第三个按钮)来运行 HQL 查询。

Instructions for Eclipse Indigo:

Once installed click on Window -> Show View -> Others. A new window pops up. Click on folder Hibernate and select Hibernate Configurations to setup a DB connection. It is possible to setup a new connection using an existing Hiberbate properties file or creating a JDBC connection.

Once setup your DB connection click on Ping to test everything is correct.

Lastly, click on the Open HQL Editor button (third button on the top Hibernate Configurations menu) to run a HQL query.

2024-07-16 19:25:05

在 Eclipse Neon (4.6) 上安装 Hibernate Tools

转到菜单 Help > 安装新软件并单击添加按钮。

使用JBoss Hibernate之类的名称作为名称,并插入以下 URL 作为位置:

http://download.jboss.org/jbosstools/neon/stable/updates/ 

等待产品树加载,然后展开 JBoss Web 和 Java EE Development 文件夹并选择Hibernate Tools 产品并单击Next > 按钮。 然后继续接受所有后续问题、许可证等。

安装完成后,根据需要重新启动 Eclipse。 之后,要打开 Hibernate 透视图,请转到菜单 Window > 透视 > 开放视角 > 其他并搜索Hibernate

Installing Hibernate Tools on Eclipse Neon (4.6)

Go to the menu Help > Install New Software and click the Add button.

Use something like JBoss Hibernate for the name and insert the following URL for the location:

http://download.jboss.org/jbosstools/neon/stable/updates/ 

Wait for the product tree to load and then expand the JBoss Web and Java EE Development folder and select the Hibernate Tools product and click the Next > button. Then follow on accepting all the subsequent questions, licence, etc.

When the installation is finished, restart Eclipse as required. After that, to open the Hibernate perspective go to the menu Window > Perspective > Open Perspective > Others and search for Hibernate.

伪心 2024-07-16 19:25:05

由于它是针对 Ganymede (eclipse 3.4) 的,我建议将 zip 解压到 HibernateTools-3.2.4.Beta1-R20081031133 目录中的 dropins 中,该目录是在存档名称之后创建的。

完成后,在 [eclipse\dropins\HibernateTools-3.2.4.Beta1-R20081031133] 中创建一个“eclipse”目录,您将在其中移动在提取时创建的插件和功能目录档案的文件。

[eclipse\dropins\HibernateTools-3.2.4.Beta1-R20081031133\eclipse] 中添加 .exclipseextension:

name=QuickRex
id=org.hibernate.eclipse
version=3.2.4b1

因此:

eclipse
    dropins
         HibernateTools-3.2.4.Beta1-R20081031133
             eclipse
                 .eclipseextension
                 features
                 plugins

重新启动 eclipse,应该会检测到插件 Hibernate。

如果您安装另一个 eclipse,只需将 dropins 目录的内容复制到新的 eclipse\dropins 即可再次检测到您的插件集。

Since it is for Ganymede (eclipse 3.4), I would advise to uncompress the zip in the dropins in the HibernateTools-3.2.4.Beta1-R20081031133 directory created after the name of the archive.

Once it is done, create in the [eclipse\dropins\HibernateTools-3.2.4.Beta1-R20081031133] an 'eclipse' directory, in which you will move the plugins and features directories creating at the extraction of the files of the archive.

Add a .exclipseextension in [eclipse\dropins\HibernateTools-3.2.4.Beta1-R20081031133\eclipse]:

name=QuickRex
id=org.hibernate.eclipse
version=3.2.4b1

So:

eclipse
    dropins
         HibernateTools-3.2.4.Beta1-R20081031133
             eclipse
                 .eclipseextension
                 features
                 plugins

Relaunch eclipse and the plugin Hibernate should be detected.

If you install another eclipse, just copy the content of your dropins directory to the new eclipse\dropins and your set of plugins will be detected again.

于我来说 2024-07-16 19:25:05

方法一 在线Hibernate工具安装


在Eclipse IDE中,菜单栏选择帮助>> 安装新软件...输入 Eclipse 更新站点 URL“download.jboss.org/jbosstools/updates/stable/Eclipse_Version

Eclipse 安装新软件 - Hibernate

选择工具并点击下一步。不要选择所有工具;它会安装所有不需要的工具。我们只需要 hibernate 工具。

接受许可协议并点击完成。它需要几分钟才能完成安装过程

安装过程

安装完成后,重新启动eclipse来验证Hibernate工具是否安装正确,我们在Eclipse中查看Hibernate Perspective->>Window->>Open视角->>其他

方法-2 离线安装


如果您没有互联网连接,并且想要离线方法在eclipse中添加hibernate工具。 要安装 Hibernate Tools,请解压 HibernateTools-5.X.zip 文件将features文件夹内的所有文件移动到eclipse安装目录的features文件夹中,并将plugins文件夹内的所有文件移动到ecilpse安装目录的plugins文件夹中。

重启后,进入Eclipse->>Window->>Open Perspective->>Other,出现如下对话框,选择Hibernate,点击Ok强>按钮。

就是这样。 我们在 Eclipse 中成功安装了 JBoss Hibernate Tools。 :) 现在快乐编码

参考资料:

Method-1 Online Hibernate Tool Installation


In Eclipse IDE, menu bar, select Help >> Install New Software … put the Eclipse update site URL "download.jboss.org/jbosstools/updates/stable/Eclipse_Version

Eclipse Install New Software - Hibernate

Select the tool and click on Next. Do not select all the tools; it will install all the unnecessary tools. We just need hibernate tools.

Accept licence agreement and click finish.It will take some minutes to complete installation process.

Installation Process

After installation, restart the eclipse to verify whether Hibernate tools is installed properly,we will look at Hibernate Perspective in Eclipse->>Window->>Open Perspective->>Other

Method-2 Offline Installation


If you don’t have the internet connection and want the offline method to add hibernate tools in eclipse. To install the Hibernate Tools, extract the HibernateTools-5.X.zip file and move all the files inside the features folder into the features folder of the eclipse installation directory and move all the files inside the plugins folder into the plugins folder of the ecilpse installation directory.

After restart, Go to Eclipse->>Window->>Open Perspective->>Other, the following dialog box appears, select Hibernate and click the Ok button.

Check Eclipse Perspective

That’s it . We successfully installed JBoss Hibernate Tools in Eclipse. :) now Happy Coding

References :

浅忆 2024-07-16 19:25:05

菜单帮助> 安装新软件

使用此网址:http://download.jboss.org/jbosstools/updates/stable /

Menu Help > Install new software

Use this url : http://download.jboss.org/jbosstools/updates/stable/

浮生面具三千个 2024-07-16 19:25:05

我在 Windows 7 64 位上运行 Eclipse Indigo 64 位,并且使用 JBoss Tools 3.3.X 最新下载时不断出现与 Maven 和其他插件相关的缺失依赖项错误。 这是链接

因此,我选择只安装 Hibernate Tools,无需其他任何东西,只需在 Eclipse 中的安装软件对话框顶部输入“hibernate”即可。 只显示了 4 个项目,所以这就是我安装的全部。 它工作得很好,没有任何问题。 这是我的教程用于在多次尝试失败后正确安装。

我不知道这是否是因为已经安装了很多插件,或者这是否是最好的解决方案,但我想我会与大家分享。

I'm running Eclipse Indigo 64 bit on Windows 7 64 bit and I kept getting missing dependency errors associated with Maven and other plugins using the JBoss Tools 3.3.X latest download. Here is the link.

So, I opted to only install Hibernate Tools with nothing else by typing in "hibernate" at the top of the install software dialog in eclipse. Only 4 items showed up, so that is all I installed. It worked fine with no problems. Here is the tutorial that I used to get it installed properly after several failed attempts.

I don't know if part of this was due to having a lot of plugins already installed or if this is the best solution or not, but I thought I'd share it with everyone.

情泪▽动烟 2024-07-16 19:25:05

解压 zip HibernateTools-3.2.4.Beta1-R20081031133
后来在日食中
--> 菜单帮助-> 更新 Sofwate -> 添加站点-> 本地添加,并选择解压文件夹自动解压安装

uncompress the zip HibernateTools-3.2.4.Beta1-R20081031133
later in eclipse
--> menu Help -> Update Sofwate -> add site -> local add, and select de folder uncompress an install automatic

傲性难收 2024-07-16 19:25:05

我一生都无法让“下一步”或“完成”按钮不变成灰色

这是 UI 中的 Eclipse 痛苦。 如果您之前取消选中某些组件,因为它们具有破坏的依赖关系,则会阻止许可证。 您必须在第一步中取消选择它们。

请注意,避免使用 Eclipse 的更新功能,它会破坏我的所有插件,我必须删除我的 ./eclipse 文件夹并重新安装所有插件。

I can't for the life of me get the Next or Finish button to not go grey

This is the eclipse pain in the ass UI. If you unckecked previously some components because they have broken dependencies, it blocks in the license. You have to unselect them in the first step.

Note that avoid to use the update feature of Eclipse it broke all my plugin, I had to delete my ./eclipse folder and reinstall all.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文