Jump to content
Ketarin forum

Looking for a way to download Oracle/Sun JDK


CybTekSol
 Share

Recommended Posts

  • 1 month later...

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

  • 1 month later...

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

  • 5 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.