Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10810

Use JAVA_HOME if the user has set it instead of searching in the registry

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.2-rc-1
    • 6.2-milestone-1
    • Jetty resources (Tool)
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The code from "start_xwiki.bat" searches the registry for "HKEY_CLASSES_ROOT\jarfile\shell\open\command". There are 2 problems with this behaviour:

      1. if the user has set his JAVA_HOME variable to another Java version, this is not taken into account
      2. if the user did not install a JRE he will get this message:
      Starting Jetty on port 8080, please wait...
      ERROR: The system was unable to find the specified registry key or value.
      The system cannot find the path specified.
      Press any key to continue . . .

      and XWiki won't start. But if you only have a JDK installed you can start XWiki by replacing ""%JAVA_PATH%"" with "java":

      Starting Jetty on port 8080, please wait...
      ERROR: The system was unable to find the specified registry key or value.
      2014-08-18 14:39:26,995 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
      2014-08-18 14:39:26,998 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data\solr]
      2014-08-18 14:39:28,693 [coreLoadExecutor-4-thread-1] WARN  o.a.s.r.ManagedResource        - No stored data found for /rest/managed
      2014-08-18 14:39:28,694 [coreLoadExecutor-4-thread-1] WARN  o.a.s.r.ManagedResource        - No registered observers for /rest/managed
      2014-08-18 14:39:29,443 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
      2014-08-18 14:39:30.189:INFO:oxtjl.NotifyListener:----------------------------------
      2014-08-18 14:39:30.191:INFO:oxtjl.NotifyListener:Server started, you can now open http://192.168.0.107:8080/ in your browser to access your wiki.
      2014-08-18 14:39:30.191:INFO:oxtjl.NotifyListener:----------------------------------

      Attachments

        Issue Links

          Activity

            People

              msmeria Manuel Smeria
              msmeria Manuel Smeria
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: