Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 12 of 12

Thread: Java not installing

  1. #1
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Java not installing

    I've been trying to install JAVA on my PC for a while, I've always went through ORACLE. Now, my PC already comes with JAVA 17, but I need a newer version (JAVA 21) installed, I've tried installing newer and older versions of JAVA on my PC, but none of it works, it always crashes saying "Installation failed. Something interrupted the installation" With no error code, it doesn't leave behind any logs (at least any I can find) and I can't log into Stack overflow, so this is my last option. And also after trying it will take up 2 GB's+ of my hard drive and I don't know where the files are. :[
    -Thank you,
    CK1982

    Edit 1: PC SPECS bellow
    OS: Windows 10 PRO
    Hard drive: 500GB SSD
    Memory: 15GB

    Edit 2: It won't let me upload the image so here is a google drive link to the image https://drive.google.com/file/d/1QqJ...ew?usp=sharing
    Last edited by CK1982; November 4th, 2024 at 08:44 PM. Reason: Edit 1 reason: Added PC SPECS. Edit 2 reason: Added image link because I can't add an image normally, for some reason.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    How are you doing the install? What is the program name you are executing? Where did you get it from?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java not installing

    Quote Originally Posted by Norm View Post
    How are you doing the install? What is the program name you are executing? Where did you get it from?
    I always get them at https://www.oracle.com/java/technologies/downloads/ . I have to use the .msi version because the .exe one refuses to open

    (P.S. Sorry for replying late, I was having dinner)

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    the .exe one refuses to open
    Why is that? I don't understand how that can happen. Try executing the .exe program from a command prompt window.
    Open a command prompt, change directory to the folder with the .exe file and type in the name of the file.
    Or create a batch file to execute the .exe file. First line has the full name of the program to execute.
    The second line has the word MORE.

    If there are any messages on the window, use the menu at the upper left corner of the window to select and copy the window's contents and paste it here.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java not installing

    Quote Originally Posted by Norm View Post
    Why is that? I don't understand how that can happen. Try executing the .exe program from a command prompt window.
    Open a command prompt, change directory to the folder with the .exe file and type in the name of the file.
    Or create a batch file to execute the .exe file. First line has the full name of the program to execute.
    The second line has the word MORE.

    If there are any messages on the window, use the menu at the upper left corner of the window to select and copy the window's contents and paste it here.
    Just tried that, didn't work either. I've also tried running it in compatibility mode, it also doesn't work. :[

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    Just tried that, didn't work either
    You ran the .exe program in a command prompt and there were no messages?

    On the page at the link you posted there is also a .zip file.
    https://download.oracle.com/java/21/...ws-x64_bin.zip
    Try downloading that and uncompressing it into a folder.

    To help the OS find the javac.exe and java.exe files you will need to add an entry to the PATH environment variable that has the path to the bin folder.
    For example: D:\Program Files\Java\jdk-21.0.2\bin
    BTW That is where I copied the jdk for 21
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java not installing

    Quote Originally Posted by Norm View Post
    You ran the .exe program in a command prompt and there were no messages?

    On the page at the link you posted there is also a .zip file.
    https://download.oracle.com/java/21/...ws-x64_bin.zip
    Try downloading that and uncompressing it into a folder.

    To help the OS find the javac.exe and java.exe files you will need to add an entry to the PATH environment variable that has the path to the bin folder.
    For example: D:\Program Files\Java\jdk-21.0.2\bin
    BTW That is where I copied the jdk for 21
    It somewhat works, the main Java.exe has to be run through CMD. The only one that doesn't need CMD to run is jconsole.exe

    --- Update ---

    Quote Originally Posted by CK1982 View Post
    It somewhat works, the main Java.exe has to be run through CMD. The only one that doesn't need CMD to run is jconsole.exe
    I'm currently running it through my downloads folder

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    Java.exe has to be run through CMD
    Yes, there isn't any GUI with just java.
    Another way to use the java commands is to create batch files that call javac.exe and java.exe.

    Most people install an IDE to get a GUI and some help with developing java programs.

    I'm currently running it through my downloads folder
    Put an entry in the PATH environment variable so the java commands can be found in any folder.
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java not installing

    Quote Originally Posted by Norm View Post
    Yes, there isn't any GUI with just java.
    Another way to use the java commands is to create batch files that call javac.exe and java.exe.

    Most people install an IDE to get a GUI and some help with developing java programs.
    Do I have to put it in program files? Or can I just keep it in a random directory like Downloads or Documents?

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    The JDK folder can be anywhere. I probably have over a dozen folders here and there with older versions of the JDK and JRE.
    The ones in Program Files were put there by the java install exe. The others were unpacked from zip files.
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Nov 2024
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java not installing

    Quote Originally Posted by Norm View Post
    The JDK folder can be anywhere. I probably have over a dozen folders here and there with older versions of the JDK and JRE.
    The ones in Program Files were put there by the java install exe. The others were unpacked from zip files.
    Thank you, Norm! Sorry for the slow responses, I've been having to manually reload the page. I'll see if I can update the prefix to [SOLVED]. Thank you SO much for your patience!
    -Thank you,
    CK1982

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java not installing

    You are very welcome.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Installing Java 1.7 on Windows NT
    By mystic in forum Computer Support
    Replies: 7
    Last Post: August 22nd, 2014, 04:28 AM
  2. Installing Java 1.7 on Windows NT
    By mystic in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 18th, 2014, 12:01 PM
  3. Replies: 10
    Last Post: June 3rd, 2014, 05:55 AM
  4. INSTALLING JAVA COMMUNICATION API ON A MAC OS
    By AgentDucky in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: July 1st, 2012, 01:50 PM
  5. Replies: 3
    Last Post: March 1st, 2011, 02:18 PM

Tags for this Thread