When I make a .jar file using BlueJ, it runs fine on both of my PCs (Notebooks)-one is running Windows Vista the other Windows 7 -but not on a different PC running Windows XP. This third PC does have the correct file association and a JRE. No error is displayed, the critical stop sound plays but there is no other activity.
The real question here is why did a standalone JRE work in Windows 7 but not Windows XP?
How can I be sure that people I write programs for can run the jar file without having to install a JDK? A JRE was sufficient for my Windows 7 pc, why is this not always the case?
if more than one jdk is installed,you must remove its.Then you install lastest version of jdk.
A standalone JRE allowed excution of jar files by double clicking on Windows 7 but not Windows XP. Based on this, some JREs perform differently than others on different O/Ss.
Related
I have developed a program using Java SE on Windows 7.
I build this app and it runs well on Windows.
I tried to run on Linux, so it runs but after some steps of:
Removing OpenJDK app.
Install Java JDK from terminal
Run jar file from terminal.
I need to make an installer on Windows - Linux - Mac, which installs JDK package and make the program run by double clicking.
Try using JarSplice. It is a nifty tool for converting Jar files into runnables for different systems. There are lots of tutorials on the internet on how to use it, although it is very well labelled and I found it simple enough to use.
I have installed Windows 10 Enterprise (64 bit). I have also successfully installed the Java Runtime Environment (v9.Build.83.x64).
The problem is, I cannot install any version of Matlab on the PC. I have tried to install different versions. Each one of the installations became stuck when I clicked on setup of Matlab. The installation does not run Java programs and only its icon in the taskbar is shown, but would not run. This also causes the PC to freeze and makes me run task manager and end task setup of Matlab. I did an install and uninstall java but that does not help either.
I created Software Project in java Netbeans 8 and running on JDK 8.My Operating System is 64 bit.And My client Machine running on Windows xp 32 bit operating system.Would it work in xp if i made exe ?
What is appropriate Java Platform in Windows XP?
None really. Read this: https://www.java.com/en/download/faq/winxp.xml which explains why Oracle no longer supports Java on Windows XP.
Now you can probably find older versions of Java that will run on Windows XP, but you won't be able to get (reliable) security patches any more, either for the OS or for Java.
Would it work in xp if i made exe ?
It probably wouldn't. For a start, many of the ways to turn Java code into an exe do it by embedding a JRE inside the exe!
Do yourself a favour and upgrade to a PC with a more up-to-date Windows operating system. Or install Linux on it ... for free.
You can still install the Java 8 version in windows XP. When you generate the exe file, try to generate with 32bits.
You can do it with Launch4j for example.
I have a working Java SWING-based desktop application, and I'm being asked if it can be run on the Microsoft Surface Pro or Pro 2. As I understand it, these are using stock Windows 8/8.1 and will be able to run any Windows app normally, is this correct?
Are there any caveats or special considerations when running my app on these devices?
Edit: If it matters, the JRE would be distributed together with the application, so installing Java isnt an issue.
... will be able to run any Windows app normally, is this correct?
You will be able to run Java programs, but only in Desktop mode after installing the JRE. Java 7 Update 10 added official support. See Java on Windows 8 FAQ.
By default, Java is not installed on the Surface Pro. There is no java.exe or javac.exe when attempting to run from the command line. You have to go to Oracle and fetch it.
I was able to install the JRE on my Surface Pro. The package was installed in C:\Program Files (x86)\Java\jre7\bin. After the install, java.exe -version worked from the command line (after fixing PATH). The install also included an IE plugin, and it appears to have worked with IE 10 from the tablet. I was also able to install the x64 JRE. I did not try to install the JDK.
There may be something offered on the Windows App Store, too. But I don't use the store, so I don't know.
I don't know if it is the right place to ask, if not tell me I will migrate my question elsewhere.
I am using OSX (Maverick) and I am trying to install the JDK 7 in order to use javaFX. So I downloaded the .dmg package from oracle and when I double click on the package, I get the error message can't found mountable file systems. In the documentation I found this alert:
If you download Java 7, you will not be able to run Java content in Chrome on Mac OS X and will need to use a 64-bit browser (such as Safari or Firefox) to run Java content within a browser. Additionally, installing Java 7 will disable the ability to use Apple Java 6 on your system.
So how can I properly install the JDK 7? and Is it dangerous to install it? Could it mess up all my settings, knowing that I only want to use the JDK 7 to run some java project ?
I believe the error message you are getting just indicated a corrupt dmg file.
Try downloading and installing it again and it should work fine.
So how can I properly install the JDK 7?
You can only install the 64bit version of Java 7, the only real downside is that it will not work with things like the crome browser, you can install it the same way as you first tried, download and install it from here: JDK Download
Is it dangerous to install it? Could it mess up all my settings
No, installing the JDK should not make any noticeable change, even if you run apps on it instead of your previous JDK/jar, they should still work. If you have older JDK's installed you can still use/select them in an IDE. If you do use crome then it should continue to work as normal using the existing/old JRE/JDK that you have installed.
knowing that I only want to use the JDK 7 to run some java project ?
The Java 7 JDK is backwards compatible, meaning it should run all existing java apps.
If you were worried about swapping between Java 6&7 then this thread may help: https://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2
You can download on another system. And unzip the contents to a folder. Then you can copy that onto your Mac and try. I guess that is what he meant by the folder.