Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

help on How to compile and execute awt programs

866768Jul 18 2011 — edited Jul 18 2011
can any1 say how to compile and execute awt programs

Edited by: 863765 on Jul 18, 2011 3:29 AM
This post has been answered by EJP on Jul 18 2011
Jump to Answer

Comments

EJP
Answer
The same way you compile and execute any other Java program.
Marked as Answer by 866768 · Sep 27 2020
863331
What's your problem? If you which, you can opst some code ....
YoungWinston
ruivale wrote:
What's your problem? If you which, you can opst some code ....
But which code should he opst?

Winston
EJP
What's your problem?
His problem is stated succinctly his question.
If you which, you can opst some code ....
Pointless. The answer is the same for any code.
796440
EJP wrote:
The answer is the same for anycode.
Oh, but it's not. If he starts with MyClass.java, and we tell him
javac MyClass.java

java -cp . MyClass
then that advice won't work when he creates MyClass2. The poor guy will be left lost and alone, with no clue how to proceed! {noformat};-){noformat}
EJP
OMG you're right!

I need to go back and document how to compile every source file I've written, otherwise somebody might get confused.

Could take a while, I started in 1971.
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 15 2011
Added on Jul 18 2011
6 comments
177 views