Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Sienna Hughes   on Dec 13 In Java Category.

  
Question Answered By: Kawthar Malik   on Dec 13

I am not sure how to do it but i think that is not
what you want. Because you are not executing lets say
Main.class you are executing Main (as a class  that
contians main function). So the name of the file  could
be Holiday.class but if class that contains main() is
named Christmas then you execute  it by java  Christmas
and not Holiday.class.

Thats why i do not know how to do it, because you have
to somehow omit the .class part and call main
Function.

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to run *.class with double click Or get search suggestion and latest updates.


Tagged: