Java JDK installer won't run - java

I tried the other solutions but they didn't worked, so please don't just say "It's a duplicated so now you have to open this link." Because I tried them.
I have Windows 8.1 and I installed Java 8 JDK some days ago, now I unistalled it because I've had some problems with it (like the PATH for cmd was not set), and after unistalling it I tried to open the Java installer, after the UAC popup nothing happen. I tried opening the installer "sandboxed" with the program "Sandboxie", the Installer opened 2 services, after a few seconds another service opened and then every service closed.
I have no error, no logs, nothing.
P.S.
I tried downloading again the installer 3 times, nothing changed.
Edit:
JRE Installer doesn't start either.
Edit:
I'm actually in safe mode with internet connection and the installer still don't want to run... I don't know what to do now...
I tried with "sfc /scannow" and it said there was no problem, I tried "DISM.exe /Online /Cleanup-image /Restorehealth" too, no problem got reported.
Edit:
I tried running the installer with a Guest account, nothing changed. Anyway I found a solution.

I searched for everything that contains "Java" in C:\ and I found some value (that could have prevented Java Installer from running because it thought Java was already installed), I deleted them (carefully, don't just delete everything on your computer, that's not the way.)
Now I tried launching the installer and.. Here we go! Finally I can install it.
Thanks to anyone who tried to help me, I appreciate it.

In my case problem was in C:/Users folder. Initially my OS language was not English, after changing, it causes some errors. I couldn't install jdk, couldn't run some desktop tools. After looking for the solution, I could found it. My user name in Users folder had non English letters. So, I changed name of user and it solved my problem:
https://superuser.com/questions/890812/how-to-rename-the-user-folder-in-windows-10

You should add java in Path:
Open the System Properties.
Find the Advanced Tab in the Properties Window. Click Environmental Variables.
Scroll down in the System variables and find the PATH variable.
Select the PATH variable and click the Edit button.
Add the Java installation path to the PATH variable (dir_java/bin)
And also create system variable JAVA_HOME

What antivirus are you using?
If your av has some kind of process viewer that you can use to see when it starts and when it terminates and if it is marked a suspicious. Here is a screenshot from my av. I use comodo image here
If your av doesn't have this feature, try turning it off during the installation. Remember to turn it back on after you're done

Related

How to install java 1.1 on 64-bit Windows with no folder called AppData?

Recently i have been working with a project that requires Java 1.1 version. But whenever i try to run the
jdk-1_1_8_006-win.exe file , I have been receiving a message as shown below.
Image showing error:
After clicking ok on that:
I have seen one answer in stack overflow like
Get the Java installer files.
Execute jdk-1_1_8_010-windows-i586.exe When the error dialog is
displayed, open C:\USERS(User Name)\APPDATA\LOCAL\TEMP\~EXB0000 (Do
not click the OK button at this time) Copy all files to another folder
Click the ok button Download the tool and execute it.
Download Is3Engine.zip (ReactOS's InstallSheild Engine 3.0) Extract
Is3Engine.zip (containssetup.exe) Move setup32.exe to the copied Java
installers Execute setup32.exe
But the issue here is I am unable to find an Folder called APPDATA in my PC.
FWIW, this isn't due to AppData not being there; if it wasn't, your system would break in all kinds of weird ways. It's hidden and system, because messing with it can break it, but it's still there; you can change Explorer's settings if you really want to see it.
This error is because 16-bit software can't run on 64-bit Windows, and out of sheer inertia, the use of 16-bit installers continued all the way into the early 2000s. Windows x64 has workarounds for a few common ones, like Installshield and NSIS, but anything other than that will instantly fail.
There's really nothing you can or ideally should do other than installing it on a VM of an older system that it was meant to run on.

Multiple persistent errors IntelliJ

I run IntelliJ IDEA version 2019.2.3 on a Windows 10. We use the same version at school. It works there, but not on my home laptop. I've set the environment and CMD shows the correct path of Java. The JDK 1.8 is also properly installed. Please , what could the problem be ?
I want to thank everyone for taking the time to give a helping hand !
The answers I received via Support at Jet Brains crashed the app or made it unusable. The FAQ links they provide is a collection of vague workarounds. And, especially for someone that is a total beginner and has no guidance in editing non-destructively, it won't work.
I would also like to post the only solution that worked on the Cyrillic issue with IntelliJ Idea, since I know other people have had it as well and I hope it will be useful for others in the future. This came from my teacher at Link Academy Bucharest, Mr. Bogdan Posa.
The actual thing that needs to be modified is the existent file called idea.properties, found in the BIN folder within the Idea installation folder. This only worked after I had re-installed Idea in a different place than "C:/Users/Cyrillic username/" which Idea was picking by default to install itself. So it will be something like C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.2.3/bin. The idea.properties file can also be opened with Notepad to avoid crashing Idea (happened many times). Within the text editor, find and edit the value of idea.config.path, removing the comment and writing the new location/path of the Idea installation folder. Windows might not allow you to save the edited idea.properties file in that original location and it might ask if you want to save it in the Documents folder instead. Just say yes, save it there and then copy/paste it back to the Bin folder, it will accept it. After this, you will have to open Idea with "right-click open as Administrator". Apparently, as long as there still is a path containing Cyrillics in a username, Idea will not run your project so if you can't avoid it, just play along and Run as Admin when opening Idea. That's how it NOW WORKS for me, after several re-installing and changing properties, environments and every damn thing. I was close to hugging ECLIPSE.... :) Hope this helps, Cyrillic users !
No, not at all. This is a kind of wird exception.
You can change the config location of intelliJ.,
This can be done in:
IntelliJ Menu: Help | Edit Custom Properties…
Then it will create a file under: IDE_HOME\bin\idea.properties
Example of the configs:
idea.config.path=c:/work/idea/config
idea.system.path=c:/work/idea/system
idea.plugins.path=c:/work/idea/plugins
More info:
https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage

