• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New J2EE jdk

 
Steven Broadbent
Ranch Hand
Posts: 400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the IDEs and Other Tools forum, in case you're after more help on configuring JCreator...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic