Olá…
Estou estudando ainda a tecnologia java web start…
segundo sugerido em tutoriais, tenho meus arquivos da seguinte forma:
dentro da pasta webapps do tomcat tenho uma pasta fluxo contendo os arquivos: FluxoCaixa.jar, fluxo.jnlp, index.html
Arquivo fluxo.jnlp
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="1.0+"
codebase="http://localhost:8080/fluxo"
href="fluxo.jnlp">
<information>
<title>Java Web Start</title>
<vendor>SGCarro</vendor>
<homepage href="http://localhost:8080/fluxo/index.html"/>
<description>Tutorial Java Web Start</description>
<description kind="short">Tutorial JWS</description>
<icon href="images/logo.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="FluxoCaixa.jar"/>
<property name="myProperty" value="Isso é um exemplo de propriedade"/>
</resources>
<jar href="FluxoCaixa.jar" main="true" download="eager"/>
<application-desc main-class="view.JFFluxoCaixa"/>
</jnlp>
Arquivo index.html
<html>
<head>
<title>Fluxo Caixa</title>
</head>
<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
If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
javaws142Installed = 0
Else
javaws142Installed = 1
End If
If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then
javaws150Installed = 0
Else
javaws150Installed = 1
End If
End If
</SCRIPT>
<body>
<br>
<p align="center"><font face="tahoma" size="4"><b>Java Web Start</b></h1>
<p align="center"><img src="images/logo.jpg" border="0"/></p>
<p align="center"><font face="tahoma" size="2">
<script>
insertLink("fluxo.jnlp", "Clique aqui para executar a aplicação");
</script>
</body>
</html>
o problema é que quando eu abro esse index.html a referência para o arquivo .jnlp nao aparece… ou seja… o link “Clique aqui para executar a aplicação” nao é mostrado…
Obs: já tentei rodar pelo DOS também…
quando uso o comando “javaws fluxo.jnlp” ele gera esse erro:
An error occurred while launching/running the application.
Category: Invalid Argument error
Too many arguments supplied: {-splash, 58233, C:\Program Files\Java\jre1.6.0_07\lib\deploy\splash.jpg }
mas se eu executo o comando “javaws -Xnosplash fluxo.jnlp” ele carrega e abre a aplicacao corretamente…
fico grato pela ajuda…