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.
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
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.
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
I'm learning java by myself and read a question in a book which states: "which java class never needs to be imported." Can anyone help me?
java.lang.* is always automatically imported.
This contains classes like System, Object, String, Math, etc.
Here are the docs.
The Object class that every other class derives from. Other examples are String, System and the autoboxing classes (Integer, Boolean etc.).
Are you referring to a package? The java.lang package is automatically imported in any Java program. Please read this for more information.
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