Тёмный

Replit: Run main From a Class That's Not Main.java 

Byron Mackay
Подписаться 22
Просмотров 6 тыс.
50% 1

By default in Java projects, Replit will use the Main class to run the main function. You can reconfigure this by accessing the .replit file.

Опубликовано:

 

29 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@Abdallah..................
@Abdallah.................. Месяц назад
Deserve one million. Very fast solution. I spent more than hour googling the solution, thx!
@SuccessCondenser-dy5bu
@SuccessCondenser-dy5bu 6 месяцев назад
A million-dollar video. I spent nearly 3 hours searching for a solution! By the way, you are the first one on RU-vid who has encountered this issue and provided a solution. What is the reason behind this? Thank you so much as well!
@bqmac43
@bqmac43 6 месяцев назад
Thank you! I spent a few hours looking for a solution, too, and found nothing. It just seemed like this info should be out there, which is why I made this video.
@Rwan123
@Rwan123 6 месяцев назад
@@bqmac43literally the same thing thank you so much 🙏🏼
@abhishek0001.
@abhishek0001. 5 месяцев назад
can you tell how to do ? if i create every new class do i have to do this everytime i create new class?@@bqmac43
@PaulMillz
@PaulMillz 2 месяца назад
@@bqmac43 Likewise, sir, and thanks to you, I solved it.
@Blahblahh309
@Blahblahh309 Месяц назад
Thank you so much. I just started using Replit and was going crazy.
@bqmac43
@bqmac43 Месяц назад
I’ve been there. It gets better.
@damiantrujillo1039
@damiantrujillo1039 Месяц назад
I had kind of given up and just using the shell to run my programs after like 2 hrs messing w it lol. thank you so much brother.
@edrod8807
@edrod8807 4 месяца назад
Thank you Byron, my spouse had a class project to do on replit and we couldn't figure out how to get the console to print properly.
@Pavan_Gaekwad
@Pavan_Gaekwad Месяц назад
Thanks a lot, man! 😀
@user-g19
@user-g19 5 месяцев назад
Thanks thanks thanks a lot sir. This problem give me too much pain!🤧
@bqmac43
@bqmac43 5 месяцев назад
Happy to hear this helped!
@purplemossparadise5261
@purplemossparadise5261 3 месяца назад
Been bussing my brain on this for the past few hours! Thank you!
@bqmac43
@bqmac43 3 месяца назад
Happy to help!
@korvang5419
@korvang5419 6 месяцев назад
Thank you so much!! This is what I need it!!
@Uinseanne
@Uinseanne Год назад
Thank you so much for this info. ❤
@adrishkarak9829
@adrishkarak9829 8 месяцев назад
thanks for the help sir , needed much
@khesserwriter
@khesserwriter 11 дней назад
Thanks dude, gave you sub!
@kritik8837
@kritik8837 4 месяца назад
Thank you so much sir. Finally after this video i am relieved
@ClaverClip
@ClaverClip 10 месяцев назад
Thank you!
@shanfinalboss
@shanfinalboss 8 месяцев назад
thanks for this man
@user-tj8jb1lt7b
@user-tj8jb1lt7b 8 месяцев назад
Hey. My Node.js application running on replit is viewed as having its primary entry point in a file called index.js Package.js is a packager file that is also included in the repl at the time of it's creation. I followed the directions and changed my package.json file accordingly since I wanted to use the other file I produced, var.js, as the entry point for my Repl. However, even in that case, var.js is not executed-no matter how many times I click the run button, just the index.js file is. How do I stop it and why is it happening?
@RagulM.G-hx3ci
@RagulM.G-hx3ci 6 месяцев назад
Thank you
@abhaypatel9380
@abhaypatel9380 Месяц назад
Thank you so much I am deleting the previous code and writing the new. Such a million dollars video. But i have question that should we always have to change the name for running different file
@bqmac43
@bqmac43 Месяц назад
As far as I know, yes, but I bet there’s a more clever way to run different files based on some conditions.
@deepannandy7288
@deepannandy7288 2 месяца назад
But this is so irritating to do this for every single program I have. I never faced this problem on vs code.
@ShwetaSingh-wg9kp
@ShwetaSingh-wg9kp 5 месяцев назад
Okay all time when we have to run the code we do same thing again and again
@tomdownes1g
@tomdownes1g 10 месяцев назад
You chose a very good topic, however I have a constructive criticism. You might consider slowing down at key moments... and you might not know which steps will be crucial to the person watching the video. So, take each step at a measured, even pace. You too quickly gloss over the step of "SHOW HIDDEN FILES"!!!! This is a HUGE, CRUCIAL step... otherwise the user will never see the "replit" file in their project, and will wonder if he or she set up their project wrong, or if they are using a different version (mode?) of the IDE than you are currently demonstrating in the view. (Any IDE can evolve and change, after all.) The "replit" file is hidden by default, and this is a HUGE, CRUCIAL issue, in my opinion. (Especially since, in "most" (?) Java IDEs, the compiler searches for the public static void main(String[] args) function--REGARDLESS OF THE CLASS NAME!!!)
@bqmac43
@bqmac43 10 месяцев назад
Thank you for the feedback! That's a great insight on identifying and carefully addressing crucial steps. Watching this video again, I can see what you mean, and I'll keep that in mind in the future. Thanks, again!
Далее
How I would learn to code (If I could start over)
9:16
СМОТРИМ YOUTUBE В МАЙНКРАФТЕ
00:34
Просмотров 720 тыс.
БАТЯ И СОСЕД😂#shorts
00:59
Просмотров 2,2 млн
кажется, началось
00:45
Просмотров 1,9 млн
Why The Windows Phone Failed
24:08
Просмотров 231 тыс.
How to run Java files On Replit
7:32
Просмотров 1,5 тыс.
Don't Use Websockets (Until You Try This…)
6:46
Просмотров 293 тыс.
The Story of Next.js
12:13
Просмотров 560 тыс.
Java Programming Skills Using Replit: Replit Intro
7:35
СМОТРИМ YOUTUBE В МАЙНКРАФТЕ
00:34
Просмотров 720 тыс.