Java Tutorial 7: Hello .bat!

preview_player
Показать описание
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 :).

Download link for today's source code:
Рекомендации по теме
Комментарии
Автор

Next two tutorials coming out this weekend :)

TheBestMacTutorials
Автор

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

shan
Автор

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

TheBestMacTutorials
Автор

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

dumamundhluyi
Автор

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?

kpdc
Автор

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.

jojoeycraft
Автор

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

paradedadiego
Автор

how can I run a perl script from a jframe?

belgarathg
Автор

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.

thatoneberzerk
Автор

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

thenintendonerds
Автор

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.

tpks
visit shbcf.ru