- This topic has 12 replies, 5 voices, and was last updated 18 years, 5 months ago by Mauro Quartini.
-
AuthorPosts
-
yeecnMemberHi,
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
Scott AndersonParticipantYee,
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.
yeecnMemberHi 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
Scott AndersonParticipantYee,
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.
yeecnMemberScott,
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
Scott AndersonParticipantYee,
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?
Scott AndersonParticipantOK, 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?
yeecnMemberI 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
Riyad KallaMemberYee,
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?
yeecnMemberNo – 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
typenetMemberI 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
yeecnMemberYes – it does work. It’s a weird bug indeed.
Thanks
Best regards,
Yee
Mauro QuartiniMemberHi All,
I had to rename my JAVA_HOME in jdk1.5.0_07 to have it working … wery strange fact for me.
bye
Mauro
-
AuthorPosts