StandardServletContainer for target runtime in Eclipse

As for the general project, is it possible to add a path JRE_CONTAINERto the classpath, is it possible to run the Runtime web container server?

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+3
source share
5 answers

Yes, I think so. I am running Eclipse Galileo and I can change the JRE to:

  • Right click project
  • The choice Properties
  • The choice Java Build Path
  • Tab selection Libraries

Alternatively, you can also manually modify the file .classpath. Finally, you can use a build manager such as Maven to manage the versions / libraries you are using.

0
source

, , Java Build Path > Libraries > Add Library > Server Runtime.

0

, WTP (Web Tool Platform), :

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/j2sdk1.6.0_12"/>

:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>

:

<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>

JRE.

0

, jvm. , > java. jvm. . , java .

0

Not sure what you want, but you can declare the library for yourself as the runtime environment "Assembly path> Libraries> Add library" or you can declare your own variable "Assembly path> Libraries> Add variable", which may contain the banks you want ...

0
source

Source: https://habr.com/ru/post/1742449/


All Articles