English 中文(简体)
Tomcat和java SDK问题
原标题:Tomcat and java SDK problem

I am trying to create a new dynamic web project in eclipse (in ubuntu). When I point to Target Runtime as Tomcat V 7.0 , I get the below warning

runtime "Apache Tomcat v7.0" is invalid. Tomcat requires a Java SDK in order to
compile JSP files. Ensure that the JRE preference settings point to an SDK.

但已安装的JREs已经显示java-6-openjdk。 我失踪了吗?

而且,当我无视这一点并开始通航时,它成功地在8080港开始。 但是,当我说过时,它向404个资源投了字,没有发现错误。

你们是否在这里看到任何问题?

问题回答

您也许没有安装JDK,也没有向它指定托马托克服务器。

这样就设法确保你不仅安装了JDK,而且安装了JRE。

...... 如果你已经安装了联合家庭网络,那么你就必须确保将优惠环境点到SDK

ec只到Wow >> Pviss >>服务器和超;Tomcat >> Tomcat >> Tomcat 7。 X >> Edit >> and point to JDK not JRE.

如果你不发现“Tomcat”是服务器,你可能发现“停电”和“超常”;Edit >>并且将其指向JDK而不是JRE。

你们需要把ava瓦_带在ur机中,如java_home=c:java,这可以在系统财产中进行,或者你能够从Tomcat财产中确定。

如果做不到这一点,你就无法找到这些档案。 更令人不安的是,当它要求支离破碎的家点时,你安装了支架/支架。

Tip : Sometimes if the directory name in which you have installed the jdk / jre has spaces then while pointing from tomcat will have some problem , better to hav a directory structure with whole words

As "Majed" says I d changed path for Tomcat server. And additionly you must to delete server in Servers on ProjectExplorer. After that Eclipse themselves asked about which one server to select...

Tomcat需要一名JDK,以便汇编由您的联合项目产生的服务器课程。 因此,你只是在申请开始之后才发现错误。

如果您的JDK安装有一台javac汇编器,则检查。 还肯定,你的Eclipse Tomcat Service Java enrironment给你的JDK,而不是JRE。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签