Create a Java application for WEB that also runs via desktop

0

Good night everyone.

I'm thinking of developing an application with the following features:

Backend: Java

Frontend (Option 1): JavaFX

Frontend (Option 2): HTML5 + CSS3

I want to start the right way, internationalizing the application with resource bundle, etc, etc, etc. However, I also want my application to run via the desktop, but also accessible via the web.

Summarizing my question: What are the tools for developing a Java application that runs via Desktop and also via the web? Does my backend change while developing for one and the other? or just the interfaces? Thank you in advance.

Note: I've heard of Java Web start, but from what I read it projects a java desktop application to the web, but it does not do the opposite.

[Result]

I talked to a friend and a great developer today, and put together the following framework for entering the job market:

1) JAVA

2) JSF

3) MVC

4) JAVASCRIPT + HTML5 + CSS3 + AJAX

I have also been able to understand that the ideal Backend works for several front-end, and that there is no universal, and even if it is possible, it is not commercially viable because every screen, be it mobile, desktop or web, has its peculiarities. I have seen spectacular pages reduce to home projects simply by developing a web interface without considering the structure of access via mobile. Facebook itself has difficulty in portabilizing features of the desktop browser to mobile browsers, despite the efforts. I think what I could learn from this discussion was that the ideal design model should include a robust backend with programming language and database (in most cases) and a front end for each type of client (web, desktop, mobile , even access via lynx console for example). My intention as an aspiring "programmer aspirant" is to maximize my knowledge in Java SE and Java EE, and thus become a development expert for multiplatforms.

Thank you all.

    
asked by anonymous 09.08.2017 / 04:36

1 answer

1

Use HTML5 + CSS3.

The reason is that if you plan to program to the web, ideally the user is running your program through the browser, and so, just know the URL of your program and will be able to access it .

In the case of the desktop, the solution is the same, the only difference is that the address to be accessed will be in localhost or something like that.

HTML5 + CSS3 is widely spread and anyone has a browser that can handle this without you having to ask the user to install anything.

JavaFX on the other hand is strictly for desktop applications, such as Swing and AWT.

The idea was even to allow JavaFX to be used for Rich Internet Applications (RIA) development, but that did not avenge because it depended on the possibility of running JavaFX inside applets. It happens that all modern browsers discontinued the use of applets, which killed and buried this possibility. So, JavaFX has only been live on the desktop.

    
09.08.2017 / 04:59