如果我只安装了JRE,我可以开发Java程序吗? [英] Can I develop Java programs if I have only JRE installed?
问题描述
我的系统上安装了JRE 1.7。由于一些管理员问题,我的系统上没有JDK。有没有什么方法可以用JRE开发Java程序?
I have JRE 1.7 installed on my system. Due to some admin issues I don't have JDK on my system. is there any way I can develop Java programs with JRE only?
推荐答案
不,你不能只开发java程序使用JRE
您需要 JDK
来编译程序。 JRE
仅提供运行时环境,但 JDK
是编译代码以使其可由 JRE <执行时所需的内容/code>。您需要
javac
来编译 JDK
中的代码。
No you can't develop java programs only with JRE
You will need JDK
for compiling your programs.JRE
provides only runtime environment,but JDK
is something you will need to compile your code to make them executable by your JRE
.You will need javac
for compiling your code which is present in JDK
.
但是,为了解决您所拥有的管理员权限问题,您可以下载并安装 eclipse ,它有自己的内置编译器。
However for resolving the issue of admin rights you are having, you can download and install eclipse which has its own built in compiler.
这篇关于如果我只安装了JRE,我可以开发Java程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!