Home > Java, Java Mac, SunSPOT > How to run the SunSPOT manager

How to run the SunSPOT manager

When you install the SunSPOT software you will notice that there is a SPOTManager.jnlp (web start) file. You can use this file to run the SunSPOT manager but it will most likely fail (it failed with me). There are three ways you can run it.

The easiest is to just run it from SunSPOT’s web site.

The second is to get all the needed jar files in your file system and change the  SPOTManager.jnlp file by hand to point to the location of these files. The jar files you need are

  • SPOTManager.jar
  • swing-layout-1.0.3.jar
  • activation.jar
  • mail.jar
  • PDFRenderer.jar

You can get these files from their corresponding web sites, or for convenience download them from http://www.sunspotworld.com/SPOTManager/dist/. You will need to append the file name of each jar at the end of the url: http://www.sunspotworld.com/SPOTManager/dist/SPOTManager.jar and so on.

Once you have downloaded all of them change the  SPOTManager.jnlp file to look something like that

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:///Users/panos/Java/SunSPOT/" href="SPOTManager.jnlp">
    <information>
        <title>SPOTManager</title>
        <vendor>Sun Labs</vendor>
        <description>SPOTManager</description>
        <description kind="short">SPOTManager</description>
        <homepage href="http://www.sunspotworld.com/"/>
        <icon href="SpotDownload.png" kind="default"/>
        <icon href="SpotSplash.png" kind="splash"/>
    </information>
    <resources>
        <j2se version="1.5+"/>
        <jar href="webstart/SPOTManager.jar" main="true" download="eager"/>
        <jar href="webstart/swing-layout-1.0.3.jar" download="eager"/>
        <jar href="webstart/activation.jar" download="eager"/>
        <jar href="webstart/mail.jar" download="eager"/>
        <jar href="webstart/PDFRenderer.jar" download="eager"/>
    </resources>
<security>
    <all-permissions/>
  </security>
    <application-desc main-class="sunspot.spotmanager.Main">
    </application-desc>
</jnlp>


Note that I have changed the codebase to point to a file on the local file system instead of the web. And also the jar file is referenced relevant to where the  SPOTManager.jnlp file is. If SPOTManager.jnlp is in folder x then the mail.jar should be in x/webstart/mail.jar.

Also, it’s very important to sign the jars from the beginning again. And sign them all with the same signature. You can create your own certificate to do that.

If you have followed all the steps correctly you should be able to run the SunSPOT manager.

The third solution is similar to the first one. Instead of having the files served directly from the file system you can upload them to the local apache server (to start the apache  System Preferences – Sharing – Personal Web Sharing. This should start the apache) and have apache serve them for you. Then doubl click again the SPOTManager.jnlp and the manager should start.

Advertisements
Categories: Java, Java Mac, SunSPOT
  1. 16 May 2008 at 12:02 am

    All of these steps will work, but I’m not sure what they actually buy you, other than SPOTManager will never properly update itself. Running from the website-provided jnlp will allow you to create a desktop (or any other place) application which will run either connected or disconnected, and will check for updates when connected.

  2. 16 May 2008 at 8:14 am

    Nice one David, thanks for the info. I wasn’t sure how it works, I thought the manager could update regardless where you originally ran it from.

  3. Hermann
    19 April 2014 at 2:53 am

    But the fact remains that the SpotManager does NOT install, claiming “security” excuses
    Once Sun Microsystems had good products. As it is, I am wrapping this SunSpot trash and sending it back for refund… with a copy to my lawyer!

  4. Hermann
    27 April 2014 at 2:55 am

    My problem with installing SunSPOT Manager from the distribution CD has been a persistent error: “invalid menu handle.”

    I tried the solution offered above, but the message persists!

    I did resolve the Security problem – which turned out to be a stricter certificate handling by Java 1.7. Downgrading to 1.6 – as on the CD, resolved that issue, and a download takes place – but… has displays the error message above.

    I checked the Folder types, and inserted JNLP for “JNLP File.” This did not change matters.

  5. nomin
    6 March 2015 at 1:32 am

    hey why isn’t sunspotworld.com working?

  6. modi
    17 September 2015 at 2:00 am

    Hi! i just checked the web sunpotworld.com is moving into sunspotdev.org. But, i can’t find the required jar files. Would you mind to send the jar files to me by email? thank you.

  7. athan
    12 November 2015 at 5:11 pm

    ..yeah same here if it’s easy

  8. 12 November 2015 at 5:54 pm

    Sorry guys I don’t have the jar files anymore. This is an obsolete project.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: