Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 months ago.
Improve this question
I want to execute powershell cmdlets using java . Is there any way i can implement this?
I tried using Runtime and exec commands but output window hangs in between.
It's easier to use the newer ProcessBuilder class. Runtime.exec has several pitfalls that you need to remember, in order for things to work correctly. For example you need to make sure that the input and outputstreams to the process are handled correctly.
I suggest you google for an example on using ProcessBuilder.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I tried using socket. It worked great, and was fast, but I could not read the data from the python server using java. So I want to know if there is a fast way available in both python and java.
Is there a fast way to transfer data over the internet between Java program and Python??
Jython
Run Python code on the JVM using Jython. Have access to Python from Java code, and access to Java from Python code.
See Jython.org.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to run a TCL script out of my JAVA program.
As I want to create a GUI which will start a TCL script in the end.
I have some knowledge of JAVA and none of TCL.
I'm happy about every hint!
Use ProcessBuilder for launching the TCL scripts from your java program
Examples
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I start working with a project and want to start project with Selenium. Please suggest me how can i start write script in Eclipse with Java?
What you want JavaScript or Java? Because your title and body are different.
If you want to do using Java then you know as you told that you are working. Just I want to give you one point for start up project that always use class/name/value/others use for Xpath, NEVER use ID. Because for every build the ID will changed.
If you want to set up your project using JavaScript then use WebDriverIO or WebDriverJS. You can google for details on that.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to convert my java program, TextFileAnalyzer, to a standalone application. I am not sure how to go about this I have done research and did not find anything helpful. If someone could get me in the right direction that would be awesome! Thanks.. Here is my program for reference:
You don't say what platform(s) you are targeting, or if you need to ship a complete executable. But, there are a few cross-platform Java wrappers. A common one is Launch4J.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How do I do this?
You can execute anything you want from Python with the os.system() function.
os.system(command)
Execute the command
(a string) in a subshell. This is
implemented by calling the Standard C
function system, and has the same
limitations. Changes to os.environ,
sys.stdin, etc. are not reflected in
the environment of the executed
command.
For more power and flexibility you will want to look at the subprocess module:
The subprocess module allows you to
spawn new processes, connect to their
input/output/error pipes, and obtain
their return codes.
Of course, Jython allows you to use Java classes from within Python. It's an alternate way of looking at it that would allow much tighter integration of the Java code.