[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Unable to compile class for JSP

Hi,

In <bbvl01$1vq$1@xxxxxxxxxxxxx> Dev wrote:
> I a trying to run jsp s under Eclipse running tomcat and I get  the
> following exception.
> 
> It seems I am unable to compile my jsp under  my eclipse settings.  
> These jsps compile if I run Tomcat out of EClipse. Once they are 
> complied They work ok in Eclipse. I am new to Eclipse any help will be 
> appreciated.
>

I had the same problem. I assume you're using a Windows environment?
The problem is that Eclipse is using the JRE instead of the JDK.
Just have a look at the Help/About Eclipse/Configuration Details.
You'll find that Eclipse is using a Java installation somewhere in 
c:\Programm Files\
or in the windows folder.

I assume that you've intalled a JDK 1.4.x somewhere else, and that 
starting tomcat from command line is using this other JDK.

Solution:
Just change the default JDK to be used, e.g. by editing the registry and 
adding you default JDK to the classpath. Maybe you have to rename the 
javaw.exe in the windows folder.

Regards,

Jens