This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've been using jcreator with j2se 1.4 and now decided to use J2EE. I downloaded it from sun and installed it. I created a new profile for the j2ee jdk in jcreator , but when I compile it can;t find any j2ee classes javax.ejb.SessionBean; etc... Seems not to recognise or find the new jdk? Am I missing something obvious here? In the past I have used multiple jdks with JBuilder, but this has got me stumped.
"....bigmouth strikes again, and I've got no right to take my place with the human race...."<p>SCJP 1.4
Hi Steven, From your message, it sounds like you're under the impression that the J2EE and the J2SE SDK are, at some level, interchangeable. That's a sensible, if incorrect, assumption. J2EE is a collection of enterprise APIs, and is useful only in conjunction with a J2SDK, not in place of it. In particular, J2EE includes no virtual machine and no compiler. What you want to do is not try to set up J2EE as an alternate JDK, but simply add the J2EE *.jar files to the JCreator CLASSPATH.
Add the J2EE libraries (most notably j2ee.jar) to your project the same way you would any other 3rd party library. That's all there is to it, JCreator may even have an option to do so as standard (which you will likely have to configure to point to the new version rather than the one that would have shipped with JCreator).