Java: how to execute easily a program in an other computer? [closed] - java

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).

Related

How class loading is done by using -Xbootclasspath/p:path? [closed]

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've seen -Xbootclasspath/p:path being used for loading class dynamically can you please elaborate and explain by providing example.
go to your command line and type java -X, to see the options available, -Xbootclasspath followed by path to comma seperated lists of jar files specified to prepend these classes before the standard jre classes. A use would be if you want to add patches affecting core runtime libraries.

Do each java program requires each jvm to run? [closed]

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
Consider, I have a simple java program to add 2 numbers. If I run this program in 2 different terminals, in how many JVMs do they run?
Each one has its own JVM instance. That should be obvious to you because the java command is not a system service.
Yes it does, unless you run multiple programs together and use a wrapper that starts each program in a different thread, as you can have multiple threads running within one JVM.

Java desktop jar to android [closed]

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.

How to compile a program (with gcc)? [closed]

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.

Installing Java using batch file [closed]

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 want to install java using windows batch file,means suppose I have jdk1.7.exe file and I want it to convert in batch file.I am totally new to this topic and I am really not getting what to do..?
I am not aware of batch programming too.If someone can help will be appreciated. Any suggetions,links,data most welcome.
Thanks..!!
I guess what you want is install Java in silent mode.
For that, run jdk1.7.exe /s
More information: http://www.java.com/en/download/help/silent_install.xml

Categories

Resources