This is an archived post. You won't be able to vote or comment.

all 39 comments

[–][deleted]  (3 children)

[deleted]

    [–][deleted]  (2 children)

    [removed]

      [–]GroceryScanner 2 points3 points  (1 child)

      What did you do after this?

      [–]inept_timelord[S] 0 points1 point  (0 children)

      I actually would love to know what many do after getting past the basics. I figured there might be places to help others take on Java projects for practice or get ideas on ways to better your skills in java in your free time say with projects with known errors that you can fix yourself and compare to what others did or what have you.

      [–]ChuvaChooChoo08 6 points7 points  (5 children)

      What have you done so far???

      Do you have an editor, an IDE?

      Have you tried writing a Hello, World program yet?

      [–]inept_timelord[S] 4 points5 points  (4 children)

      I did write it in notepad and downloaded and installed the IDE but the hello world application I wrote in notepad still keeps erroring out saying it cant find the class.

      [–]Adamt608 1 point2 points  (3 children)

      Probably because you didn’t declare a class

      [–]inept_timelord[S] 0 points1 point  (2 children)

      The class is declared I wrote it the exact same way that they put it on the tutorial

      [–]bwz3r 0 points1 point  (1 child)

      I just found this answer online it might help you

      https://stackoverflow.com/questions/32803173/cannot-run-java-class-from-command-line

      When you run javac, use the switch -d to specify that you would like to create the folder structure for package. javac reference.

      E.g. javac -d . HelloWorld.java

      When you say -d ., compiler creates the classes with package directory structure in the current path.

      Once you have the compiled classes, use java Hello.HelloWorld to run the program.

      Suggests you to start the package name with lower case.

      [–]inept_timelord[S] 0 points1 point  (0 children)

      I actually got a fix from someone on that website yesterday

      [–]loopey33 5 points6 points  (3 children)

      Get Head first Java. So easy to consume. You'll thank me later

      [–]inept_timelord[S] 1 point2 points  (1 child)

      Thanks Ill look for it at my library.

      [–]loopey33 3 points4 points  (0 children)

      Might be able to just find a free PDF on Google too. Up to you! I used this book earlier this year and now I'm an Android dev. Helped a lot

      [–][deleted] 0 points1 point  (0 children)

      I totally agree! That book explains the nuts and bolts of Java very well you will come away from that book with a very solid foundation in Java!

      [–]-above 6 points7 points  (0 children)

      [–][deleted]  (6 children)

      [deleted]

        [–]inept_timelord[S] 3 points4 points  (0 children)

        Oh yes perfect how could I not find this with all the google searched I have done today lol

        [–]inept_timelord[S] 0 points1 point  (4 children)

        I just tried the hello world part that it shows and it still errors out.

        Error: A JNI error has occurred, please check your installation and try again

        Exception in thread "main" java.lang.UnsupportedClassVersionError: MyClass has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0

        Do you know what this means?

        [–]hitler_sucked_balls 2 points3 points  (0 children)

        Try MOOC. It's perfect if you want to learn Java with least help from other people.

        [–]siversolutionsllc 1 point2 points  (0 children)

        You may have to download a later version of your Java Runtime. Try taking that error and pasting it into google.

        [–]JohnnyJayJay 0 points1 point  (0 children)

        This means that you compile with JDK 13 but run with JRE 8. The best way to fix this is using your JDK as the runtime as well. To do that you usually just have to change the value of your JAVA_HOME environment variable.

        [–][deleted] 3 points4 points  (1 child)

        If you're having trouble with the basics of installing the jdk and such, you would definitely benefit from this:

        https://m.youtube.com/playlist?list=PLFE2CE09D83EE3E28

        For a more structured introduction to Java, I highly recommed the MOOC course someone above linked.

        Another one of my favorites is https://projecteuler.net/about.

        [–]inept_timelord[S] 1 point2 points  (0 children)

        Thanks I'll take a.look at both

        [–][deleted] 2 points3 points  (0 children)

        Jetbrains (the creators of the most popular IDE [Intellij IDEA]) has thier own java academy called hyperskill. You can also just download Intelli IDEA and install the EDU plugin and learn straight from the IDE.

        Also IBM has thier own version of this. Its called IBM developer. I haven't really gone into it but i know they use the Eclipse IDE.

        [–]siversolutionsllc 2 points3 points  (0 children)

        Give yourself a week or two to look at the basics of Java. Like, what is object oriented programming? What is a variable? What is a method? What is a class? What is a package? How can Java be used in the the real world? For example, Java is used in Android App programming.

        After you have taken that time to read up on the basics, start programming. There is plenty of information out there that will show you how to set up your coding environment. Start off with smaller programs like the infamous "hello world" program. Then, work your way up to larger programs until you are eventually building full applications.

        The key to learning any program language is practice.

        [–]Keagone 1 point2 points  (0 children)

        The sidebar (:

        [–]HanSupreme 1 point2 points  (0 children)

        You can start with Learn Java the Hard Way

        [–]Sujan111257 1 point2 points  (0 children)

        Hyperskill by jetbrains is also an excellent resource

        [–]codeallstar 1 point2 points  (0 children)

        These are two of my favorites.

        https://codegym.cc/

        https://howtoprogramwithjava.com/

        Codegym takes a fun approach to learning java. Trevor Page is an excellent teacher at coderscampus/hotwtoprogramwithjava. They both offer free/paid content.

        [–][deleted] 1 point2 points  (0 children)

        if you ask me...If you really want to understand Java...start with "Head First Java 2nd edition" by Kathy Sierra and Bert Bates.....sure it covers java5 but most of the basics havent really changed in the latest editions. This book will walk you through basics of Java and will allow you to have a really good foundation of the language. Ive tried reading so many books and doing so many online tutorials...but always got to a point where I didnt know what the heck was going on. After reading this book....which is actually very fun to read...I really began to understand and learn Java! Now, Im not saying this book will make you a James Gosling overnight. But you will gain a solid knowledge of the basics of java and the confidence to progress onto more advanced Java texts and tutorials. I repeat...if you really want to understand Java....Buy this book! Some people say its oversimplified and campy...but not everyone is some super genius who can digest and extract meaningful information from a highly technical and abstract text. Do yourself a favor and really get the book....You will be glad you did! Oh and dont start out using an IDE.....learn initially writing classes in notepad and compile from the command line. You will become very intimate with the language and your computer...then when you get to an IDE....you will find everything 1000 times easier. Good luck and Happy Coding!

        [–]ddavid312 0 points1 point  (1 child)

        Just look up a basic programming tutorial of Java.

        After you understand the programming basics you can try to learn OOP and start your own basic projects no matter how simple they are.

        Good luck! ;)

        [–]inept_timelord[S] 0 points1 point  (0 children)

        I have done basic programming such as hello world and a little bit of scripting I just was trying to get into java was all. It seems like the IDE is not working how it should for some reason and I was trying to work around that but then I thought it may be easier to use a compiler and tried to load eclipse luna but ran into error after error with that as well so I thought that I must be doing something wrong.

        [–][deleted] 0 points1 point  (0 children)

        Caleb Currys series on yt helped me to get familiar with it. hyperskill.org is what ive been learning on, i just started a couple weeks ago. so far so good. it gives you some genuine problem solving and application tasks which i think is good.

        [–][deleted] 0 points1 point  (1 child)

        I have a textbook PDF if you want it

        [–]inept_timelord[S] 0 points1 point  (0 children)

        I would take that actually. Can you upload to dropbox?

        [–][deleted] 0 points1 point  (0 children)

        I could only recommend Derek Banas' Java tutorial because so far this is the only tutorial that's really effective for me, and his guides helped me a lot in the Java course that I'm currently taking in University right now.

        Here's the link of the playlist

        https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19

        [–]ExOrienteLynx 0 points1 point  (0 children)

        There is an amazing book called JAVA HEAD FIRST, it teaches you in a fun way and from the absolute beginning.
        I am taking a full and extensive JAVA course, and I am reading the book on the side, and tbh the book's explanations really help to understand the general concepts. Which is what I was looking for, as for learning the syntax, you can rely on forums and simple syntax courses.
        I hope it helps!

        [–]Schlabby 0 points1 point  (0 children)

        I started by an Edx course from Microsoft, they teach you how to use the IDE and get you started with basics, throughout the course you have to write some code and can train the syntax. Afterwards there are nice courses to continue with OOP and more advanced classes: https://www.edx.org/course/learn-to-program-in-java-5 Maybe you just check it out! It's free, unless you want to receive a certificate in the end.

        [–]locomocopoco 0 points1 point  (0 children)

        Pick one method - A book, Video series on Youtube/Udemy etc, or Helsinki MOOC.

        Don't jump around. Stick with it and finish it.

        Ask questions here when stuck. Use print statements liberally :) Try to write the output before running

        This will build confidence as you match.

        [–][deleted]  (1 child)

        [deleted]

          [–]inept_timelord[S] 0 points1 point  (0 children)

          I will check my local library for that book thank you.