CybTekSol Posted May 31, 2011 Report Share Posted May 31, 2011 Anybody found way to get JDK urls? Link to comment Share on other sites More sharing options...
shawn Posted May 31, 2011 Report Share Posted May 31, 2011 http://jdk6.java.net/download.html Link to comment Share on other sites More sharing options...
shawn Posted May 31, 2011 Report Share Posted May 31, 2011 And the easiest way is to parse for the complete md5 URL, and replace the extension with exe (assuming you want an executable installer). Link to comment Share on other sites More sharing options...
UksusoFF Posted May 31, 2011 Report Share Posted May 31, 2011 (edited) shawn, thanks for this address Edited May 31, 2011 by UksusoFF Link to comment Share on other sites More sharing options...
appyface Posted July 24, 2011 Report Share Posted July 24, 2011 Anyone know how to get the JDK, starting from this page? http://www.oracle.com/technetwork/java/javase/downloads/index.html The above page yields this link: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html From that page I scrape the pieces needed for Windows x86 (or x64) version, but can't get it to work so far -- is a cookie needed? Link to comment Share on other sites More sharing options...
shawn Posted August 25, 2011 Report Share Posted August 25, 2011 Appyface, replace the "title" variable with the "Product / File Description" string from the download page and this should work for you. <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="ed8733a7-2e6a-4fcb-bf61-5db4f4d28076"> <Category>Development</Category> <WebsiteUrl /> <UserAgent /> <UserNotes /> <LastFileSize>0</LastFileSize> <LastFileDate xsi:nil="true" /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>title</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>Windows x64</TextualContent> <Name>title</Name> </UrlVariable> </value> </item> <item> <key> <string>url1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>="([^"]+?java-se-jdk[^"]+?)"</Regex> <Url>http://www.oracle.com/technetwork/java/javase/downloads/index.html</Url> <Name>url1</Name> </UrlVariable> </value> </item> <item> <key> <string>url2</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"title":"{title}", "size":"[^"]+", "filepath":"(http[^"]+)"</Regex> <Url>http://www.oracle.com{url1}</Url> <Name>url2</Name> </UrlVariable> </value> </item> <item> <key> <string>url3</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"([^"]+-relnotes-[^"]+)"</Regex> <Url>http://www.oracle.com/technetwork/java/javase/downloads/index.html</Url> <Name>url3</Name> </UrlVariable> </value> </item> <item> <key> <string>url4</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"([^"]+-naming-[^"]+)"</Regex> <Url>http://www.oracle.com{url3}</Url> <Name>url4</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><tt>java version "([\d\.]+)"</tt></Regex> <Url>http://www.oracle.com{url4}</Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <SourceType>FixedUrl</SourceType> <PreviousLocation /> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>.\{category}\{appname:regexreplace:([\s\t\r\n\-\\&\/]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{url2}</FixedDownloadUrl> <Name>JDK x64</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
appyface Posted August 29, 2011 Report Share Posted August 29, 2011 Thanks, shawn, I'll give this a try. Link to comment Share on other sites More sharing options...
Marco Campos Posted February 16, 2012 Report Share Posted February 16, 2012 shawns code didn't work with me, i got the idea and made some changes: <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="53951ada-cba6-46eb-8ae0-05817b432172"> <WebsiteUrl /> <UserAgent /> <UserNotes /> <LastFileSize>0</LastFileSize> <LastFileDate xsi:nil="true" /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions> <SetupInstruction xsi:type="StartProcessInstruction"> <EnvironmentVariables /> <FileName>{temp}jdk.exe</FileName> <Parameters /> <WaitForExit>true</WaitForExit> </SetupInstruction> </SetupInstructions> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>The external version number is ([^"][\d]*u[^"])\.\<\/p\></Regex> <Url>http://www.oracle.com{rel2}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>build</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>release is [\d,.,_,-]*b[\d]* \(([^"][\d][^"]) in Windows</Regex> <Url>http://www.oracle.com{rel2}</Url> <Name>build</Name> </UrlVariable> </value> </item> <item> <key> <string>rel1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"([^"]+-relnotes-[^"]+)"</Regex> <Url>http://www.oracle.com/technetwork/java/javase/downloads/index.html</Url> <Name>rel1</Name> </UrlVariable> </value> </item> <item> <key> <string>rel2</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"([^"]+-relnotes-[^"]+)"</Regex> <Url>http://oracle.com{rel1}</Url> <Name>rel2</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category>Development</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation /> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>{temp}jdk.exe</TargetPath> <FixedDownloadUrl>http://download.oracle.com/otn-pub/java/jdk/{version}-{build}/jdk-{version}-windows-x64.exe</FixedDownloadUrl> <Name>JDK</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now