Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: Deployment of application thru java webstart


Message #1 by "Sidh Jain" <sidh_jain@h...> on Thu, 11 Jul 2002 15:41:44
Hi Can anyone help me in intsalling my application on Java Webstart.
here is the copy of my html file
<html>
<head>
<title>Graf Zeppelin</title>
<script language="JavaScript">

var sSessionBase = '';
var sSessionId = '';
var sCurrentUser = 'jain.s';
var sAnchorTarget = 'ExpressSubWindow';
var winSub = null;
var winHelp = null;

</script>

<script language="JavaScript" 
src="/pathways/javascript/GrafZeppelin.js"></script>

<script language="javascript1.2">
var javawsInstalled = 0;
isIE = "false";

if (navigator.mimeTypes && navigator.mimeTypes.length)
{
var x = navigator.mimeTypes["application/x-java-jnlp-file"];
if (x)
{
javawsInstalled = 1;
}
}
else
{
isIE = "true";
}

function get_jnlp()
{
document.location = "install/Site.jnlp";
}
</script>

<script language="vbscript">
On Error Resume Next
If isIE = "true" Then
If Not(IsObject(CreateObject("JavaWebStart.IsInstalled"))) Then
javawsInstalled = 0
Else
javawsInstalled = 1
End If
End If
</script>

<STYLE TYPE="text/css">
TH.header {font-family: "Arial,Helvetica"; font-size: 8pt; background-
color:
#CCCCCC; color: #666666}
TR.line1 {background-color: #FFFFFF; font: 8pt}
TR.line2 {background-color: #EEEEEE; font: 8pt}
TD.col1 {vertical-align: top}
TD.col2 {width: 50%}
TD.col3 {width: 50%}
A.link {color: #000099}
</STYLE>

</head>

<body>

<TABLE COLS=2 CELLSPACING=0>
<THEAD>
<TBODY>
<TR CLASS="line1">
<TD CLASS="col1"> </TD>
<TD CLASS="col2">
<script language=javascript>
if(javawsInstalled)
{
document.write("<a class='link' 
href='http://localhost:8100/Pathways/GrafZeppelin.jnlp'> Launch 
GrafZepplin</a>");
}
else
{
document.write("<a class='link' 
href='http://java.sun.com/products/javawebstart/'> Install Java Web Start 
for Graf Zeppelin</a>");
}
</script>
</TD>
<TD CLASS="col3">
<script language=javascript>
if(javawsInstalled)
{
document.write("Click here to install or launch the Graf Zeppelin.");
}
else
{
document.write("Click here to download Java Web Start After download and 
installation of Java Web Start(tm) return to this page to install Graf 
Zeppelin");
}
</script>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>

and here is the copy of my jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://localhost:8100/Pathways/" href="GrafZeppelin.jnlp">
<information>
<title>Graf Zeppelin</title>
<vendor>P&G</vendor>
<homepage href="index.html"/>
<description>Graf Zeppelin</description>
<description kind="short">Grap Zeppelin Application to display Graf 
Zeppelin</description>
<description kind="one-line">Graf Zeppelin System</description>
<description kind="tooltip">P&G</description>
<icon href="images/gpblogo.jpg"/> 
<offline-allowed/>
</information>
<security>
<all-permissions />
</security>
<resources>
<j2se version="1.3+" initial-heap-size="24m" max-heap-size="256m" />
<jar href="y.jar" />
<jar href="GZ.jar"/>
</resources>

<application-desc main-class="pathways.GZBase">

</application-desc>
</jnlp>

I am using Windows NT and web browser is IE 5.0 and my web server is JRun. 
Now I have two resources y.jar and gz.jar but it says Bad Mime Type 
returned for resource y.jar - null.Now what shoudl I do.I have mime type 
for JNLP set in the web server already.

I have jws installed and it is Java Web Start 1.2.

I am first trying to do it ony my local machine.
It would be great if anyone could help me in this process ans I am not 
able to understand from the documentation what all needs to be done.

Sidh 



  Return to Index