Need help downloading JDK within Java

(BTW moderators, I HAVE checked other questions, and tried their methods which did NOT help in my situation. My primary account got banned from asking questions for 6 days which lead me to create this account.)
I need help downloading JDK in the java application.
When I try to run my program I am met with the error of "my JDK path was not set". I clicked the button that allowed me to set up a path for it, and I was met with a window with the download link to http://www.javasoft.com .
I go there I get redirected to this site: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Upon redirection, I click the "DOWNLOAD" button under the text JDK.
After that I get sent to a webpage that had the JDK download links for each system. Naturally, I click the link for "Windows 64".
After opening the file I meet up with a window that should guide me through the installation. I clicked Next twice, and It downloaded. Then It allows me to put in the location of the Destination folder, the default destination was the exact same as what Jcreator told me to go to. So I proceeded, And it gave me the screen that said "nearly 3 billion devices run Java" and it completed the installation. I got a finish dialogue screen with the option that prompted me to download optional Jcreator programs, of which I declined and clicked "close".
I went to Jcreator again and I was met with the same message saying that my JDK path was not set up. I repeated this process 4-5 times.
And yes, moderators I HAVE checked other questions, and they all told me the same thing, however The askers of those questions found it solved. They each said to go to the download link and such. When I asked the question on my other account, (which got banned from asking questions for six days) I got either a useless answer(Which got upvoted for no reason) or I get redirected to another question after my question got removed(again, The question I got redirected to, did not solve my problem).
I don't think downloading the jdk is problem here, but problem is that JDK path is not set up. Set your JAVA_HOME and jdk bin path in PATH variable. That should help.
Let's say your downloaded jdk to "C:\Java\JDK1.8".
Create new environment variable JAVA_HOME = C:\Java\JDK1.8
Edit your environment variable PATH to have C:\Java\JDK1.8\bin
If you are using a command prompt to run the other program, which needs java, close and open a new command window for the new env vars to be of effect.
Here is how you set up these env variables:
Set the JAVA_HOME & PATH Variable
Once you have the JDK installation path:
Right-click the My Computer icon on your desktop and select Properties.
Click the Advanced tab. Click the Environment Variables button. Under System Variables, click New.
Enter the variable name as JAVA_HOME.
Enter the variable value as the installation path for the Java Development Kit, which is the jdk path (C:\Program Files (x86)\Java\jdk1.8.0_45) you pasted in comment.
Click OK.
Find existing PATH variable and edit its value by adding %JAVA_HOME%\bin to the end
Click Apply Changes.
You might need to restart windows.

Can't run Spring Tool Suite installer on Mac OS mavericks?

Whenever I unpack dmg installer I see image containing launcher something like - "Installer - spring-tool-suite-3.6.0.CI-B1808453-e4 ". After I try to launch this installer the loading indicator hangs a little, disappears and nothing happens. I am being forced to migrate to Mac OS due to work environment. I can't even launch the installer.
I suspect this is due to default Apple Java (whatever that means I am not OS X expert) being deleted on this laptop and JDK8 is on the home path.
ALE:~$ echo ${JAVA_HOME}
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/
Well, this forces me to migrate to IntelliJ, but I can't just believe that because of someone else fashion I can't do the work usual way...
Any hint? I don't even get error message..
Had the same issue - download .tar.gz instead of .dmg distribution. There (sts-bundle/sts-3.X.X.RELEASE/STS.app) you'll have STS.app it should run.
Since there is an interest around the question I will post the valid solution. Now what I did which caused an error - deleted default mac os java, and installed java 8 as HOME. Now Eclipse (STS, JasperSoftStudio or whatever) which was installed using dmg will look up the java not anywhere near your HOME directory. (even if it is inside Library as it should be).
Solution: Go to eclipse distribution directory (typically under applications) find the launcher, right click on the launcher, "show package contents", go to MacOS folder, open the .ini file(will have different name for different distributions) and locate -vim entry which statically points to some mac os location attempting to find java lib which is not there and never should be. Make sure your java home path is set, as now it will start to behave normally and look up home path.
If this still did not fix the issue, attempt to delete workspace folder if left from previous installation(or rename it) and play with Locked/Unlocked on the launcher properties. However the last two options are rather dances around the fire to summon spirits. The first suggestion should work 100%.
Make sure the error we are solving is something like: "Unable to locate plugin bla bla" in the error log.
All the best.

JAR executable doesn't start if it's in Programs directory

I'm into a very strange issue that's making me crazy .-.
I'm working on a relatively big Java project on Windows, using NetBeans and IzPack to prepare the graphical installation package.
Everything is ok, the compiled installer seems to work and my program is copied in 'C:\Programs\MyProject' folder.
But... when I double click on the myproject.jar in that folder it doesn't start at all. I obviously tried to open a prompt and type 'java -jar myproject.jar' but nothing, not even a line of error code.
The curious facts are two:
if I open it using the prompt with administration rights it works
in the same folder there is another jar, 'uninstaller.jar' created by izpack, and it works with double click.
I double checked my JVM installation, the PATH/JAVA_HOME/... values, and Properties->Security tab of my JAR but the permissions to execute/read/write for every kind of user are ok, and also are equal to the uninstaller.
So what's the problem? Thanks
This is almost certainly caused by Windows UAC on Vista and Windows 7.
Your program is probably trying to write to data files in the same directory as it is installed.
On Windows, well behaved programs write to the users or all users app data directory.
The location of that directory varies depending on the version of Windows.
You can use the system property "user.home" to find a safe place to store data.
You can also get a list of environment variables for shared and per user program data folders from here.

Categories