How to link two Java applications [closed] - java

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'm new to Java and I completely have no idea how to do this. I have two separate Java applications and I want to sent a double value from the first application to the second application in order to use it in a calculation method then send the result back to the first application.
what is the easiest/ shortest way to do that?

Create .jar of your first application which contains your calculation method.
And use this .jar as library in your second application.
This is the easiest way
Reference Link : Creating a java library with Eclipse

Related

I want to start a project with webdriver and Java [closed]

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.

Best way to store application state java [closed]

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 have a java application which needs the 'TIME' last time my app has run.
i am running jar manually.Where should this last time run info can be stored .Should i store the last run time on file or some environment variables or some other?Please suggest best way of doing this.
A straight-forward way would be with the Preferences API. You won't need to care how the data is actually stored, or where.

turning java program into standalone application [closed]

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.

How to apply Java patches? [closed]

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 8 years ago.
Improve this question
Basically, I'm looking to find out how to apply Java patch files using Java. So, to sum that up, I need Java code to apply a patch file to a java source file.
Cheers!
There are many ways to extend functionality of the already developed Java application.
You can for example use external non-runnable *.jar files with some extra classes. To do so, you have to first implement proper "uploading" functions in your app, e.g. by using custom ClassPath objects, which is nicely described here, or you can try to use multi URLClassLoaders, which is described here.
There is also another approach, which allows you to call external methods in form of a String, but I haven't tested it yet, altough you can read about it here.

How to check whether a browser is installed in the machine using Java? [closed]

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 8 years ago.
Improve this question
I want to check whether a browser is installed on my machine using Java. That is I want to check whether Firefox,chrome etc is installed through my java code.
I don't think that is possible unless you have to scan through the OS directories e.g. in program files and check for browser excutable files. You might also as well run into permission problems.

Categories

Resources