Java Programming Tutorial – 2 – Running a Java Program

///Java Programming Tutorial – 2 – Running a Java Program

Java Programming Tutorial – 2 – Running a Java Program

FavoriteLoadingAdd to favorites

Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Java468x60
By |2017-05-11T20:10:24+00:00May 11th, 2017|Java Video Tutorials|50 Comments

50 Comments

  1. Tyler Averette May 11, 2017 at 8:14 pm - Reply

    Well this seems more troublesome than necessary. Does Java not have a no-nonsense compiler yet? Back to c++ I guess lol

  2. Ein Hacker-Typ May 11, 2017 at 8:15 pm - Reply

    Something like "A JNI error has occured" popped up.

  3. Chris May 11, 2017 at 8:16 pm - Reply

    When I type in "javac testing.java", it doesn’t work (i named it testing).
    Can soneone help?

  4. Prowler92NS May 11, 2017 at 8:17 pm - Reply

    Error: Could not find or load main class apples
    I guess I quit

  5. Subham Gogoi May 11, 2017 at 8:19 pm - Reply

    Awesome tutorial dude!!!……It helped a lot. Thanks.

  6. Ramius Z May 11, 2017 at 8:22 pm - Reply

    copied your format but keep getting error messages.

  7. Legendary 7 May 11, 2017 at 8:23 pm - Reply

    i am getting error invalid variable decleration ; return type required
    what i do know

  8. Luminus May 11, 2017 at 8:26 pm - Reply

    Can someone tell me how can I make the line with this name "test" ?

  9. Enis Gusinac May 11, 2017 at 8:27 pm - Reply

    Bucky Roberts is always the best !!! Thank you

  10. Abhishek Singh May 11, 2017 at 8:27 pm - Reply

    i ain’t getting the output … help me out with this … it is showing "package system does not exist"

  11. Eden Oleary May 11, 2017 at 8:28 pm - Reply

    1if i saved the text folder in #d hard disc and not #c, how can i go directly there
    2is it matters if i saved all the java program also on harddisc #d?

  12. manju gupta May 11, 2017 at 8:28 pm - Reply

    apples.class is not created after compiling pls help

  13. Ramius Z May 11, 2017 at 8:28 pm - Reply

    It’s saying my package system does not exist

  14. Caleb Hille May 11, 2017 at 8:29 pm - Reply

    awesome videos man, super easy to vollow

  15. omkar H May 11, 2017 at 8:31 pm - Reply

    in cmd i cant see the test

  16. Legendary 7 May 11, 2017 at 8:32 pm - Reply

    i wanna now that you are gonna tell me everything like how to write program and everything because i dont now basics ?

  17. Pleedoh May 11, 2017 at 8:32 pm - Reply

    javac doesn’t work for me either.

  18. Vasilis B. May 11, 2017 at 8:34 pm - Reply

    when i press javac youtube.java , cmd says that 2 errors occured something like symbols i cannot understand
    The thing is i did all the proccess exactly the same…

  19. gramahL May 11, 2017 at 8:35 pm - Reply

    lol , no dir doesn’t show everything in your c drive , try
    >cd
    >tree
    this will truly show you EVERYTHING 🙂

  20. FC BARCELONA FANS May 11, 2017 at 8:36 pm - Reply

    Thank you very much sir.

  21. Manky Banana May 11, 2017 at 8:36 pm - Reply

    Java must be the least user friendly thing I have ever used. Followed instructions verbatim – Error. Fixed that error – Another error. Tell me all programming languages aren’t like this…

  22. Fidou May 11, 2017 at 8:38 pm - Reply

    360p is the biggest pain the ass

  23. SAMAPAN BHADURY May 11, 2017 at 8:39 pm - Reply

    i made two notepad++ files names sample and sample2

    at first i named the class in sample as, hello and the class in sample2 alien and complied both one by one.

    then i changed the class name in the first file sample to alien too and compiled it again.

    the text on the two files are different. so now when i run both stating ‘java alien’, they both run fine if i compile the specific file beforehand. but if i press dir, the it is showing the old two classes i.e. hello and alien. why the name of the two classes changing?

  24. Luca$sino May 11, 2017 at 8:40 pm - Reply

    When typing javac filename.java i get an error: class is Main public, should be declared in a file named Main.java. I dont understand, anyone help?

  25. Zeebroiey May 11, 2017 at 8:41 pm - Reply

    Great video! it helped loads! much eaiser having somone walking you though it and talking to you then reading it off of a website!

  26. 7Underwood7 May 11, 2017 at 8:42 pm - Reply

    class apples{ // apples
    public static void main(String args[]){
    System.out.println("Hello");
    }
    }

    01/24/2017 09:44 PM <DIR> .
    01/24/2017 09:44 PM <DIR> ..
    01/24/2017 09:44 PM 411 apples.clas
    01/24/2017 09:44 PM 115 apples.java
    2 File(s) 526 bytes
    2 Dir(s) 19,400,642,560 bytes free

    C:javatesting>java apples
    Error: Could not find or load main class apples

  27. Shaheryar ahmed May 11, 2017 at 8:43 pm - Reply

    i did exactly the same but "javac" giving me an error that says ”javac’ is not recognized as an internal or external command,
    operable program or batch file.’

  28. C. A. May 11, 2017 at 8:43 pm - Reply

    This vid is awesome, you explain the nuances. I haven’t seen that in other vids.

  29. Josh May 11, 2017 at 8:44 pm - Reply

    Why does mine say "Error: Could not find or load main class FirstProgram.java"

  30. global videos May 11, 2017 at 8:44 pm - Reply

    why only one bracket opens while entering them in notepad++

  31. NIKHIL May 11, 2017 at 8:48 pm - Reply

    hey genius can i use ATOM editor

  32. PaulsVag Obama May 11, 2017 at 8:48 pm - Reply

    Bucky, you are a life saver. Love you broski.

  33. Jawar5 May 11, 2017 at 8:48 pm - Reply

    When I compile it, it dosnt say .class

  34. rabab rachid May 11, 2017 at 8:50 pm - Reply

    i did all the steps but when i print cd test in cmd i had file not fount as response

  35. akshay layek May 11, 2017 at 8:51 pm - Reply

    many many thanks ,brother for your contribution

  36. Imma Hacker May 11, 2017 at 8:51 pm - Reply

    it says no command such javac

  37. Rahul Sanalkumar May 11, 2017 at 8:52 pm - Reply

    thanx a loot buddy

  38. Im not Uploading May 11, 2017 at 8:53 pm - Reply

    Javac doesnt work no more..

  39. NiceGuy 69 May 11, 2017 at 8:53 pm - Reply

    could not find or load main class apple. Help!

  40. lichay tiram May 11, 2017 at 8:54 pm - Reply

    don’t work compile eror

  41. wang jasmine May 11, 2017 at 8:55 pm - Reply

    hey Bucky, here’s a question, when I tried to follow your steps and find the files by cmd···I built a file named ‘test’ in Perflogs, but I can’t do the ‘cd test’ under the C driver like you(I can’t see ‘test’ when I dir C neither), I need to ‘cd’ and ‘dir’ the Perflogs···It works, but I am confused···would you tell me how it works please? Looking forward to your reply, and, I love you.❤

  42. Jingjing Sun May 11, 2017 at 8:55 pm - Reply

    if you encounter the error: Error: Could not find or load main class apples. In cmd, you need to type "set classpath=d:studyjava". d:studyjava is where I save my apple.class. You need to modify it according to your situation. Then you can run "java apples".

  43. Ramius Z May 11, 2017 at 8:56 pm - Reply

    I got it finally, I had a space where I didn’t need. I didn’t even see the difference at first. Has to be absolutely exactly the same. If one thing is off forget it.

  44. Sambit Sarkar May 11, 2017 at 8:57 pm - Reply

    after writing javac youtube.java its showing errror and not the same video is showing

  45. Faiz Hameed May 11, 2017 at 8:58 pm - Reply

    Is there any editor software like he types in which he gets assited when typing codes

  46. Mohit Khakholia May 11, 2017 at 9:00 pm - Reply

    after running javac youtube.java I didn’t get class file again it’s showing c:test>

  47. Hussain Mohammed May 11, 2017 at 9:01 pm - Reply

    cant open main class error is coming plz replyyy fast

  48. John Cole May 11, 2017 at 9:02 pm - Reply

    C:test>javac youtube.java
    youtube.java:2: error: cannot find symbol
    public static void main (string args[]){
    ^
    symbol: class string
    location: class apples
    youtube.java:3: error: package system does not exist
    system.out.prntln ("Hello World");
    ^
    2 errors

    Getting these errors, please help

  49. Prashant Pathania May 11, 2017 at 9:06 pm - Reply

    what? why do i have to write "system.out.println" in java ? printf from "c" not good enough?

  50. Alok Pandey May 11, 2017 at 9:08 pm - Reply

    You are great sir.

Leave A Comment

*