Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating Delphi App to Java or to Web App

We want to migrate UI rich application from delphi to java or Web Application.

Reason is that we want application to be portable on all Operating Systems.

Current Components and Modules of Application in Delphi :

  • In Delphi we are utilizing TWebBrowser component to display HTML content
  • We are playing mp3 that is extracted from FileStream on clicks in HTML.
  • All resources for HTML are retrieved from Embeded Database Firebird/Ms Access.
  • To sync some content we are doing HTTP post to PHP scripts to centralize the data on webserver.

Deployment: - Application has to be deployed on CD and installed on Desktop computer on Mac OS, Linux, Windows.

I need your help how to approach this migration. Is better to go with Java UI or Web App that will be deployed with WAMP/XAMP and appropriate distributions on Linux and Mac's.

EDIT: I have some specific requirements for audio functionality. Audio files are separate files distributed on CD or USB. Audio files are one solid file compiled from mp3's inside. Application will have to have ability to extract the mp3 based on offset and size of mp3 stored in index file and to play in real time... How this affects idea of Web App using this approach.

like image 284
Irfan Mulic Avatar asked May 06 '09 17:05

Irfan Mulic


4 Answers

Why don't you give FreePascal a try? It uses the same language as Delphi, and can compile to a native application on Windows / Linux / Mac. Since you already have your app in Delphi, converting it shouldn't be too difficult.

Have a look at the freepascal website

like image 73
Birger Avatar answered Nov 13 '22 23:11

Birger


If I had to deploy on a CD, I'd probably go with Adobe's AIR. It is really fulfilling the promise Java made 10 years ago in a reasonable way. It isn't perfect, but it does a pretty good job.

like image 39
Travis Jensen Avatar answered Nov 13 '22 22:11

Travis Jensen


I've heard this internet thing is really taking off.

For all of the reasons that applications have gone online over the past 10 years, there really isn't much discussion to be had.

While Java is reliable, distributing and rolling out subsequent updates to those applications is heavy and time consuming.

I did Delphi development for over 9 years. I resisted the idea of distributing real applications over the web for quite some time. Today, I can't believe anyone would choose to continue in this way.

One nice thing, you can probably reuse some of your Delphi logic on the backend if you get creative. (I would only recommend this for the short term)

But, this answer doesn't really address your issue as you are saying that you must distribute it via CD.

like image 27
cgp Avatar answered Nov 14 '22 00:11

cgp


The Java 6u10 release allows for distributing Java WebStart applications on media instead of from a Webserver, which might be exactly what you are looking for. You can also put the JRE installer for Windows on the CD too, if needed.

What exactly are your requirements crossplatformwise?

like image 2
Thorbjørn Ravn Andersen Avatar answered Nov 13 '22 23:11

Thorbjørn Ravn Andersen