I have a class, which is tic tac toe game, but how can I convert my class to executable program, so I would not need to run my program with cmd or eclipse.
You create a "jar" file with a "manifest" that identifies which class contains the "main" method.
Most OS's have a built-in mechanism (or it can be easily added) where if you double-click such a "jar" file, it will know to run the Java Runtime Engine against that file. From a user perspective, it's just as if it were an "exe" executable file.
You mentioned Eclipse, which has a facility under the "File->Export" menu for creating such an executable "jar" file.
i think of he skill he needs you to function it to the server interior the resource code, so as that HE can assemble it while he desires it, hence the "ought to have the means to assemble and run". even if, if he specially mentioned he needs you to assemble it in the previous importing, then you definately will ought to discover a loose compiler (or purchase one) that compiles Java. those could desire to be exceptionally elementary to discover. google is your buddy P.S. Come to think of of it, till the college already has a compiler put in, it would make experience that they does not have the means to assemble it by way of fact they does not have the means to place in a compiler. just to be secure, maybe you're able to desire to upload a sourcecode (uncooked java coding archives) AND a compiled reproduction too.
Comments
You create a "jar" file with a "manifest" that identifies which class contains the "main" method.
Most OS's have a built-in mechanism (or it can be easily added) where if you double-click such a "jar" file, it will know to run the Java Runtime Engine against that file. From a user perspective, it's just as if it were an "exe" executable file.
You mentioned Eclipse, which has a facility under the "File->Export" menu for creating such an executable "jar" file.
i think of he skill he needs you to function it to the server interior the resource code, so as that HE can assemble it while he desires it, hence the "ought to have the means to assemble and run". even if, if he specially mentioned he needs you to assemble it in the previous importing, then you definately will ought to discover a loose compiler (or purchase one) that compiles Java. those could desire to be exceptionally elementary to discover. google is your buddy P.S. Come to think of of it, till the college already has a compiler put in, it would make experience that they does not have the means to assemble it by way of fact they does not have the means to place in a compiler. just to be secure, maybe you're able to desire to upload a sourcecode (uncooked java coding archives) AND a compiled reproduction too.
convert it to an executable jar file. check this site : http://www.skylit.com/javamethods/faqs/createjar.h...