[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.cme] Re: solution ClassNotFoundException com.sun.tools.javac.Main
|
- From: ossher@xxxxxxxxxx (Harold Ossher)
- Date: Tue, 7 Sep 2004 18:18:59 +0000 (UTC)
- Newsgroups: eclipse.technology.cme
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
Len,
Thanks for pursuing and reporting this. I have improved the error message
along the lines you suggest (in the CVS repository - it will appear on the
update site the next time that is refreshed).
Thanks, Harold
len wrote:
> If you try to compose a concern and got the following error
> "java.lang.ClassNotFoundException: com.sun.tools.javac.Main
> Internal error: compilation of generated construction classes failed."
> like I did, here is the solution:
> The problem was that the cme was looking for the sdk directory in the
> wrong place. After installing jsdk 1.4.2 under windows using the default
> options,
> it created the folowing 2 directories on my computer:
> c:/j2sdk1.4.2_0 and
> c:/program files/java/j2re1.4.2_0
> Eclipse 2.1 uses the runtime java from the directory c:/program
> files/java/j2re1.4.2_0 instead of c:/j2sdk1.4.2_0/jre which gives an error
> when trying to compose a concern when searching for the compile method in
> the sdk using a relative path.
> The solution is to change the path for the runtime java in the eclipse
> preferences window to c:/j2sdk1.4.2_0/jre. Btw, a clearer error would have
> saved me a lot of searching (a try catch around ClassLoader.loadClass
> in org.eclipse.cme.util.env.DefaultJavaCompiler)