Wow! Many thanks for that, that was one hell of a post. Unfortunately I do
need to run on a cdrom, and be able to distribute the app, both on cd and
via web, so using a pen drive and a mini-version of Ubuntu won't work for
me.

Anyway, once the data is entered the app will be closed, I won't need to
enter new data, thus I can run it on a cdrom. I think going to all this
trouble is overkill in my case, it's a tiny app with 5 tables and less than
500 records. 

So I am playing around with Adobe Air and it looks promising. Mind you, I
won't be able to re-use much of what I already have done, but hey, I get to
learn Air, Flex and SqlLite in the bargain!

Many thanks for the very informative and helpful post, I am sure someone
else will use your suggestion.

Bob


gerjan wrote:
> 
> Quoting syg6 <s...@yahoo.com>:
> 
>> Is this possible? I've been looking at SQLLite, Jetty, and projects like
>> Google Gears and Adobe Air. I would like to take my appfuse app and stick
>> it
>> on a cdrom. Of course the user would no longer be able to enter new data,
>> only browse existing data.
> 
> Don't know about a cd, but I've put an Appfuse-app on a ?6.95 bootable  
> 2 GB USB stick running the latest Ubuntu Linux desktop. It will be  
> used for a demo on an off-line system.
> 
> Data can be updated as usual, and changes are even retained between  
> subsequent boots!
> 
> Here's the recepy:
> 
> 1. Create a bootable, persistent Ubuntu USB drive. Ubuntu itself -  
> which you can run without installing from a downloadable Live cd - has  
> a USB creator tool on its System menu.
> 
> If you wish to do it manually and need more detailed instructions you  
> can find plenty of howtos out there, e.g.  
> http://rudd-o.com/en/linux-and-free-software/a-better-way-to-create-a-customized-ubuntu-live-usb-drive.
> 
> NB Make sure you create a persistent file system (casper-rw) with 1.3  
> GB or more. I happened to have 1.3 GB and I discovered that the  
> required JDK + DB + Maven repo + project sources & target & data leave  
> me with about 100 MB of breathing space.
> 
> 2. Boot your system from your USB stick and hook it up to a network.  
> Download and install a JDK, maven and your favourite database (I used  
> Sun's JDK 6 + Maven 2.0.9 + Postgresql 8.3.6) in a suitable folder,  
> e.g. /opt.
> 
> 3. Export env vars JAVA_HOME, MAVEN_HOME and add $MAVEN_HOME/bin to your
> path.
> 
> 4. Download/checkout your Appfuse project; build it and run it in  
> Jetty (mvn jetty:run-war -Ppostgresql; replace DB profile with yours).  
> You may avoid downloading 100-200 MB of Maven dependencies by copying  
> a nearby .m2 repo (you will have one on your dev box).
> 
> 5. Check out your app at http://localhost:8080 with Ubuntu's  
> pre-installed Firefox browser.
> 
> You may now shut down the system.
> 
> Plug the stick into any pc/laptop capable of booting from USB (= any  
> hardware less than 3-5 years old, I guess) and it will boot a system  
> having everything you need to run your webapp straight away, even  
> without a network connection. Simply start a terminal, cd into your  
> project folder and run mvn jetty:run-war again.
> 
> Ger-Jan
> -- 
> "I went out to Charing Cross, to see Major-general Harrison hanged, drawn,
> and
> quartered; which was done there, he looking as cheerful as any man could
> do in
> that condition."
> 
> Samuel Pepys
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Run-an-appfuse-app-on-cdrom--tp21928920s2369p21974763.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to