How to deploy Java desktop Swing application on the cloud? - java

I've made a Swing .jar game which I want to run online. Is there any way in which I can make it run on the cloud, like on Azure? I made it into an applet, but its no fun. I know we can deploy Servlets on these clouds. How can I deploy this desktop application I made online?
Thanks in advance!

As far as I know, if you need to deploy an application in the cloud it has to be a web based application.

You Can use AJAXSWING to convert Java Desktop application(.jar) to Web Application(.war) automatically. Read the link ajaxswing

Related

Java application for a server

I have created a JavaFX app, but it seems that servers do not support UI applications. What is the easiest way to develop Java apps for servers? (In other words, what solution does IntelliJ IDEA have? I don't want to rewrite a lot of code)
JavaFX is a technology for creating desktop (client) application on Java. These application are run on a local computer, that computer the user is currently interacting with.
There is Java WebStart technology. It lets us place the application .jar (java executable) on the server and call it via a link from a web page or direct URL. In this case the application will still be running on user's local computer. At the same time, application deployment can be easily managed, since the application executable is sitting on a single location on the server.
JavaFX works with WebStart, you will need to create a JNLP file. It is a descriptor of the application. Here is some info: Java WebStart
I hope this helps.
Java Web App? if I understand you, get my small advice.
You will have to rewrite all controllers, and change UI fxml forms to web pages (html + thymeleaf, jps, jsf and so on).
If you have bad project architecture, for example: you connect with database and retrieve data into controller classes, methods, it's so bad, and you will rewrite a lot of code.
But if it don't
You should just create web controllers, inject needed services, facades and call needed methods there.
Good luck)

Java SWT Application to Web Application

For a project, I have to convert a large Java application with an SWT GUI into a web application. Does anyone have any recommendations on starting a project like this? Some ideas I've had are:
Java Play
Java Server Pages
JWebSocket
PHP/Java bridge
Also, one of the problems is that I only have access to the JAR file for the application and need to run it with parameters from a terminal. Would this be possible from one of the options listed above?
I appreciate any help you can provide!

Java/JSP : Making a executable Java working as webapp

I have a standard java project working local made by another person i know.
It's about data retrieving.
I need to develop a web app supposed to do the same thing but accessible by anyone via browser.
I CAN'T edit the code for that purpose, at least some implementation details. A kind of black box.
Can you suggest me the best approach to make a webapp based on a local executable app through JSP & servlet ecc?
Maybe you can try something like webswing.
What is Webswing ? Webswing is a web server that allows to run any swing application inside your web browser using only pure HTML5.
The best days of swing framework are gone. Desktop applications lost
popularity and everything is forced to be online and mobile. But what
about existing application? Using applet technology proved to be
insecure, rewriting the application to web technology is too
expensive. This is where Webswing can help you. With Webswing, your
application is securely running on server and user's browser only
displays the application window. All this without changing single line
of source code.

Using FreeTTS in a web application

I'm building a web application using HTML and JSP. One of the functionality which provided is converting some texts to speech. In netbeans, I created a Java project, this project contains a Java applet offers the speech task, this applet uses FreeTTS (external JAR file), and it works fine. So after building this project, I added its JAR to the web project, for embedding the applet within the web.
Now, the problem the applet doesn't work from the website, but it works standalone.
Please I need your help to fix this issue.
The FreeTTS developers recommend against using it in an applet, and suggest deploying it via Web Start instead. If it does indeed work fine standalone, that should fix your problem.
If you can't use Web Start, you could consider moving the audio generation to the server and running FreeTTS there.

eclipse: how to create an applet?

I have finished writing my applications, and would like to deploy it as a Java applet.
How can I start this ?
Additionally, how would you deploy it on html page, and pass an argument to the Java applet ?
Here is a tutorial on how to create an applet in eclipse. http://www.roseindia.net/eclipse/applet-eclipse.shtml
If you merely wish to deploy an app. from a web site, look into Java Web Start. JWS can launch a standard frame (or applet) direct from a link on a web page, and has much fewer hassles, while providing many benefits.

Categories