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>