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.
Related
I have a problem with a particular windows installation where any graphical element of java refuses to run.
Java has previously ran successfully on the current Windows installation, but was probably over 12 months ago.
This issue presented itself when I tried to run a .jar and no window ever opened (nothing showing signs of life in task manager).
Clicking 'Java' in control panel results in the 'waiting' cursor for a quarter of a second then nothing.
Running 'About Java' and 'Configure Java' shortcuts also results in this same behavior.
I have tried:
Uninstalling Java, rebooting and re-installing the latest x64 version (1.8.0_271)
Running 'JavaRa' (JavaRa) in the hopes of cleaning up something that the uninstallation missed
Removing '.\Oracle\Java\javapath' from PATH environment variable as suggested by java x86 stackoverflow question
The only signs of life I can get is in powershell/command prompt.
Running java -version results in the output as expected:
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
However running, java -jar 'jarfile.jar' does not launch the application window.
Amendment:
I have resorted to trying a fresh copy of Windows installed on a USB drive. I have installed the same x64 version of Java using the same offline installer .exe
Java works normally on this fresh install.
Running a .jar on existing windows install
running java -jar "technicLauncher.jar" results in
Settings for exe: /D:/TechnicLauncher.jar
Portable settings dir: E:\technic
At this point, the applications user interface does not open, powershell displays: Setting up logging then the program exits.
Running a .jar on fresh windows install
running java -jar "technicLauncher.jar" results in
Settings for exe: /D:/TechnicLauncher.jar
Portable settings dir: E:\technic
At this point, the applications user interface opens and I can continue as normal.
Do the big Linux distributions support java when freshly installed?
If i have a Java Swing application, will it work in a freshly installed Linux with no internet connection?
I understand that there are no guarantees, but how likely is it for a Linux machine NOT to have any java/Swing support?
if you can check the o/p of command java -version in a terminal, it'll show if you have java installed or not.
So if Java or JRE is installed you can surely use your Swing application.
But if you are planning to develop a swing app you need to have JDK installed in your system.
you can if the command javac -version is working then you have JDK installed in your system.
But I suspect if any Linux distribution comes pre-installed with a JDK. For once you can find installed JRE by default but it is difficult to get pre-installed JDK in any Linux OS.
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.
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.