facebook

MyEclipse R10.6 – set MyEclipse Tomcat environment variable?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #331757 Reply

    davout
    Participant

    I’m building a web app with the MyEclipse R10.6 IDE that I test using the in built MyEclipse Tomcat server.

    I can’t find a way of setting an environment variable for the MyEclipse Tomcat server. Is this possible?

    I want this because I have different MySQL property files for different deployment targets and I want to set a ‘TARGET_PLATFORM’ environment variable to direct which property file should be used.

    #331771 Reply

    davout,

    1. You cannot create a Launch Configuration for the MyEclipse Tomcat Server. Because it’s an internal server and all trimmed down, we block you from being able to create it so it won’t show up in the Run/Debug dialogs.

    2. If all you want to do is setup environment variables for your app server, you can do that from the standard connector dialog under the JDK arguments page by adding -D command line arguments, they will be loaded by the VM as env variables (e.g. -Duser.name=jeffb)

    3. If you really want to use a Launch Config, you should probably grab Tomcat 6 or Tomcat 6+ from the Apache site and setup the Tomcat connector and do the launch config from there.

    Let us know how it works for you.

    #331774 Reply

    davout
    Participant

    Where do I find your option 2 at a project level?

    #331780 Reply

    davout,

    As said in my earlier response, You cannot create a Launch Configuration for the MyEclipse Tomcat Server.

    You should install and configure seperate Tomcat in MyEclipse and then you can create a separate launch configuration at project level.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse R10.6 – set MyEclipse Tomcat environment variable?

You must be logged in to post in the forum log in