facebook

cannot configure Tomcat for jdk1.5.0_06

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #243617 Reply

    yeecn
    Member

    Hi,

    I am having problem configuring Tomcat server for jdk1.5.0_06. It says:

    “Target is not a JDK root. System library was not found”

    I am using Eclipse 3.1.1, MyEclipse 4.0.200 M2

    Thanks
    Yee

    #243654 Reply

    Scott Anderson
    Participant

    Yee,

    It sounds like you’re not pointing Eclipse to a full JDK to run Tomcat. We cover how to configure the JDK in the Working with Web Projects tutorial in the Documentation section. It will walk you through configuring Tomcat correctly and setting up a JDK that works with it. That will hopefully help answer your questions.

    #243671 Reply

    yeecn
    Member

    Hi Scott,

    The problem is actually with configuring JVM. I got the errors mentioned above when I points the jre directory to the jdk folder installed by the download package from Sun.

    Also an anomaly I noticed with the installation package is that it will install jdk and jre separately. So the /jdk1.5.0_06 folder will not contain a /jre subfolder.

    I tried copying the jre folder to the /jdk folder, as well as installing jre under /jdk explicitly. Both attempts failed.

    regards,
    Yee

    #243716 Reply

    Scott Anderson
    Participant

    Yee,

    You shouldn’t copy the folders around in the JDK. The jre subfolder is normal. You simply need to point Eclipse to the top-level JDK installation folder, not the jre subfolder, when you register the jre with Eclipse. How to configure the JVM correctly is covered in section 5 of the Using Application Servers quickstart. That covers in detail which directories to specify when you set up the JVM for use with an application server.

    #243719 Reply

    yeecn
    Member

    Scott,

    The problem I see is that there is NO /jre subfolder under the jdk folder.

    Jdk and jre are installed separately with the installer downloaded from Sun.

    Yee

    #243852 Reply

    Scott Anderson
    Participant

    Yee,

    That’s odd. I’ll test locally using the installer download link for jdk-1_5_0_06-windows-i586-p.exe. Is that what you used?

    #243853 Reply

    Scott Anderson
    Participant

    OK, I ran it and told the installer to only install the ‘Developer Tools’, not any of the other stuff, including the ‘Public JRE’. After the install (which did not prompt me for a location) I had a new folder at C:\Program Files\Java\jdk1.5.0_06 that contained the JDK with a ‘jre’ subfolder as expected. What did you do that was different from what I did?

    #244032 Reply

    yeecn
    Member

    I uninstalled and reinstalled again. Yes – I do get the jre subfolder as you did, but yet I am still having the same problem.

    I noticed that after installing jdk into C:\ProgramFiles\Java\jdk1.5.0_06, the installer proceed to install the jre into C:\Program Files\Java\jre1.5.0_06\. I am wondering whether this will change anything in the environment variables/registry that is going to affect myeclipse.

    Yee

    #244033 Reply

    Riyad Kalla
    Member

    Yee,
    When you install the full JDK it will also install a JRE as part of the process (and yes, also have a /jre folder under the JDK dir) it has been this way for as long as I can remember. That all sounds fine, now just point the “Installed JRE” in Eclipse to C:\Program Files\Java\jdk1.5.0_06, does that work?

    #244086 Reply

    yeecn
    Member

    No – it says “Target is not a JDK root. System library was not found”.

    It works if I point to …\jdk1.5.0_06\jre but then it won’t be a jdk that I can use to configure servers.

    It is really strange – as I have a …\jdk1.5.0_04 that is working perfectly, and I can’t tell any difference between the two by looking at the folder and files.

    I am using Windows server 2003 – don’t think that should make any difference.

    Yee

    #244276 Reply

    typenet
    Member

    I was having the same problems. I got it to work by naming the jdk configuration somthing simple like jdk15 not jdk1.5.0_06. I have two JVM configs set up identically and the one with the simple name works the one with the full name does not.

    Hope that helps

    #245032 Reply

    yeecn
    Member

    Yes – it does work. It’s a weird bug indeed.

    Thanks

    Best regards,
    Yee

    #253349 Reply

    Hi All,

    I had to rename my JAVA_HOME in jdk1.5.0_07 to have it working … wery strange fact for me.

    bye

    Mauro

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: cannot configure Tomcat for jdk1.5.0_06

You must be logged in to post in the forum log in