Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8457749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:53:24+00:00 2026-06-10T12:53:24+00:00

Using the June 2012 version of the SDK and emulator, I’m trying to install

  • 0

Using the June 2012 version of the SDK and emulator, I’m trying to install the Java runtime executable on an Azure worker role, following this example: http://code.msdn.microsoft.com/windowsazure/Installing-Java-in-Web-94f145dd#content.

I’ve uploaded the x64 installer as a blob, and renamed it ‘Java.exe’ (simply to make the file name a little easier on the eye):

Blobs

When I check with Azure Storage Explorer, I can see the blob is there, and that it is the correct size (31MB).

Following the example, I then use this startup task:

<Startup>
    <Task commandLine="Run.cmd" executionContext="elevated" taskType="background" />
</Startup>

To call this command:

powershell -executionpolicy unrestricted -file .\Launch.ps1

start /w Java.exe /s

Which in turn calls this powershell script:

function download_from_storage ($container, $blob, $connection, $destination) {
Add-Type -Path ((Get-Location).Path + '\Microsoft.WindowsAzure.StorageClient.dll')
$storageAccount = [Microsoft.WindowsAzure.CloudStorageAccount]::Parse($connection)
$blobClient = New-Object Microsoft.WindowsAzure.StorageClient.CloudBlobClient($storageAccount.BlobEndpoint, $storageAccount.Credentials)   
$remoteBlob = $blobClient.GetBlobReference($container + '/' + $blob)
$remoteBlob.DownloadToFile($destination + "\" + $blob)
}

$connection_string = 'DefaultEndpointsProtocol=https;AccountName=devstoreaccount1; AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=='

# JRE
$jre = 'Java.exe'
download_from_storage 'startuputil' $jre $connection_string (Get-Location).Path

This works, and if I browse to the approot that the emulator creates on my local disk, I can see Java.exe there, but its file size is 0KB, and running it fails with the error ‘Not a valid Win32 application’

Empty Java.exe

Clearly the download is beginning, but for some reason it doesn’t seem to be completing. Can anybody tell me why?

I wondered if it was related to this issue: Exception Downloading Azure Blob, but running it against our live storage account fails in exactly the same way.

I should add I’m a reasonably experienced C# programmer, but know very little about powershell, so am more or less following the example line by line. And I’m not really looking for a workaround – it’s straightforward enough to package this file by including it in the project and setting it to always copy, but I’m going to need this technique for other, larger files and so would like to get it working if possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:53:26+00:00Added an answer on June 10, 2026 at 12:53 pm

    (converting my comment to an answer)

    I believe that error message could mean that the container doesn’t exist. Are you sure that “startuputil” is the correct name of the container you created?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the June 2012 Azure SDK, I have a service bus topic, and I
Working with the June 2012 Azure SDK, Visual Studio 2010, and IIS Express, I
I'm trying to retrieve the month using date . $year= 2012; $mon = date(
I have the date in is this format: June 22, 2012 Using PHP's date
I'm trying to get the days of a month using JavaScript and face a
I'm using a calendar table as a join table and trying to create a
I am looking into using browser sessionStorage for a web application, and was trying
http://developers.facebook.com/docs/reference/fbml/silverlight/ FBML has been deprecated. Starting June 1, 2012 FBML apps will no longer
We are trying to integrate the System.Web.Providers membership management into a transaction using System.Transactions.TransactionScope
EDIT: Common.Logging 2.1.1 was released on June 9, 2012 and the Github page is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.