title: Xcode 11 using organizer to upload IPA fails
body: <p>I recently upgraded to Catalina and Xcode 11.</p>
  
  <p>Now when I try to upload an archive from the organizer, I get a simple error saying «"Error Domain=WorkerErrorDomain Code=-10000 "An error occurred uploading to the App Store."»</p>
  
  <p>Since this isn't really an error message, I tried to use <code>xcrun altool</code> to upload the ipa. </p>
  
  <p>That's when things get interesting. This fails with the following error:</p>
  
  <pre><code>Java 1.5 or Java 1.6 is required. Currently, java is the default java version. Please upgrade.
  </code></pre>
  
  <p>Java 1.6 is ancient! There's not even a downloadable package available for Catalina.</p>
  
  <p>Any ideas what's going wrong here?</p>
  
  <p>This is the output of the command line tool (redacted for paths and secret-codes):</p>
  
  <pre><code>Using tool '/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework/Resources/DTAppAnalyzerExtractor'.
  'DTAppAnalyzerExtractor': self.executablePath: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework/Resources/DTAppAnalyzerExtractor
  Launching: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework/Resources/DTAppAnalyzerExtractor --input-dir /var/folders/bj/xxxxx/T/myipa.ipa --output-file /var/folders/bj/xxxxx/T/DTAppAnalyzerExtractorOutput-xxxxx.zip
  Web service call (validateSoftwareSPIUsage) result: (null)
  Using template named: purple-metadata-template
  Sending request to iTunesTransporter...
  Command: /usr/local/itms/bin/iTMSTransporter
  Arguments: -m upload -u 'myusername@mydomain.com' -vp json -TxHeaders xxxxx== -sessionid xxxxx -sharedsecret xxxxx -f '/var/folders/bj/xxxxx/T/xxxxx/xxxx.itmsp' -indicator true -v eXtreme -Dtransporter.client='altool' -Dtransporter.client.version='4.00 (1181)'
  Java 1.5 or Java 1.6 is required. Currently, java is the default java version. Please upgrade.
  Error:
  Java 1.5 or Java 1.6 is required. Currently, java is the default java version. Please upgrade.
  Out:
  Errors: (null)
  *** Error: Errors uploading '/Library/Documents/myapp.ipa': (
      "Error Domain=WorkerErrorDomain Code=-10000 \"An error occurred uploading to the App Store.\" UserInfo={NSLocalizedDescription=An error occurred uploading to the App Store., NSLocalizedFailureReason=An error occurred uploading to the App Store.}"
  </code></pre>