Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1141

ForkedLauncher#run() uses a misconception of JAVA_HOME

    XMLWordPrintableJSON

Details

    Description

      The code does:

      if ( envVars == null || envVars.get( "JAVA_HOME" ) == null )
      {
          cmd.addEnvironment( "JAVA_HOME", System.getProperty( "java.home" ) );
      } 

      This is logically wrong because java.home is not JAVA_HOME. java.home points to the JRE directory which can or cannot be the JAVA_HOME. This block can be removed all together and shall be eiher inherited or provided by the client.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: