Thank you for all the information! It was a great walkthrough. Funny error at 2:13, must have happened during render or upload. Great video otherwise =)
I am considering offering 1-on-1, but a far cheaper option would be to take my online course which offers 60+ hours of video training! You can find it here: You're welcome! Make sure to checkout my online course if you want to learn to program using my style: www.hellodrdan.com/
Hi, thanks a lot for your tutorial. However I keep getting this error when trying to install Eclipse: "Failed to create the Java Virtual Machine." Do you know how to fix it? Thank you in advance.
Hey, I had another student complain of the same thing. Ultimately she said this after fixing it: "Yes I finally fixed it after I realized eclipse wasn't recognizing Java 14." I think some people may be accidentally downloading a new(er) version of Java (14)...for some reason, only Java 8 seems to work on a Mac. I think this was the main issue and she likely had to uninstall Java 14 and go with Java 8. For reference, here were some other things I suggested to her: I'm not exactly sure what your issue is (by the way, this is typically the hardest part...getting the software installed!), but I suspect it may have something to do with your environment variables not being setup properly (essentially, Mac might not know where to find the Java software). Probably the next thing I would do would be to look into the JAVA_HOME variable to see if it's setup properly (assuming that the JDK is indeed installed properly (java -version). Here is a textual solution on stack overflow that might solve your problem: stackoverflow.com/questions/52652846/cant-install-eclipse-failed-to-create-the-java-virtual-machine-on-mac/56532418 Here is a UA-cam video you may try to follow along with (starting at about 6 minutes) to see if his solution fixes your problem (I think the video is getting at the same thing as the link above): ua-cam.com/video/kTpkPu__jjM/v-deo.html
Thanks for the help! One question - What do I do if AdoptOpenJDK doesn't show up in the 'Use a project specific JRE' field, is that okay? I've verified installation of Java with the terminal and restarted Eclipse but it's using JavaSE-14 and doesn't show the JDK for project specific JRE. any help is appreciated! edit: I may have found it... I already had Eclipse Installed before downloading the JDK so I went to reinstall and select AdoptOpenJDK from the install page in Java 11+ VM field. Click the folder icon and find AdoptOpenJDK under System but it unselectable. Java 14 and 11 are the only ones you can select under External. Is the JDK already included in this version? Sorry for all the questions!
Please help me how to install Java ME CLDC Platform Emulator on Macbook pro mid 2012 Because when I open the java - new project - Java ME - mobile application, it direct me to pop up this wizard guides you through a java ME project creation every CLDC prjects need to have CLDC compatible SDK/platform/emulator assigned to it. Pressing install SDK/platform/emulator button open Platform installation wizard, which allow you to add a platform then I click the box "install SDK/platform/emulator" After I click the box "install SDK/platform/emulator", there is a box "add platform", and I choose to install "Java ME CLDC Platform Emulator", but when I click next, there is a pop up choose directory to search for platform. I have no idea what is this? What should I choose? please help. Do you have a video guidance about it?
actually I have done the same steps you showed, but I have got an error when installing Eclipse saying "Alert Java Virtual Machine could not be found" I don't know what to do, Any Help?
@@kannisaravana8791 sorry for interrupt, mine is Java(TM) SE Runtime Environment (build 14+36-1461) Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
Even I was getting the same error. There can be mainly 3 reasons 1. Make sure that JDK and JRE and eclipse belongs to the same architecture (32bit or 64 bit) 2. Make sure that the JAVA_HOME path is set in your system. 3. You may be having multiple versions of java installed in your system, and while installing eclipse you have to make sure that it is pointing to java 1.8. Better reinstall java properly and set up the JAVA_HOME and try again.
Yes. You can do it by entering "export JAVA_HOME=$(/usr/libexec/java_home)" in '.bash_profile' file. This '.bash_profile' can be found in /Users/'yourUserSpace'. And if any case it's not found then you can just create the file and enter the path.
i was struggling to try to run it on xcode. but luckily i stumbled into your vid! but currently idk how to open an existing .class (java class file). hope you can assist me :(
@@harrycornell4674 Just google my friend. I found it in a forum with someone got the same problem. He wrote a textline where you can find all installed jdks or versions... but I have no clue. I just copy pasted it.
Yes, sorry, I was just getting to responding here. I think people might miss the part where I talk about Mac needing Java 8 (truth be told, I made the same mistake when I first tried to make this video and tried to emphasize it a bit in the video, but maybe didn't make it clear enough).
When I go to run the installer I get: 'Version 1.8.0_131 of the JVM is not suitable for this product. Version: 11 or greater is required." I have downloaded the most recent Java update but the problem persists. HELP ME! I can't find this problem anywhere online.
Hello you’ll need to update the eclipse installer. when done there vill be one more option when downloading eclipse ide for Java developers that says product version. change that to oxygen and then. change the Java 1.8+ VM option to your Java 8 installation now you can press install. when it’s installed you’re done. Now you can open eclipse.
HI , when. i type java version ,it shows this error Error: Could not find or load main class ~version Caused by: java.lang.ClassNotFoundException: ~version
Were you typing 'java --version' into the Terminal/Command Prompt? based on the error message it looks like you got that from inside Eclipses console. I would try using your Terminal or whatever OS console you're using. useful: examples.javacodegeeks.com/java-lang-classnotfoundexception-how-to-solve-class-not-found-exception/
Please check out some of the other comments on this video. The problem is likely that you didn't install version 8 of the JDK. You'll likely need to uninstall all other versions.
you probably downloaded jdk 14 which doesnt work with eclipse so go onto finder, "whateveryournameis" imac, then macintosh hd, then library, then java, then java virtual machines and delete the jdk 14 file, download jdk 8 (i downloaded 13 because it is newer) then try to open eclipse again and it should work
Haha you're welcome! If you're looking for more Java videos on just about every topic you'd need and like my no-steps-skipped approach, head over to hellodrdan.com!
After hours of watching other videos in order to get this done, this video helped me open the ide in less than 10 minutes
Thank you so much for the time you have taken to break down this install
i love you, you literally saved me a whole day trying to figure this thing out
I managed to successfully download the latest version 14.0.2. Thank you so much for this detailed steps!
Thank you for all the information! It was a great walkthrough. Funny error at 2:13, must have happened during render or upload. Great video otherwise =)
yeah i thought my laptop was acting funny for a bit XD
Can you explain the next step in setting up your java home on a Mac?
Dear Dan, thanks a lot for that super clear explanation!
You makes me a smile, thank you!
Glad I could help Maria!
ahh, thank you so much. It took me 2 days to try to figure this out until I saw your video!
You're welcome! If you want more easy-to-follow videos, try my course at hellodrdan.com
Thank you so much, detailed instruction on step by step installation and running first java program for my middle schooler
You're welcome! Make sure to checkout my online course if he's interested in learning from scratch: www.hellodrdan.com/
Hey man! Thanks for this!
Do you do anyway 1 on 1 training?
I am considering offering 1-on-1, but a far cheaper option would be to take my online course which offers 60+ hours of video training! You can find it here: You're welcome! Make sure to checkout my online course if you want to learn to program using my style: www.hellodrdan.com/
Thank you so much, I felt like I was getting left behind because I couldn't figure this out.
any advise for people using M1 chip
Saved the day thank you
Thank you Daniel. All works fine!
Hi, thanks a lot for your tutorial. However I keep getting this error when trying to install Eclipse: "Failed to create the Java Virtual Machine." Do you know how to fix it? Thank you in advance.
same too... so frustrating shit realy
Check JDK and JRE is the same version
I have been getting that same alert message! I tried multiple times.
MEE TOOOO
Hey, I had another student complain of the same thing. Ultimately she said this after fixing it: "Yes I finally fixed it after I realized eclipse wasn't recognizing Java 14." I think some people may be accidentally downloading a new(er) version of Java (14)...for some reason, only Java 8 seems to work on a Mac. I think this was the main issue and she likely had to uninstall Java 14 and go with Java 8.
For reference, here were some other things I suggested to her:
I'm not exactly sure what your issue is (by the way, this is typically the hardest part...getting the software installed!), but I suspect it may have something to do with your environment variables not being setup properly (essentially, Mac might not know where to find the Java software). Probably the next thing I would do would be to look into the JAVA_HOME variable to see if it's setup properly (assuming that the JDK is indeed installed properly (java -version).
Here is a textual solution on stack overflow that might solve your problem: stackoverflow.com/questions/52652846/cant-install-eclipse-failed-to-create-the-java-virtual-machine-on-mac/56532418
Here is a UA-cam video you may try to follow along with (starting at about 6 minutes) to see if his solution fixes your problem (I think the video is getting at the same thing as the link above):
ua-cam.com/video/kTpkPu__jjM/v-deo.html
Thank you sir, your video is very helpful for Java new learner!
Thank you for the tutorial it helps so much.
Really worked. Thanks a lot 🙏🙏
Thank you for the github. Such a great resource.
Hi there there's an audio glitch at 2:12
You're right, sorry!
@@DanielGrissom Ya I Heard it To
Thanks man you are truly pro ❤️❤️
I just subscribed
Thanks a lot man. Love
you're the best thanks
I do have java installed as it works on terminal. but it doesn't show on system preferences or work on Minecraft.
Thanks for the help!
One question - What do I do if AdoptOpenJDK doesn't show up in the 'Use a project specific JRE' field, is that okay? I've verified installation of Java with the terminal and restarted Eclipse but it's using JavaSE-14 and doesn't show the JDK for project specific JRE. any help is appreciated!
edit: I may have found it... I already had Eclipse Installed before downloading the JDK so I went to reinstall and select AdoptOpenJDK from the install page in Java 11+ VM field. Click the folder icon and find AdoptOpenJDK under System but it unselectable. Java 14 and 11 are the only ones you can select under External. Is the JDK already included in this version? Sorry for all the questions!
How to Fix this issue in Eclipse oxygen
An error has occurred.
eclipse-workspace/.metadata/.log.
Is JDK required for Eclipse, if you are just writing simple Java programs? Thanks.
can you give me the link plz
Please help me how to install
Java ME CLDC Platform Emulator
on Macbook pro mid 2012
Because when I open the java - new project - Java ME - mobile application, it direct me to pop up
this wizard guides you through a java ME project creation
every CLDC prjects need to have CLDC compatible SDK/platform/emulator assigned to it.
Pressing install SDK/platform/emulator button open Platform installation wizard, which allow you to add a platform
then I click the box "install SDK/platform/emulator"
After I click the box "install SDK/platform/emulator", there is a box "add platform", and I choose to install "Java ME CLDC Platform Emulator", but when I click next, there is a pop up choose directory to search for platform. I have no idea what is this?
What should I choose? please help. Do you have a video guidance about it?
can you show how to download JavaFX as well!
Oh man Thank you so much!! Bro
Thank you very much.
very helpful
I would like to thank you for being a very helpful person
Thank you for being a very kind person!
great tutorial!
thank you for your help.
Eclipse not visible in Launchpad...
actually I have done the same steps you showed, but I have got an error when installing Eclipse saying "Alert Java Virtual Machine could not be found" I don't know what to do, Any Help?
me too same error
help plz
Mazen Al-Ali install java again, when you type java -version in your terminal what does it say?
@@kannisaravana8791 sorry for interrupt, mine is Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
Even I was getting the same error. There can be mainly 3 reasons
1. Make sure that JDK and JRE and eclipse belongs to the same architecture (32bit or 64 bit)
2. Make sure that the JAVA_HOME path is set in your system.
3. You may be having multiple versions of java installed in your system, and while installing eclipse you have to make sure that it is pointing to java 1.8.
Better reinstall java properly and set up the JAVA_HOME and try again.
Thank you so much, this was so helpful
You're welcome! Make sure to checkout my online course if you want to learn to program using my style: www.hellodrdan.com/
Do we have to set up environment variables? And how?
Yes. You can do it by entering "export JAVA_HOME=$(/usr/libexec/java_home)" in '.bash_profile' file. This '.bash_profile' can be found in /Users/'yourUserSpace'. And if any case it's not found then you can just create the file and enter the path.
thank you so much
Thank you so much !!
Thank you so much. Had a lot of issues with java download and now I can finally start coding my assignments 👍👍👍
i was struggling to try to run it on xcode. but luckily i stumbled into your vid! but currently idk how to open an existing .class (java class file). hope you can assist me :(
Alert Failed to create the Java Virtual Machine ... so frustrating
fixed it! you just have to uninstall every other jdk except the 1.8.xxx stuff (jre 8 (LTS)) then it will work flawless.
@@alMighty8989 how do you find the other jdk's? thanks
@@harrycornell4674 Just google my friend. I found it in a forum with someone got the same problem. He wrote a textline where you can find all installed jdks or versions... but I have no clue. I just copy pasted it.
Hey, guys, I solved this problem. You need to uninstall all the other jdk versions except the jdk8u and then install eclipse. It worked for me.
Yes, sorry, I was just getting to responding here. I think people might miss the part where I talk about Mac needing Java 8 (truth be told, I made the same mistake when I first tried to make this video and tried to emphasize it a bit in the video, but maybe didn't make it clear enough).
Dear friend, i already did what you said but it isn’t open the website!! What should I do?
And the System is mac
Bless you!
thank u so much bro
When I go to run the installer I get:
'Version 1.8.0_131 of the JVM is not suitable for this product.
Version: 11 or greater is required."
I have downloaded the most recent Java update but the problem persists.
HELP ME! I can't find this problem anywhere online.
Hello you’ll need to update the eclipse installer. when done there vill be one more option when downloading eclipse ide for Java developers that says product version. change that to oxygen and then. change the Java 1.8+ VM option to your Java 8 installation now you can press install. when it’s installed you’re done. Now you can open eclipse.
HI ,
when. i type java version ,it shows this error
Error: Could not find or load main class ~version
Caused by: java.lang.ClassNotFoundException: ~version
Were you typing 'java --version' into the Terminal/Command Prompt?
based on the error message it looks like you got that from inside Eclipses console. I would try using your Terminal or whatever OS console you're using.
useful: examples.javacodegeeks.com/java-lang-classnotfoundexception-how-to-solve-class-not-found-exception/
very helpful. thanks :)
I'm glad it helped!
when i try to run the eclipse installer it says "failed to create the virtual java machine" although i already installed jdk, can u help me?
I have the same problem.. :(
I have the same Problem
@@Aril-wc9tv same problem..any solution?
Please check out some of the other comments on this video. The problem is likely that you didn't install version 8 of the JDK. You'll likely need to uninstall all other versions.
you probably downloaded jdk 14 which doesnt work with eclipse so go onto finder, "whateveryournameis" imac, then macintosh hd, then library, then java, then java virtual machines and delete the jdk 14 file, download jdk 8 (i downloaded 13 because it is newer) then try to open eclipse again and it should work
thx so much
I will sub
Thanks! Check out my course at hellodrdan.com, too, if you'd like more instruction from me on any Java topic imaginable!
OMG!! THANK YOU SO MUCH FOR THIS VIDEO!!!!
YOUR VIDEO HAS HELPED ME A LOT!!!!! 😭
I WOULD GIVE YOU A HUG IF I WAS ALLOWED TO
Благодарю.
hey man thanks for not skipping steps lol 😅
Haha you're welcome! If you're looking for more Java videos on just about every topic you'd need and like my no-steps-skipped approach, head over to hellodrdan.com!
I meant java Minecraft but ok
be carful with this, all my stuffs was delete, all my applications...
U don’t need to set JAVA_HOME
When it’s needed? I mean for what purpose.
I'm the 69th like
You are wasting too much time to explain things that everyone doesn't care about.
Many Thanks for you Dear
Thanks a lot .