%@page import="java.io.*"%>
<%@page import="java.util.regex.*"%>
<%@page import="java.text.*"%>
<%@page import="java.util.*"%>
<%@page errorPage="StdError.jsp"%>
JVirGel Download
<%
File rcwin = null;
String winver = null;
File rclin = null;
String linver = null;
String winsize = null;
String linsize = null;
String windate = null;
String lindate = null;
File[] winfiles = new File(this.getServletContext().getRealPath("/download/windows")).listFiles();
File[] linfiles = new File(this.getServletContext().getRealPath("/download/linux")).listFiles();
Pattern p = Pattern.compile("JVirGel(.+)-Setup.exe");
long date = 0;
DateFormat dafo = DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.ENGLISH);
for (int i = 0; i < winfiles.length; i++) {
String fname = winfiles[i].getName();
Matcher m = p.matcher(fname);
if (m.lookingAt()) {
String version = m.group(1);
if (rcwin == null) {
rcwin = winfiles[i];
winver = version;
date = winfiles[i].lastModified();
}
else if (version.compareTo(winver) > 0) {
rcwin = winfiles[i];
winver = version;
date = winfiles[i].lastModified();
}
}
}
windate = dafo.format(new Date(date));
p = Pattern.compile("jvirgel(.+).tgz");
date = 0;
for (int i = 0; i < linfiles.length; i++) {
String fname = linfiles[i].getName();
Matcher m = p.matcher(fname);
if (m.lookingAt()) {
String version = m.group(1);
if (rclin == null) {
rclin = linfiles[i];
linver = version;
date = linfiles[i].lastModified();
}
else if (rclin.getName().compareTo(version) > 0) {
rclin = linfiles[i];
linver = version;
date = linfiles[i].lastModified();
}
}
}
lindate = dafo.format(new Date(date));
DecimalFormat df = new DecimalFormat("0.##");
df.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.ENGLISH));
winsize = df.format(rcwin.length() / (1024d * 1024d));
linsize = df.format(rclin.length() / (1024d * 1024d));
%>
Download JVirGel
|
|
Installation Instructions
- Windows version:
Simply execute the JVirGel.exe file.
- Linux version:
Extract the tar archive:tar -xzf JVirGel.tgz
and start JVirGel: cd JVirGel ./JVirGel
|
|
|
" title="Start download" style="font-size:1.4em;font-family:sans-serif;white-space:nowrap;">Free Download
JVirGel
<%=winver%> Windows-XP
<%=windate %>
(
<%=winsize%> MB)
|
|
|
|
|
" title="Start download" style="font-size:1.4em;font-family:sans-serif;white-space:nowrap;">Free Download
JVirGel
<%=linver%> Linux
<%=lindate %>
(
<%=linsize%> MB)
|
|
|
|
Click here
to download other versions of JVirGel
Download Guided Tour
|
|