Using TextPad for compiling and running Java

preview_player
Показать описание
TextPad is a lightweight editor for Windows that can be used in conjunction with the JDK to compile and run Java programs in a command prompt.
Рекомендации по теме
Комментарии
Автор

Thank you so much I’ve searched half the internet trying to find this information and you’re the first person I found that gave me the answer I needed.

mr.squiggles
Автор

Thank you for posting this! All I found were outdated tutorials or ones that did not correctly address this issue with Textpad. Now my Textpad is working fine and I can use it to program again.

aprilm
Автор

Nice share this video helpful for students

najeebahmad
Автор

Worked Perfectly!
Thanks!
- I installed the .jdk which resulted in the following path:
C:\Program Files\Java\jdk-19\bin
*I also set up a path to the bin directory

- Then I installed TextPad 9.0:
*I also set a path to the TextPad directory
The settings that you mentioned were already set up exactly like you said to set them up already plus one for for mobile.

- I pasted the following sample code into TextPad:
// Your First Program

class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}


- I saved it as:


- It compiled and ran perfectly!.

*I associated the .class with java.exe, but when I attempted to run:
>java HelloWorld.class
it returned the error:
Error: Could not find or load main class HelloWorld.class
Caused by: HelloWorld.class
I learned you need to the leave the .class off. This works:
>java HelloWorld

jackt
Автор

thank you very much bro i was trying to do it several times and i even asked my sir and he said to download compiler but then also it was not showing i even reinstalled textpad 10 times but you my friend are a live saver

carljohnson
Автор

Why my command prompt is not showing when I run my program?

bolalinpauljoshuaf.
Автор

bro thank u u save me im just new here at programming really helps

Skarky
Автор

Big thank you sir!! you really helped me🥺

sundarvibey
Автор

Hello I just want to ask, why does it show a new batch file inside my folder?

asf
Автор

still need to create an oracle account?

angeludeleon
Автор

thanks dude, u are much easier to understand and no offense to Indians but some of them I dont understand what they're saying.

Jun-oizv
Автор

Thank you, I could not find this answer anywhere!! I would prefer my output to appear in the Tool Output area, I left the Capture Output checked but my output still pops up from the cmd center. What do I do now?
nevermind I found my answer lol: Configure > Preferences…, then select Tools > Run Java Application, and check the option Capture Output

pickles
Автор

Thank you - this was really really helpful! :)

zoegough
Автор

I keep getting could not find or load main class test

adamamaya
Автор

how do i make it execute it in my command promp

solvian
Автор

Why do you prefer this to an IDE or text editors?

andrewsutton
join shbcf.ru