How to embed Java Web Start application (with jnlp) to Google?

I created some simple Java application and "deployed" it using Java Web Start (and jnlp) on my local machine. Now I would like to put it on the Internet, get feedback from different people.
I was thinking about embedding my app in google framework (pages.google.com/sites.google.com/blogger.com - whatever).

Question: How can I do this? What can I change in my .jnlp file (now I have a local hardcoded path - "jnlp codebase =" file: / D: / Projects / SomeApp / dist "...")?
How do I embed the file structure (/../dist/somefiles and /../dist/lib/somefiles) into the (mentioned) google framework?

+1


a source to share


4 answers


I was looking for an answer but I couldn't find it anywhere. Maybe all the hosts on sourceforge.net or Java Web Start are not popular at all. I first found a post on the newsgroup that on code.google.com you can directly call the .jnlp file from SVN. This prompted me to play around with sites.google.com and it is very simple.
1) Create a page and insert all the files there - for this purpose, the "cabinet" page type will be the best. This way you will have a page http://sites.google.com/site/MyPage with a jar bundle attached to it.
2) In the launch.jnlp file add the following changes:
for codebase

<jnlp codebase="http://sites.google.com/site/MyPage" href="launch.jnlp" spec="1.0+">

      

for any jars referenced:



<jar href="http://sites.google.com/site/MyPage/SomeLibrary.jar"/>

      

3) Attach start.jnlp to MyPage and that's it.
4) Clicking on the launch file will launch the application.
Organizing everything in a more structured way won't break anything until you remember to update the links in launch.jnlp.

+2


a source


Sun has a tutorial that describes how to set up files.

Your problem will be limited to Google systems. I can't confess to deep knowledge of the services, but looking at the ones you mentioned I don't see an option to download archive files, which would make it difficult to infer .jars.



You may need to look for regular web hosting.

0


a source


If you need to deploy everything in a WAR file, the JnlpDownloadServlet system might be exactly what you need, as it allows you to do just that.

http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html

0


a source


Apparently this is a way that doesn't require the file to be in the upload, but in svn. To do this, you need to set the "svn: mime-type" property for the loaded jnlp, otherwise the link won't work.

I think it works because the svn apache module (which Google should use) sets the correct content-type if it finds this property.

0


a source







All Articles