Exception in thread "main" java.lang.NoClassDefFoundError: Wtf/java
Caused by: java.lang.ClassNotFoundException: Wtf.java at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
@anthropamorphic public class HelloWorld { public static void main(String[] args) { System.out.println("Holy mother poop, this is my OWN Java program!!"); }
dude i keep getting this error: "'javac' is not a recognized as an internal or external command, batch file or operable program." i knw u said its because of not having jdk i have jdk1.6.0_21 it works but it doesnt have javac so i downloaded jdk1.6.0_23 and still no javac??!! help please and for javaw it says cant find main class :S and i have no idea how the other java programmes r working
Awesome video man, helped me out in my first day of class because our university somehow just overlooked the fact that some people use macs to program on lol
@beenox123 right click my computer and go to properties then advanced then enviroment variables. look for the variable Path. change the value by putting a semicolon then your path to javac(java compiler)
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
cont.
Could not find the main class: HelloWorld.java.
Hay1tsme 6 days ago
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/java
Caused by: java.lang.ClassNotFoundException: HelloWorld.java
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Hay1tsme 6 days ago
I mean dislikes.
Eggyfartscartoons 1 week ago
Wow, no likes.
Eggyfartscartoons 1 week ago
Hahaha, I feel so proud of myself now!
solidsnakeliquidgas 1 week ago
Been doing C++ for over a year now, how easy would it be to pick up Java?
sushlet 3 weeks ago
Exception in thread "main" java.lang.NoClassDefFoundError: Wtf/java
Caused by: java.lang.ClassNotFoundException: Wtf.java at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
D3OP1 4 weeks ago 2
Liiihhhhnix ;)
TruthBeautyGoodness 1 month ago
1:09 Leeeeeenux :3
CbarMiiXaaS 1 month ago
Help! I do not get the HelloWorld.java but I only get HelloWorld.java~
lhatchy1 1 month ago
Please how can I download JE ?
nawaryoussef1 1 month ago
@nawaryoussef1 There is something magical called Google
CreeperMart 1 month ago
@CreeperMart WoW !!! I know that and because of it I am here watching your video, anyway I got it thanks.
nawaryoussef1 1 month ago
@nawaryoussef1 This isn't My video
CreeperMart 4 weeks ago
@CreeperMart Sorry, because usually who made the video answer, :)
nawaryoussef1 4 weeks ago
Thank you so much! :D
SirJakobo 2 months ago
umm.. 1 thing
I LOVE YOU! (No homo)
You are awesome! i tried to program or write java over 10 times and I failed, until I saw your video! THANKS! Subbed and Liked
lolydodo123 2 months ago
This has been flagged as spam show
ANYONE WITH PROBLEMS: For some reason this didn't work for me, same as the top comment, but I found this and compiled it, which worked.
class HelloWorld
{ public static void main(String args[]) { System.out.println("Hello World!"); }
}
therealdarthnix 2 months ago
"Exception in thread "main" java.lang.NoSuchMethodError: main"
MinechinimaStudios1 2 months ago
What recording Programm are you using?
wanshotheawesome 2 months ago
when i di javac HelloWorld it says that it cannot find the symbol and the arrow points at the dot between out and printIn
what should i do??
jpbooster 3 months ago 4
@jpbooster I had the same problem. My mistake was I put a capital "i" instead of a lower case "L" which look exactly the same.
olanahab 1 month ago
Holy crap I just made my first java program!
Briffothe 3 months ago
I DID IT
bassmasteraek 5 months ago
Nice name ;)
-J3FF
MegaInsaneMusic 5 months ago
Thank you so much, my first computer science class was terrible at explaining how to do this but you made it clear
kjw1993 5 months ago
didnt work
quadsdirtbikes19 5 months ago
how do i make rounded:
(
brackets on mac?
memoivoila 6 months ago
@memoivoila i am so dumb...
memoivoila 6 months ago
@memoivoila same on windows Shift + 9 and 0
63skyman 5 months ago
@memoivoila shit + 9/0
CreeperMart 4 weeks ago
Comment removed
bigcasey1995 6 months ago
@bigcasey1995 The answer to your problem is in the description...
memoivoila 6 months ago
@memoivoila no it wasn't i had to set the path, He never told any body about setting the path.
bigcasey1995 6 months ago
@bigcasey1995 then use jedit
63skyman 5 months ago
you can change the terminal look lol
TheNardCake 7 months ago
thank you this is a great tutorial
l4zrvids 7 months ago
i Got Lost At Some Parts But i Did It
texjdsimon 7 months ago
This has been flagged as spam show
If we are using linux, you shouldn't have to worry about us ;)
emerix6 8 months ago
Comment removed
emerix6 8 months ago
where can you download JDK for mac?
fmaddict07 8 months ago
@fmaddict07 you dont need the JDK for Mac. It should come with it integrated with Java in the system.
r0cksztar 8 months ago
@fmaddict07 JDK is probably already in your Mac. It is located in /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
MrNinestarkiller 6 months ago
@AppleFanTutorial alt and shift and 8
TheKatt08 8 months ago
@AppleFanTutorial keys above and to left of the backspace
monkey64cow 8 months ago
THANK YOU SOOOOO MUCH YOU ARE AMAZING! EASIEST TUTORIAL TO UNDERSTAND FOR A [java] NOOB!
erovayo 9 months ago
after i have made it and then got it in terminal, what do i do with it?
Bluewhale88888888888 9 months ago
after i have made it and then put it in terminal, what do i do with it?
Bluewhale88888888888 9 months ago
Wait, does JDK come pre-installed on Mac?
dwarfgamer 9 months ago
This has been flagged as spam show
bit[]ly/khkevg - Channel exposing the New World Order - message me to add links to the page. Remove [] and put . to go to page. Thanks Everyone.
GhostFireSniper 10 months ago
can you put the code in the description
anthropamorphic 10 months ago
@anthropamorphic public class HelloWorld { public static void main(String[] args) { System.out.println("Holy mother poop, this is my OWN Java program!!"); }
}
CaniohApps 10 months ago
great tutorial!
ilikemuffinsandovals 10 months ago
lol its pronounced "java c" as in java compile
gygnpsn 11 months ago
@gygnpsn lol dude.... u know this and ur watchin a tutorial on starting to learn java! :P
CDJ445544 7 months ago
@CDJ445544 Yeah. That damn syntax and shit always gets me.
gygnpsn 7 months ago
@gygnpsn lol yea :D
CDJ445544 7 months ago
i use eclipse
OishiiHime 11 months ago
great....but how should i compile and run AWT applets java programs via terminal.cuz it showed me a msg called "NoSuchMethodError:main"
but i dont necesaarily have main function in applet programs.
so do i need to install any additional plug ins to run applet programs via terminal?
beingRaghu 1 year ago
Neeeeevermind... haha :P
UncannyNoob 1 year ago
hmm I need help, because I have downloaded JDK and still am getting the error listed in the description. Help?
UncannyNoob 1 year ago
Hey TBG, thanks for this video (and the next :3). I'm just getting into Java programming on my Mac and this has been very helpful! Keep it up.
VolkarrStarcraft 1 year ago
nvm i worked it
bad7boyzftw 1 year ago
@bad7boyzftw how?
UncannyNoob 1 year ago
@bad7boyzftw yeah me too :P
UncannyNoob 1 year ago
dude i keep getting this error: "'javac' is not a recognized as an internal or external command, batch file or operable program." i knw u said its because of not having jdk i have jdk1.6.0_21 it works but it doesnt have javac so i downloaded jdk1.6.0_23 and still no javac??!! help please and for javaw it says cant find main class :S and i have no idea how the other java programmes r working
bad7boyzftw 1 year ago
I keep getting an error every minute saying.
/Volumes/jEdit 4.3.2/#Untitled-1#:
Cannot save: java.io.FileNotFoundException: /Volumes/jEdit 4.3.2/#Untitled-1# (Read-only file system)
wtf?
dylad 1 year ago
@dylad Me too
playing0with0fire13 1 year ago
Was using 'Java a beginners guide' but got stuck in the beginning already.
This really helped me out big time!
anikaatje 1 year ago
WHAT JOKE IS THIS THIS IS NOT RIGHT U ARE WRONG !@#$%
EmotionsRUseless 1 year ago
Awesome video man, helped me out in my first day of class because our university somehow just overlooked the fact that some people use macs to program on lol
michaelcacovski 1 year ago
Question, I use textedit, are there any settings I will have to change to get it to work because when I use it, I can,t get the format right
screwyouXD 1 year ago
Thanks for this... extremely helpful.
brelsj 1 year ago
i downloaded jedit and it keeps saying "error read-only file"
luckii13charm 1 year ago
you don't have to name it the same as the class is named, when you compile it it will automaticly be called "YourClassName".class
smil8888 1 year ago
Comment removed
chryblossom3 1 year ago
Hey man thanks for making these tutorials, I really appreciate it.
gizmoguyar 1 year ago
You make a lot of errors when you write your code!
Does that program have a compiler built into it?
LivingSkits 1 year ago
how do i reinstall it after accidentaly deleting it
Tomniso1 1 year ago
i got this error while compiling(javac) The system cannot find message text for message number 0x2331 in the message file for Application.
plz help
King4Nothing3 1 year ago
Thank very Much.
tina763 1 year ago
cool man! got it to print out that line successfully in like 1 minute. thanks for getting me started :)
midinerd 1 year ago
i installed jdk and it still gives the error "'javac' is not a recognized as an internal or external command, batch file or operable program."
beenox123 1 year ago
@beenox123 right click my computer and go to properties then advanced then enviroment variables. look for the variable Path. change the value by putting a semicolon then your path to javac(java compiler)
example: C:\Program Files (x86)\Java\jdk1.6.0_20\bin
IDOG321 1 year ago
@IDOG321 10x
beenox123 1 year ago
@beenox123 you're welcome? lol
IDOG321 1 year ago
Nice vid, this helped a lot!!!
YUPjpn 1 year ago
When I type in cd 'Java Tutorials' it doesn't work! Please help me!!!
YUPjpn 1 year ago
@YUPjpn is that the folder? LISTEN TO HIS WORDS
TheDimensionsofMac 1 year ago
This has been flagged as spam show
@TheDimensionsofMac What, how does that have anything to do with what I said?
YUPjpn 1 year ago
This has been flagged as spam show
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
ishiidawg240 1 year ago
This has been flagged as spam show
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
ishiidawg240 1 year ago
@ishiidawg240 to do it go into the terminal/command line
enter the one command:
sudo apt-get install java
this may not work but you can also google it.
macheads101 1 year ago
Hey um,can you help me how to download and install java on Linux?because im really confused and i dont really understand how to download or either install Java on Linux.
ishiidawg240 1 year ago
tnx alot
it's pretty good... :)
GOD Bless
somoselhea 1 year ago
tnx alooooot :)
GOD Bless
somoselhea 1 year ago
This is so much clearer and spoken out step by step. Thank you, man.
Final137 2 years ago
nice but when I do the 'javac' bit it says:
"javac is not recognized as an internal or external program command, operable program or batch file."
do you know what to do?
mattguy1249 2 years ago
@mattguy1249 you need to set the path variable
nathan8BIT 2 years ago
how the hell do you do that? i got the same message.
joeboby9 2 years ago