- This topic has 24 replies, 5 voices, and was last updated 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
September 18, 2006 at 5:26 pm #258723
tenjinMemberHi,
The problem was caused by the location of the Java SDK.
It was stored in “D:\Program Files\Java”
When moved to “D:\Java” everything worked fine. I guess the space in the path messed things up.
Regards
Darren.
September 19, 2006 at 8:37 pm #258782
Riyad KallaMemberDarren,
Does that workaround solve the problem for you right now? i’m going to file a bug for this to get addressed ASAP so you guys don’t need to work around the issue.September 20, 2006 at 5:25 am #258831
tenjinMemberHi,
That did fix the problem, so I think the space in the path to the JDK must be significant. It would be great to log that as an enhancement request.
I have also noticed the following associated behaviour:
When trying to diagnose this problem I created a series of new JRE configs. These get listed in:
WINDOWS->PREFERENCES->Installed JREs
I then tried to delete the duplicates by clicking on each one and selecting “REMOVE”. Although this appeared to work if I then clicked “OK” to close the PREFERENCES window and then reopened it again, the JREs reappeared.
So, removing the JREs doesn’t seem to work. NOt a big issue, but again would be good to log as a defect.
BTW, I am using:
Eclipse 3.2.0
MyEclipse 5.0 GA
Sun Java 1.5
Windows XP ProRegards
Darren.
September 20, 2006 at 8:20 am #258845
Riyad KallaMemberDarren,
That is very odd, can you check your log file under (<workspace dir>\.metadata\.log) for messages pertaining to removing the JDKs?September 20, 2006 at 9:13 am #258854
tenjinMemberHi,
There is nothing in the log file for this activity. In fact, I cleared the log and it’s still empty after reproducing the bug.
I have noticed that if I start Eclipse and try to remove the JRE as the first action it works fine. If I then add another JRE (through the Application Servers->Resin2->JDK menu) I can’t delete it unless I restart Eclipse.
Is there any way to force Eclipse to log information about this failure?
Regards
Darren.
September 20, 2006 at 9:36 am #258859
Riyad KallaMemberDarren,
Unfotunately not, but I was able to reproduce this strange behavior very quickly with your steps… I’ll file it as a bug ASAP.September 22, 2006 at 9:10 am #259037
tenjinMemberHi,
This problem continues I’m afraid, although I think I have tracked down the cause.
Firstly, the reason I thought it had been fixed was because if I manually run Resin outside of MyEclipse and then view the web app from within the embedded browser it all works fine. Until that is I change one of the pages, and then the compilation of that page fails.
I was confused about where Resin was running.
Earlier on in this thread I mentioned a fix that I had found on this site for the “logging” error when using Resin 2.1.x
The fix for that was to add this string:
-Xbootclasspath/p:d:\resin\lib\dom.jar;d:\resin\lib\jaxp.jar;d:\resin\lib\jmx.jar;d:\resin\lib\jsdk23.jar;d:\resin\lib\jta_101.jar;d:\resin\lib\resin.jar;d:\resin\lib\sax.jar;d:\resin\lib\webutil.jar
– to the “Optional Java VM Arguments” section of the JDK setup in the Resin preferences section of Eclipse.
This arguments list is breaking the compilation of new pages. I have removed it and although the logging error is back Eclipse is now able to compile the pages.
Any ideas how I can change the arguments list so that the logging error goes away but the complilation works?
Regards
Darren.
September 22, 2006 at 9:14 am #259038
Riyad KallaMemberDarren,
The compilation is happening outside of MyEclipse on Resin, so if the compilation is failing, what is the error being given? If it’s complaining about a lack of a compiler or missing “tools.jar”, you may just need to make sure to find tools.jar in your JDK install and add it to the bootclasspath as well.September 22, 2006 at 11:14 am #259046
tenjinMemberHi,
Thanks for the post.
Adding d:\Java\lib\tools.jar to the “optional Java VM arguments” section in the MyEclipse preferences seems to have done the trick. The logging error is gone, and the pages still compile.
I did try this once before, but that was when Java was installed in “d:\Program Files\Java” and then of course the space-in-the-path issue was a problem.
Anyway, it really does look fixed now.
Thanks for your help
Regards
Darren.
September 22, 2006 at 11:40 am #259051
Riyad KallaMemberDarren,
That’s great news, I’m glad it’s working now. -
AuthorPosts