run vaadin application on pc - java

I have developed a vaadin application for a friend of me. Now I want to "install" this application on his pc so that when he clicks on an icon (like when you open, let's say spotify) the application starts and he can start using it... What is the easiest way to do this?

The application would be an runnable jar (using JSmooth or whatever you want). You would need to use an embeddable web server like Jetty. Here is a tutorial on setting up Vaadin with Weld and embedded Jetty. Here is an example Vaadin application that shows you how to set up the launcher to automatically start your application.
Hope that helps!

You can use Jsmooth to create an installer for the application.

Related

How to hide GWT com.google.gwt.dev.DevMode application window?

I have integration tests that start my GWT application using com.google.gwt.dev.DevMode class. The web server starts as expected but DevMode also pops out its graphic window. I would like to hide this windows as we may need to run these tests in the headless environment.
Is it possible to start com.google.gwt.dev.DevMode without its graphic window?
I think you could extend DevMode and call its setHeadless method. But you're not supposed to run integration tests in DevMode, you should run them in prod mode.
An alternative would be to provide a remote UI (this is what the Google Plugin for Eclipse uses to integrate DevMode into an Eclipse view), but it requires talking the remote UI protocol.

How To Change OS Windows from Web App?

I am writing a web app with java. I am curious to know if there is a way that I can switch between the browser window (running the web app) and a local Java client application window (standard Java window). The Java Window is Oracle Forms.
For example, when i'm running the web app in my internet browser and I click a button. I want the button to execute process to switch from the internet browser window to the local java/forms window. Thus I would need something to execute on the OS level to switch my window.
How could I do this? I'm interested in any idea that would make that usecase work. For example, I probably need to introduce and integrate new technologies with my app? Probably a Java Applet?
Thank you,
Gavin

java to access webcam and pen tablet (standalone app vs applet)

i need to develop in java an application that accesses local resources, mainly a webcam, and possibly a wacom bamboo pen tablet. It should take pictures and notes and then post them to a web server.
The ways i can think of are:
use applets
use some kind of standalone app created via JavaFx (or swing or similar)
Which way would you go about it? Are applets considered a viable/secure way to achieve this?
Thanks
I would go the standalone app route. I always turn Java off in my browsers because I can never remember which specific version has security bugs.
If you build it as a desktop app I think you could quite easily convert it to be an applet later on if you wanted.

Java applet in html without address bar

I just wanted to ask, how can we open Java Applet like a program, but not an application integrated in a web page.
You push a button in web page and java program will start, but not a java applet integrated in a web page.
Or like a webpage but without address bar :)
This is possible somehow , right?
Thank you for your time and for your answers!
UPDATE
This would be like a solution: http://orangoo.com/labs/greybox/normal_usage.html
Greybox!
Everything is okey, except you cant drag / move that popup window anywhere. Maybe someone is familar with Greybox and can suggest how this is possible? ( To move popup window)
:)
How about using Java Web Start technology instead?
http://docs.oracle.com/javase/tutorial/deployment/webstart/
Java Web Start software provides the power to launch full-featured
applications with a single click. Users can download and launch
applications, such as a complete spreadsheet program or an Internet
chat client, without going through lengthy installation procedures.
With Java Web Start software, users can launch a Java application by
clicking a link in a web page. The link points to a Java Network
Launch Protocol (JNLP) file, which instructs Java Web Start software
to download, cache, and run the application.

java service wrapper

I have a Swing Java application; assume it is just like calculator. What I want to do is
Start this automatically in start up
Run as a Windows service
Show an icon in the system tray when it closes.
Using Java service wrapper, I have made it to Windows service; but it is still not starting on reboot, nor does an icon display in the tray.
You can use winrun4j or Java Service Wrapper
For java service wrapper tutorial, have a look to this article
Take a look on http://commons.apache.org/daemon/jsvc.html
I believe that this is exactly what you need.

Categories