Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java and JDK (1.7, 1.8, 11.0.2, 12) on Visual Studio 2019 #2961

Closed
IlyaFinkelshteyn opened this issue Jun 3, 2019 · 16 comments

Comments

@IlyaFinkelshteyn IlyaFinkelshteyn added this to the vs-2019-image milestone Jun 3, 2019

@ice1000 ice1000 referenced this issue Jun 4, 2019
IlyaFinkelshteyn added a commit to appveyor/build-images that referenced this issue Jun 6, 2019
@IlyaFinkelshteyn

This comment has been minimized.

Copy link
Member Author

commented Jun 6, 2019

Delaying till the next update as a lot of download links worked before are broken. Need some time to review a setup script.

@Cheesebaron

This comment has been minimized.

Copy link

commented Jun 10, 2019

I tried running my own script in the install phase:

install:
  - appveyor-retry powershell .\install-openjdk.ps1

However, it seems like setting Environment Variables from the script doesn't work.

My script looks something like this:

$openjdk_version = "1.8.0.25"
$download_url = "https://dl.xamarin.com/OpenJDK/mac/microsoft-dist-openjdk-" + $openjdk_version + ".zip"

Write-Host "Installing OpenJDK ..." -ForegroundColor Cyan

$jdkPath = "C:\Program Files\Android\jdk\microsoft_dist_openjdk_" + $openjdk_version

if(Test-Path $jdkPath) {
    Remove-Item $jdkPath -Recurse -Force
}

Write-Host "Downloading..."
$zipPath = "$env:TEMP\microsoft-dist-openjdk-" + $openjdk_version + ".zip"
(New-Object Net.WebClient).DownloadFile($download_url, $zipPath)

Write-Host "Unpacking..."
7z x $zipPath -oC:\openjdk_temp | Out-Null
[IO.Directory]::Move('C:\openjdk_temp', $jdkPath)
del $zipPath

Write-Host "Setting ENV var..."
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Progra~1\Android\jdk\microsoft_dist_openjdk_" + $openjdk_version, "machine")
[Environment]::SetEnvironmentVariable("JAVA_SDK", "C:\Progra~1\Android\jdk\microsoft_dist_openjdk_" + $openjdk_version, "machine")
$env:JAVA_HOME="C:\Progra~1\Android\jdk\microsoft_dist_openjdk_" + $openjdk_version
$env:JAVA_SDK="C:\Progra~1\Android\jdk\microsoft_dist_openjdk_" + $openjdk_version

Add-Path $jdkPath
Add-Path $jdkPath + "\bin"
@ice1000

This comment has been minimized.

Copy link

commented Jul 1, 2019

Any updates on this?

Liryna added a commit to dokan-dev/dokany that referenced this issue Jul 2, 2019
@FeodorFitsner

This comment has been minimized.

Copy link
Member

commented Jul 3, 2019

It's coming next week, sorry for the delay.

@ice1000

This comment has been minimized.

Copy link

commented Jul 12, 2019

image

How are things going now?

@IlyaFinkelshteyn

This comment has been minimized.

Copy link
Member Author

commented Jul 12, 2019

Sorry for those delays. We hit some blocking issues while testing updated image so it was delayed. I hope it will be out sometime next week.

@ice1000

This comment has been minimized.

Copy link

commented Jul 13, 2019

Ok

@ice1000

This comment has been minimized.

Copy link

commented Jul 13, 2019

No worries, we love AppVeyor

@martijn00

This comment has been minimized.

Copy link

commented Jul 22, 2019

@IlyaFinkelshteyn @FeodorFitsner any update on this?

@ice1000

This comment has been minimized.

Copy link

commented Aug 8, 2019

Is it still blocking?
image

@IlyaFinkelshteyn

This comment has been minimized.

Copy link
Member Author

commented Aug 9, 2019

Sorry guys for all that delays. Working on it now. Will keep you in touch.

@ice1000

This comment has been minimized.

Copy link

commented Aug 9, 2019

Ok

@IlyaFinkelshteyn IlyaFinkelshteyn removed the bug label Aug 31, 2019

@IlyaFinkelshteyn IlyaFinkelshteyn changed the title Java and JDK on Visual Studio 2019 Java and JDK (1.7, 1.8, 11.0.2, 12) on Visual Studio 2019 Aug 31, 2019

@ice1000

This comment has been minimized.

Copy link

commented Aug 31, 2019

Is it closed as "fixed"?

@IlyaFinkelshteyn

This comment has been minimized.

Copy link
Member Author

commented Aug 31, 2019

Yes

@IlyaFinkelshteyn

This comment has been minimized.

@ice1000

This comment has been minimized.

Copy link

commented Aug 31, 2019

I love you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.