2 Replies Latest reply on Apr 15, 2009 6:16 AM by Matthew Young

    run.jar java options (JavaService.exe)

    Matthew Young Newbie

      using JBoss 4.0.3 SP2 on windows....

      jboss is setup as a service (via JavaService.exe) which runs the run.jar main class (org.jboss.Main). want to send specific java options to the Main class. like a javaagent option:

      -javaagent:<my bootstrap agent>

      how is this done using run.jar?

        • 1. Re: run.jar java options (JavaService.exe)
          Peter Johnson Master

          I am going to assume that you are using this tool: http://forge.ow2.org/projects/javaservice/ (many of the tools that turn Java apps in services have Java Service as part of their name so it is often impossible to tell which is being used just from the name)

          This tool uses a registry entry to hold the run options. Look at the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
          XXX\Parameters, where XXX is the short service name. To add additional JVM options, edit the "JVM Option Count" value, and than add an additional "JVM Option Number X" item, where X is the next number after the existing ones.

          • 2. Re: run.jar java options (JavaService.exe)
            Matthew Young Newbie


            the service was setup with the JavaService utility (part of an Adobe Lifecycle installation). will check out the registry entry (would have never guessed going that why....thanks for the tip). assume i can see every argument to the jvm in the register.

            best alternative in the future might to reinstall the service with my settings. will respond back later with a solution.