Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tomcat 7 requires a Java SDK in WTP?
Tomcat 7 requires a Java SDK in WTP? [message #649341] Tue, 18 January 2011 19:53 Go to next message
David Becker is currently offline David BeckerFriend
Messages: 13
Registered: July 2009
Junior Member
While attempting to add a Tomcat v7.0 runtime in WST 3.0.2, I get the following warning and it won't let me create the runtime.
Tomcat requires a Java SDK in order to compile JSP files. Ensure that the JRE preference settings point to an SDK install location.

My java preference is an SDK (Mac OS X Java 1.6), and it works just fine with Tomcat v6.0. Besides which, that error isn't even true, is it? Tomcat 7 says it uses the eclipse compiler for JSP pages now and that JRE is sufficient...

Anyone have any ideas?

Thanks!
Re: Tomcat 7 requires a Java SDK in WTP? [message #649512 is a reply to message #649341] Wed, 19 January 2011 14:27 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 1/18/2011 2:53 PM, David Becker wrote:
> While attempting to add a Tomcat v7.0 runtime in WST 3.0.2, I get the
> following warning and it won't let me create the runtime.
> Tomcat requires a Java SDK in order to compile JSP files. Ensure that
> the JRE preference settings point to an SDK install location.
> My java preference is an SDK (Mac OS X Java 1.6), and it works just fine
> with Tomcat v6.0. Besides which, that error isn't even true, is it?
> Tomcat 7 says it uses the eclipse compiler for JSP pages now and that
> JRE is sufficient...
>
> Anyone have any ideas?
>
> Thanks!

That would be a bug. I missed updating that check when implementing the
Tomcat 7 support. Of the numerous versions of Java I have on my system,
they are almost all SDKs. Please file a bug report and I'll see about
fixing that in WTP 3.2.3. If you create a file named tools.jar in the
JRE's lib folder, that will work around this check.

Cheers,
Larry
Re: Tomcat 7 requires a Java SDK in WTP? [message #649549 is a reply to message #649512] Wed, 19 January 2011 16:45 Go to previous messageGo to next message
David Becker is currently offline David BeckerFriend
Messages: 13
Registered: July 2009
Junior Member
I will do that, and try that once I get in to my work computer. Though I'm left wondering how come the exact same java works fine for a Tomcat 6 install. Doesn't that require an SDK too? It's my understanding that the Mac OS X standard java IS an SDK...
Re: Tomcat 7 requires a Java SDK in WTP? [message #649564 is a reply to message #649512] Wed, 19 January 2011 17:47 Go to previous messageGo to next message
David Becker is currently offline David BeckerFriend
Messages: 13
Registered: July 2009
Junior Member
Odd, there are no tools.jar file in ANY of the Mac OS X standard JVMs, though they do have javac support... Your suggestion of adding a tools.jar file did work just fine.

Bug filed as #334818...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334818
Re: Tomcat 7 requires a Java SDK in WTP? [message #649571 is a reply to message #649564] Wed, 19 January 2011 18:16 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 1/19/2011 12:47 PM, David Becker wrote:
> Odd, there are no tools.jar file in ANY of the Mac OS X standard JVMs,
> though they do have javac support... Your suggestion of adding a
> tools.jar file did work just fine.
>
> Bug filed as #334818...
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=334818

Thanks for the bug.

WTP is doing a simple check for the existence of a tools.jar file. If
not found, it checks the Tomcat version and if 5.5 or 6.0, it flags
tools.jar as found. This needs to include 7.0. If still flagged as not
found and the OS is "mac", then a special check is performed (i.e. a
little Java app is launched that verifies if Class.forName() succeeds
for "com.sun.tools.javac.Main"). Fortunately, the "tools.jar" file
trick should pass the first check.

Cheers,
Larry
Re: Tomcat 7 requires a Java SDK in WTP? [message #649579 is a reply to message #649571] Wed, 19 January 2011 19:00 Go to previous message
David Becker is currently offline David BeckerFriend
Messages: 13
Registered: July 2009
Junior Member
Thank you for the explanation. I feel better now that I understand the issue. Very Happy
Previous Topic:Find HTML unmatched tag?
Next Topic:debugging javascript
Goto Forum:
  


Current Time: Fri Apr 26 06:37:56 GMT 2024

Powered by FUDForum. Page generated in 0.03204 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top