简体   繁体   English

Java SE 是 Java EE 的先决条件吗?

[英]Is Java SE a prerequisite of Java EE?

I am very new to programming and I am using Java as my first Programming Language.我对编程很陌生,我使用 Java 作为我的第一个编程语言。 I am already using Java with Java SE for almost a week and I read something about Java EE and if I understood it correctly, Java EE = Java SE + other features, so I think I have to change my SDK to Java EE to save disk space. I am already using Java with Java SE for almost a week and I read something about Java EE and if I understood it correctly, Java EE = Java SE + other features, so I think I have to change my SDK to Java EE to save disk空间。

I read the installation instructions about Java EE and it says there that its OK to have them both but I really wanted to have just Java EE.我阅读了有关 Java EE 的安装说明,它说可以同时拥有它们,但我真的只想拥有 Java EE。 I uninstalled Java SE and installed Java EE but I was having some errors along the way and I can't continue installing Java EE.我卸载了 Java SE 并安装了 Java EE 但我在此过程中遇到了一些错误,我无法继续安装 Java EE。 I can't remember what the errors were but I decided to cancel the installation.我不记得错误是什么,但我决定取消安装。 I installed Java SE again and installed Java EE and everything went smoothly.我再次安装了Java SE并安装了Java EE,一切顺利。 Now, I have both...现在,我两个都...

I am using JCreator 5 as my IDE and I configured it to use the Java EE jdk only.我使用 JCreator 5 作为我的 IDE 并将其配置为仅使用 Java EE jdk。 I tried to compile my test program but it seems that it cannot recognize it.我试图编译我的测试程序,但它似乎无法识别它。 How can I make my Java EE work without having Java SE.如何在没有 Java SE 的情况下使我的 Java EE 工作。

I don't know whats going on.我不知道发生了什么事。 I am totally new to this.我对此完全陌生。 I just wanted to use J2EE... Please help.我只是想使用 J2EE ...请帮助。

Java SE is in C:\Program Files\Java while Java EE is in C:\Sun\AppServer Java SE is in C:\Program Files\Java while Java EE is in C:\Sun\AppServer

Java EE is defined by its specification and its specification is built on top on the Java SE classes. Java EE 由其规范定义,其规范建立在 Java SE 类之上。 Java EE classes will call Java SE classes, so you cannot use the Java EE without the installation of Java SE. Java EE classes will call Java SE classes, so you cannot use the Java EE without the installation of Java SE. Otherwise, you will encounter the java.lang.NoClassDefFoundError否则会遇到java.lang.NoClassDefFoundError

Java EE classes are defined over Java SE classes, so you need to install Java SE, first. Java EE 类是在 Java SE 类之上定义的,所以需要先安装 Java SE。

Happy learning!快乐学习!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM