如果我有 Eclipse 是否需要安装 Java SDK [英] Do I need to install Java SDK if I have eclipse

查看:24
本文介绍了如果我有 Eclipse 是否需要安装 Java SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Eclipse 2 周了,所有程序都运行良好.

I have been using Eclipse for 2 weeks and all programs are working fine.

但是我发现我并没有专门安装Java SDK.

But I have realized that I have not specifically installed Java SDK.

是正常的还是Eclipse有自己的编译器?

Is it normal or does Eclipse have its own compiler?

我需要测试 JDBC MySQL 连接器,现在我不知道从哪里复制该文件,因为在我的:

I need to test the JDBC MySQL connector and now I don't know where to copy that file because in my:

C:/programfiles/java

我只有一个目录是 JRE 6.

I have only one directory that is JRE 6.

推荐答案

是的,你说得对.Eclipse 有自己的编译器,因此如果您使用 Eclipse,则不需要 JDK.

Yes you're right. Eclipse has its own compiler so you don't need JDK if you are working with Eclipse.

有些案例/插件仅适用于 JDK,例如 Maven.因此,如果您打算使用 Maven(从控制台或从 Eclipse),您将需要 下载JDK.

There is some cases/plugins that are only working with JDK such as Maven. So if you are planning to use Maven (either from Console or from Eclipse) you will need to download JDK.

对于您的 mysql 连接器,通常的做法是将 jar 复制到您的项目目录(或者可能在 lib 目录下)并将其添加到构建路径中.jar 位于该位置后,您可以刷新工作区,单击鼠标右键,然后选择构建路径,添加到构建路径.

For your mysql connector, a common practice is to copy the jar to your project directory (or maybe under lib directory) and add it to the build path. Once the jar is in the location, you can refresh the workspace, right click, and select Build Path, add to Build Path.

这篇关于如果我有 Eclipse 是否需要安装 Java SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