How to compile a program (with gcc)? [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 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.

Related

grep command equivalent in Java [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 8 years ago.
Improve this question
So, I have this question here, which has been answered. I'm looking to replicate the marked answer in Java. Is there any way I can do some/most/all of it in Java?
Of course Java can be used to replace grep as seen e.g. in this question.
As you really want extract parameter values from a URL you could e.g. go with this approach, where a simple Java-function returns all parameters and their values as a Map. If you already use a HTTP-related library you may also want to look if they included a similar function.

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: how to execute easily a program in an other computer? [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 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).

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