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
I have an application that's built in Java 10. Most users only have Java 8, so they would need to download Java 10 in order to use the application.
Would it be possible to make a launcher that could download Java 10 for them so they wouldn't need to think about that?
Since Java 9, there is a new tool named jlink that you can use to create a custom Java runtime environment with exactly the parts (modules) that your program needs. You could use this for your program, so that your users don't need to have a pre-installed Java runtime environment at all - you would give them the custom runtime environment included with your game.
Another possibility is to try to compile your program using JDK 8 - you can still download JDK 8 from Oracle. Depending on how you wrote your program, you might need to change a few things in your code to make it compile and run on Java 8.
You can distribute your app with JRE (i.e. that's what JetBrains do with their IDE's).
Official Java documentation about this solution:
https://docs.oracle.com/javase/10/deploy/self-contained-application-packaging.htm
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 7 years ago.
Improve this question
So if I wrote an application for windows 8-10 on java, would it work for old versions like windows 98. And will it work correctly?
Both of them got the newest versions of JRE for example.
Well, you can't install Java 8 on systems older than Vista, so some programs might not run (specifically ones that use Java 8 features and APIs). Otherwise, they would work the same way, unless you do some sort of hacks that may break things.
If you had done your project in oldest version of java supported in vista/xp/windows 7 systems your application works perfectly it only depends on java environment once if it is satisfied your application will run without any compactability issues.
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
Is it possible to create programs in Java and run on both Linux and Windows?
What i mean is. is it possible "write once and run everywhere" . If not possible , is it possible to convert program from one platform to another by making minimum modification (ie, windows to Linux and vice versa)?
If that not possible,
Is it possible to create programs in a particular style which enables the programmer to convert it into , windows platform or to Linux platform
Even If this not possible is it possible to create new type of virtual machine system or something make it possible
even if none of the idea works , what is the biggest barrier? why it is not possible in a easy manner ?
Of course you can run java programs on windows an linux, and you can make cross platform programs in java as long as your operating system has the java runtime on it, if not... it won't run. You don't need to code different for windows and for linux in java, maybe just some minor adjustments in the program.You really didn't know that?
Anyway, because of your questions i suppose you are a little kid (i hope i'm not wrong) and my advice to you is that you begin by studing the java basics because your question is too basic... and sincerely, change you attitude, it will be good for you.
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 am building an application using java and oracle database. I want to confirm all the required software is installed and working properly on each time the user open the application and show the missing software/configuration error to the user and option to close the application.Is there any way.
You probably can't from a pure Java perspective, nor should you. That is really a job for your installation process. Every native platform you deploy to is going to have a different way of installing software and a different place to put it. If you really want to do this because you are doing your instillation with Java (and love writing more complicated code) you will need to leverage something like JNI or JNA to ask the underlying operating system what is installed. This is fairly simple on Windows and OS X, however, it's going to be next to impossible on most Linux's due to the differences in each package manager.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am writing an eclipse plugin, compatible to java 1.5.
If anybody who is working with java 1.5 or lower or higher, installs this plugin, will it work well?
You should included a Bundle-RequiredExecutionEnvironment: J2SE-1.5 statement in your plugin MANIFEST.MF if you are targetting java 1.5. That is both documentation and a note to the OSGi runtime about what is valid within that bundle.
No. It won't work on lower versions if you are using java 1.5 specific library calls which are not available in lower versions.
It depends on what functions your plugin uses. Certain functions are eventually marked as deprecated and are dropped in future releases, this can cause issues when newer versions of Java will run your code.
On the other hand, new functions tend to be added from one version to the next, so in your case, older versions might crash since some functions your application uses simply do not exist.
At most, what you can do is to specify a minimum Java version, and eventually even this can cause problems.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
we are trying to install a newer version of java but are not able to because there is a program that is using a previous version. we dont know what that program is. is there a way to get a list of prgrams that are currently using java?
If you're using windows, then download Process Explorer. This will give you access to all of the processes currently running, along with their children. It gives much more detailed information than Task Manager.
An easy way which would cover majority of cases is this:
1. search for all files with the extension JAR
2. search for all files called java.exe file - usually programs which require java have the jre installed in their directory structure