Java Tutorial 7: Hello .bat!

Java Tutorial 7: Hello .bat!

FavoriteLoadingAdd to favorites

Hello and welcome to Java! I’m going to be, in the coming weeks, uploading tutorial after tutorial on java! This specific video shows how to make a .bat file and execute it from inside java easily! This series will get you from no java experience at all to networking, creating multithreaded servers, getting user input, writing to and reading from files, 2D graphics, and more! Have any questions? Feel free to leave them in a comment below :).

Java468x60

Download link for today’s source code:

source

By |2019-07-10T21:02:17+00:00July 10th, 2019|Java Video Tutorials|18 Comments

18 Comments

  1. Dofl Pks July 10, 2019 at 9:02 pm - Reply

    Thank you so much. Yes this is 5 years old, and. yes you used this for a boring purpose that won't make any of us real money in the real world. What I managed to do, was use this to figure out how to launch .bat files, to automate compiling and running of programs, so that users of your project can have the power to compile/restart the engine.

    You do sound kind of gay too, what's up with all the gay or Indian programmers, anyways I love you Maxwell, no homo though sorry, but thank you for this video.

    If java was taught properly, by the proper people, it could change the world. Too bad it's not taught in schools until "college" lmfao.

  2. Lionel Goulet July 10, 2019 at 9:02 pm - Reply

    The next time you do this, instead of naming your various packages something generic like 'TutorialX', put some meaning in the name for when I want to go back and look for the source code for doing, for example, simple file i/o. Your tutorials all have names that tell what they contain. Do the same with your package names.

  3. Олег Амос July 10, 2019 at 9:02 pm - Reply

    Very nice,
    I all understand!

  4. Rohit Ghosh July 10, 2019 at 9:02 pm - Reply

    I want to run a command in which in need to give input file path and output file path .. please tell me how ..example :- java -jar xyz.jar C:/users/desktop/in.xml -o C:/users/desktop/out.xsd

    Please tell me how through java program.

  5. Duma Mundhluyi July 10, 2019 at 9:02 pm - Reply

    Can you run a different class in the same package using the rt.exec("cmd / …") ? Meaning calling another class using rt.exec() method?

  6. Juan Guerra July 10, 2019 at 9:02 pm - Reply

    how can I run a perl script from a jframe?

  7. B. de Laar July 10, 2019 at 9:02 pm - Reply

    What do I need to put in rt.exec() if i'm on mac? When I tried to run my testing.command file it gives me error13 permission denied.

  8. ThatOneBerzerk July 10, 2019 at 9:02 pm - Reply

    You should of made it so that you could input the directory it's in, then just make it so it can run AutoSolo.jar.

  9. Mickey HD July 10, 2019 at 9:02 pm - Reply

    How do you run the programs you make!

  10. SangoProductions213 July 10, 2019 at 9:02 pm - Reply

    jesus your computer is cluttered lol

  11. kpdc1 July 10, 2019 at 9:02 pm - Reply

    when i run the code i get this on the cmd window:
    'press' is not an recognized internal or external command,operable program or batch file
    any ideas what im doing wrong?

  12. Diego Paradeda July 10, 2019 at 9:02 pm - Reply

    what if I'm trying to run firefox using exec()?? is is possible?

  13. thenintendonerd s July 10, 2019 at 9:02 pm - Reply

    he should have done
    @echo off
    title Test Window
    echo testing
    pause>null
    echo Press enter to close this window
    pause>null

  14. Shan Sabri July 10, 2019 at 9:02 pm - Reply

    Great tutorial – Do you know how to run a .bat file from a Unix script?

  15. Maxwell Sanchez July 10, 2019 at 9:02 pm - Reply

    Good question. Macs us .command files instead of .bats. Cheers!

  16. Maxwell Sanchez July 10, 2019 at 9:02 pm - Reply

    Next two tutorials coming out this weekend 🙂

  17. Shaqq Cameron July 10, 2019 at 9:02 pm - Reply

    when will u make tutorial 8 or 9 ?

  18. Tony Blackett July 10, 2019 at 9:02 pm - Reply

    cool

Leave A Comment

*