Groups > eComStation > eComStation applications > Re: java webstart




java webstart

java webstart
Wed, 23 Jan 2008 16:37:12 -050
I'm having trouble with webstart on one of my machines.

This machine has the latest java 142_09, and the 7 dll files are copied to my 
moz_plug directory.

I can run java applets from Firefox, but when I try a webstart demo
http://java.sun.com/products/javawebstart/demos.html
it just opens a txt file like so:
<?xml version="1.0" encoding="utf-8"?>

<!--
###############################################################################
#
# @(#)draw.jnlp	1.6 02/09/11
#
# JNLP File for Draw Demo Application
#
###############################################################################
  -->


<jnlp spec="0.2 1.0"
       codebase="http://java.sun.com/products/javawebstart/apps"
       href="draw.jnlp">
    <information>
       <title>Draw 4 App</title>
       <vendor>Sun Microsystems, Inc.</vendor>
       <homepage
href="http://java.sun.com/products/javawebstart/demos.html"/>
       <description>A minimalist drawing application along the lines of 
Illustrator</description>
       <description kind="short">Draw Demo Short
Description</description>
       <icon href="images/draw.jpg"/>
       <offline-allowed/>
    </information>
    <resources>
       <j2se version="1.3+"
href="http://java.sun.com/products/autodl/j2se"/>
       <j2se version="1.3+"/>
       <jar href="draw.jar" main="true"
download="eager"/>
    </resources>
    <application-desc main-class="Draw"/>
</jnlp>


-- 

=========================
Bart

Post Reply
Re: java webstart
Wed, 23 Jan 2008 22:59:51 +000
Hi Bart

Bart wrote:
> I'm having trouble with webstart on one of my machines.
> 
> This machine has the latest java 142_09, and the 7 dll files are copied 
> to my moz_plug directory.
> 
> I can run java applets from Firefox, but when I try a webstart demo
> http://java.sun.com/products/javawebstart/demos.html
> it just opens a txt file like so:
> <?xml version="1.0" encoding="utf-8"?>
> 
> <!--
>
###############################################################################

> 
> #
> # @(#)draw.jnlp    1.6 02/09/11
> #
> # JNLP File for Draw Demo Application
> #
>
###############################################################################

> 
>  -->
> 
> 
> <jnlp spec="0.2 1.0"

----- snip ----

> </jnlp>
> 
> 



When I click on the Draw, Launch button I get the "Seamonkey does not 
know what to do with this file" dialog which allowed me to select
"open 
with" and point to the \java142\jre\javaws\javaws.exe (webstart 
executable) file.

Seems to work fine...

Do you have javascript Enabled?

Maybe your SM installation is setup to open jnlp files as text?

Regards

Post Reply
Re: java webstart
Wed, 30 Jan 2008 12:19:51 -050
Hi Pete
> When I click on the Draw, Launch button I get the "Seamonkey does not

> know what to do with this file" dialog which allowed me to select
"open 
> with" and point to the \java142\jre\javaws\javaws.exe (webstart 
> executable) file.
> 
> Seems to work fine...
> 
> Do you have javascript Enabled?
JS & java are enabled. Java applets do work here.

> Maybe your SM installation is setup to open jnlp files as text?
I use Firefox, this dialog:
Tools>Option>File Types>Manage
is empty.
However I am using MediaPlayerConnectivity. I have tried setting up javaws.exe 
in it. When I click on the webstart link, MediaPlayerConnectivity opens a new 
frame the left of the Firefox window with a couple of links. Clicking these 
links results in nothing on the screen. Using TOP I can see a new javaws is 
launched in the background every time I click a link.

When I disable javaws in MediaPlayerConnectivity, clicking the link opens a text

file, I am not asked what I want to do with the file.

The readme with Innotek Java says javaws needs to be setup as a helper 
application, but since Firefox is directly opening the link as a txt file, I do

not have the option to set up as helper app.

Maybe there is an entry in the prefs.js I can try? Can someone help me with the

syntax?



-- 

=========================
Bart

Post Reply
Re: java webstart
Fri, 01 Feb 2008 15:05:51 +000
Hi Bart

Bart wrote:
> Hi Pete
>> When I click on the Draw, Launch button I get the "Seamonkey does
not 
>> know what to do with this file" dialog which allowed me to select

>> "open with" and point to the \java142\jre\javaws\javaws.exe
(webstart 
>> executable) file.
>>
>> Seems to work fine...
>>
>> Do you have javascript Enabled?
> JS & java are enabled. Java applets do work here.
> 
>> Maybe your SM installation is setup to open jnlp files as text?
> I use Firefox, this dialog:
> Tools>Option>File Types>Manage
> is empty.



Not familiar with Firefox but in SM, Preferences, Helper Apps I now have 
this entry for jnlp fles:-

MIME type:  application/x-java-jnlp-file
Description:  JNLP File
Extension: jnlp

When a file of this type is encountered I have "Open it with" selected

and the complete path to javaws.exe, in my case 
J:\Java\JAVA142\jre\javaws\javaws.exe

That seems to work OK for SM and Firefox cannot be much different.

Is there a "New Type" button in Firefox, Tools>Option>File
Types>Manage? 
If "Yes" click it and see if it looks like you can use the above SM 
entry as an example - change the drive:\path to javaws.exe to suit your 
system though  :-)


> However I am using MediaPlayerConnectivity. I have tried setting up 
> javaws.exe in it. When I click on the webstart link, 
> MediaPlayerConnectivity opens a new frame the left of the Firefox window 
> with a couple of links. Clicking these links results in nothing on the 
> screen. Using TOP I can see a new javaws is launched in the background 
> every time I click a link.
> 


MPC is not for java webstart.


> When I disable javaws in MediaPlayerConnectivity, clicking the link 
> opens a text file, I am not asked what I want to do with the file.
> 


Sounds like somewhere on your system jnlp is defaulted to a text file 
type - and, checking the Properties of a jnlp file here I see that it is 
set as Plain Text.

To change that locate the Java Web Start object in the OS/2 Kit for Java 
Desktop folder and Associate that object with *.jnlp files - you will 
probably need to enter *.jnlp in New name and then click Add.

> The readme with Innotek Java says javaws needs to be setup as a helper 
> application, but since Firefox is directly opening the link as a txt 
> file, I do not have the option to set up as helper app.
> 
> Maybe there is an entry in the prefs.js I can try? Can someone help me 
> with the syntax?
> 
> 
> 


Hope the above helps

Post Reply
Re: java webstart
Mon, 10 Mar 2008 11:31:22 -040
I'm still trying to get javaws working here so I can demo a java business app.

I was able to set up javaws as a helper app. Nothing appears to happen, but on 
further inspection, using TOP I see that a process is started.

I also tried command line, i.e. javaws draw.jnlp and
     javaws http://java.sun.com/products/javawebstart/apps/draw.jnlp
there is no error message, but with TOP I can see that a process is started.

There are some samples here...
http://java.sun.com/products/javawebstart/demos.html

-- 

=========================
Bart

Post Reply
about | contact