Can I develop Java programs if I have only JRE installed?

前端 未结 10 996
执笔经年
执笔经年 2020-12-19 03:36

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?

相关标签:
10条回答
  • 2020-12-19 04:00

    Do you need this to do you job or not? If it's your job, you should have access or they should install it. If you don't have access because it's not your job, I suggest installing the JDK at home (or on a laptop you can take with you)

    Due to some admin issues I don't have JDK on my system.

    Install it in your home directory or another directory you can write to. Your admins can't prevent you from installing the JDK if you have enough disk space.

    0 讨论(0)
  • 2020-12-19 04:02

    You need some program which compiles your sources, but that doesn't neccessarily have to be the JDK.

    For example you can download Eclipse which only requires a JRE, it has it's own compiler (built-in) and you can develop with that. Eclipse does not require any admin priviliges, it's a zip file which you can download and extract.

    0 讨论(0)
  • 2020-12-19 04:05

    JRE is not just sufficient, without compiling the code for that you need Jdk which have compiler to compile the code.

    0 讨论(0)
  • 2020-12-19 04:06

    You can't develop any Java application since you need JDK(Java Development Kit) to compile your code. JRE(Java Runtime Environment) provides run time environment only. You can run your compiled code in JRE.

    0 讨论(0)
  • 2020-12-19 04:12

    You need to compile them in order to develop and that is why you need jdk

    0 讨论(0)
  • 2020-12-19 04:12

    JDK is needed to compile your java file into class file. And JRE will execute the generated class file and provides the output. If you have admin problems in your m/c then you can install the JDK in some other m/c and take the class files into your system and execute them.

    0 讨论(0)
提交回复
热议问题