Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a java application (a standard POJO) that I have built and ran using Maven. Currently I'm using it as a Desktop application (JAR) but now I want to export the application as a WAR and run it on a tomcat server. How can I do this using Maven?
You will have to do some changes to the application. In particular all the user interface code needs to be rewritten from what ever you use now to a web interface. Reconfiguring the build to create a war is likely the easier part. You can do this by using the war plugin.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
i have a java application which is running on client machine that tool need to have version info and user should be prompt for new version upgrade and download whenever same is updated on server.
You can maintain version in client executable as constant. e.g X.Y.Z
On start of application this constant (X.Y.Z) should be checked against latest version number stored on centralize server(in a database table or flatfile or can use webservice)
if version doesn't match you can launch browser with URL where latest executable are available. You can automatically kick the download as well.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have desktop simulation which is developed in java (jar file). Is there a way to convert java desktop application to an Android app.
If you would like to convert a java desktop app to an Android app, you would have to get hold of the source code and adjust to make it run on the Android platform, make it work with the Android lifecycle and make it respond to the input methods provided.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to execute the program I've written in Java in another computer different from mine. Is there a way to make it run without having to set the system and enviroment variables and without having to compile it manually through the shell? It would be great if I could just click on a file and make it run. Thank you
Create a runnable jar. If the user has his Java set up properly, it can be run by double clicking on the jar.
(Provided of course that you don't make it depend on paths or other things on your particular computer).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am writing a cross-platform IDE, and am wondering what the best way to compile a program (with gcc) using java code. (It's also a cross-language IDE)
Should I access the command prompt/terminal?
Also can I have some example code?
You can probably just execute gcc in a separate process. But rather than handling this all yourself, use something like Apache Commons Exec, which is great for this sort of thing.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
sorry for my language,My question is how to Integrate Drools technology to my web-application,please tell me step by step because i am a learner so please tell me.I already read this document(http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html/ch14) but i need more clarity that means fully architecture or please send me any u r sample web-app with Drools technology as a ZIP file or war file. i will unzip then copy in to my eclipse workspace. Please i will report any sample web-application with drools on tomorrow to my Project lead.
Thanks,
Abhi.
No, you should never, ever unzip a JAR file like that. Just add it to your classpath by putting it in your WEB-INF/lib and start writing classes.