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!
Related
I have a java application that uses swing and I would like to share it on my website, so that users who have no JRE on their computers can open it.
First, I naively thought that a link to download a .jar was enough but now I realize that it needs a JRE to be launched properly.
So then, I looked for other solutions and I searched information for the applets, until I understood that it was now obsolete.
Eventually, I tried to understand that Java Web Start thing but I am completely lost, as it needs several files to be created and to setup the server. The tutorials I found weren't very clear... As I am an Eclipse user, I tried to look for a plugin that would do this automatically but I cannot find anything.
Do you know a plugin or is there a simpler possibility to share this very simple java application in a website ? Or do I have to try and try again to deploy my application through Java web start.
Thank you for your answers :)
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.
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.
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
Hi, there is a Java program edited and compiled using Netbeans 6.9.1. After running it's giving proper output in Netbeans output screen. But now I need to run this program in WAMP server. WAMP supports only scripting languages.
I can not run the Java program which I have already built. If I try to run in Tomcat I won't get war file to deploy. Should I use servlets? If so, how can I use it in Netbeans Java applications? Or should I convert (rewrite) Java program to PHP program, if so, how to convert?
How do I run the Java program in WAMP or Tomcat?
If your program writes to standard output, then you should be able to use CGI in some way.
Here are some (admittedly old) links on the topic:
http://www.javaworld.com/javaworld/jw-01-1997/jw-01-cgiscripts.html
http://www.gossamer-threads.com/lists/apache/users/184459
They should at least point in the right direction.
You have multiple options for running your java program:
Convert your program to a library and then integrate it with PHP
Package your application as a Java Web App.
In either case you should definitely have an idea of jsp, servlet read here
It looks like you've created a regular Java program because it outputs to the NetBeans console output.
You can't install a regular Java application to a web platform like that. You need to wrap it in a JavaServer Pages (JSP) application, Servlet or Applet to be able to run it on a web server. After that, install Tomcat or GlassFish as an application server to be able to access it on localhost (both are also optionally available from NetBeans, they can be found in the Plugins menu).
A good resource to start is this tutorial on JSP: http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html
WAMP won't be of any help, it can only serve as a host for PHP content.