如果我有eclipse,我需要安装java sdk吗? [英] Do I need to install java sdk if I have eclipse

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

问题描述

我一直在使用eclipse 2周,所有程序都可以正常工作。



但是我已经意识到我没有专门安装java sdk。



是正常的还是eclipse有自己的编译器。



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

  c / programfiles / java 
/ pre>

我只有一个目录是jre6

解决方案

你是对的。 Eclipse有自己的编译器,所以如果你正在使用Eclipse,你不需要JDK。



有些case / plugins只能用于JDK,比如Maven 。因此,如果您打算使用Maven(从控制台或从Eclipse),您将需要下载JDK。



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


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

But I have realized that I have not specifically installed java sdk.

Is it normal or eclipse has its own compiler.

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

I have only one directory that is jre6

解决方案

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

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.

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天全站免登陆