4 ms·
The big mistake you made is to install J2EE. Just install JDK and Tomcat, and you will be fine. J2EE is weird indeed - it used to be OK, you could download just
by Tichy 19y ago
The big mistake you made is to install J2EE. Just install JDK and Tomcat, and you will be fine. J2EE is weird indeed - it used to be OK, you could download just the things you need, but I guess some Sun managers decided to make it bloatware and abuse their users, so now it is some indescribable blob. I don't even know exactly what it is - just don't install it, don't use, I can only repeat that!
You need some J2EE libraries, like the servlet API, but I think you can use the one that comes with Tomcat.
Also, I think there is some weird bug in the latest Tomcat versions, so the recommended version at the moment appears to be 5.5.17 (I am still using Java 1.5, though, and not yet Tomcat 6).
I have never heard of the java.policy files - you chose the wrong path and I would recommend you backtrack and relax. It actually is very easy...
As a sidenote, I found it very hard to set up Rails, too. The automatic thing didn't work (presumably user rights issue), I wasn't sure if I needed a db driver and went looking for one, and so on. I only successfully installed it once I switched my computer to Linux.
- iamelgringo 19y ago| The big mistake you made is to install J2EE. I hear ya. But homework requirements and "the smart way" don't really coincide often. | have never heard of the java.policy files - you chose the wrong path and I would recommend you backtrack and relax. It actually is very easy... .java.policy is essentially setting applet permissions. It wasn't that bad, it just was the straw that broke the camels back.
- Tichy 19y agoAre you sure you need to install J2EE? You don't need the sun J2EE server-crap to develop J2EE applications! J2EE is two things, a specification with implementations by Apache, Bea, jBoss and others, and also an implementation by Sun, which probably sucks. Perhaps you could use jBoss instead of the Sun garbage. I only ever have used Tomcat, though, so I can't really comment on the Application servers. OK, used Bea Weblogic, too, and recommend against it. Also, what do you mean by applets - why do you need Applets for J2EE?
- iamelgringo 19y agoPer the syllabus--"Project requirement: Install J2EE" I know that applets are as a rule pretty lame, but part of the project is to access and use the database via a jsp, a servelet and an applet. Project is actually done and finals are next week.