Making a Java Console Application





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I wonder if it's possible to create a java console application where someone can download my packages, run and use that application in Command Line/Terminal or with some other console application.
I am very well versed in Java & the reason I'm asking is, I have a chess game which I have made to be run in command line, but how do I get it to run like an application?
To wit: On a mac, just like one who has Home brew can download formulas and use their specific commands to begin and run them, how can I do this for an already made application. Do I need a config file? Or is it just good to go as it is.



So I don't want someone to download the package and have to use the "javac/java" command to compile and run it, but can just say something like "run chess" and it does so. Any help or resources would be appreciated










share|improve this question




















  • 2





    Look for the key word packaging online and that is mostly what you are looking for your application.

    – Naman
    Nov 23 '18 at 19:29








  • 1





    Possible duplicate of How to create a Java application which can be run by a click?

    – Joe C
    Nov 23 '18 at 19:29


















0















I wonder if it's possible to create a java console application where someone can download my packages, run and use that application in Command Line/Terminal or with some other console application.
I am very well versed in Java & the reason I'm asking is, I have a chess game which I have made to be run in command line, but how do I get it to run like an application?
To wit: On a mac, just like one who has Home brew can download formulas and use their specific commands to begin and run them, how can I do this for an already made application. Do I need a config file? Or is it just good to go as it is.



So I don't want someone to download the package and have to use the "javac/java" command to compile and run it, but can just say something like "run chess" and it does so. Any help or resources would be appreciated










share|improve this question




















  • 2





    Look for the key word packaging online and that is mostly what you are looking for your application.

    – Naman
    Nov 23 '18 at 19:29








  • 1





    Possible duplicate of How to create a Java application which can be run by a click?

    – Joe C
    Nov 23 '18 at 19:29














0












0








0








I wonder if it's possible to create a java console application where someone can download my packages, run and use that application in Command Line/Terminal or with some other console application.
I am very well versed in Java & the reason I'm asking is, I have a chess game which I have made to be run in command line, but how do I get it to run like an application?
To wit: On a mac, just like one who has Home brew can download formulas and use their specific commands to begin and run them, how can I do this for an already made application. Do I need a config file? Or is it just good to go as it is.



So I don't want someone to download the package and have to use the "javac/java" command to compile and run it, but can just say something like "run chess" and it does so. Any help or resources would be appreciated










share|improve this question
















I wonder if it's possible to create a java console application where someone can download my packages, run and use that application in Command Line/Terminal or with some other console application.
I am very well versed in Java & the reason I'm asking is, I have a chess game which I have made to be run in command line, but how do I get it to run like an application?
To wit: On a mac, just like one who has Home brew can download formulas and use their specific commands to begin and run them, how can I do this for an already made application. Do I need a config file? Or is it just good to go as it is.



So I don't want someone to download the package and have to use the "javac/java" command to compile and run it, but can just say something like "run chess" and it does so. Any help or resources would be appreciated







java console-application






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 19:28







Franc_

















asked Nov 23 '18 at 19:22









Franc_Franc_

11




11








  • 2





    Look for the key word packaging online and that is mostly what you are looking for your application.

    – Naman
    Nov 23 '18 at 19:29








  • 1





    Possible duplicate of How to create a Java application which can be run by a click?

    – Joe C
    Nov 23 '18 at 19:29














  • 2





    Look for the key word packaging online and that is mostly what you are looking for your application.

    – Naman
    Nov 23 '18 at 19:29








  • 1





    Possible duplicate of How to create a Java application which can be run by a click?

    – Joe C
    Nov 23 '18 at 19:29








2




2





Look for the key word packaging online and that is mostly what you are looking for your application.

– Naman
Nov 23 '18 at 19:29







Look for the key word packaging online and that is mostly what you are looking for your application.

– Naman
Nov 23 '18 at 19:29






1




1





Possible duplicate of How to create a Java application which can be run by a click?

– Joe C
Nov 23 '18 at 19:29





Possible duplicate of How to create a Java application which can be run by a click?

– Joe C
Nov 23 '18 at 19:29












1 Answer
1






active

oldest

votes


















-1














You need to convert your .jar to .exe



There is a lot of software doing this, for example JSmooth.
You need to choose the starting application class and then run it.






share|improve this answer


























  • .exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

    – Franc_
    Nov 23 '18 at 20:30






  • 1





    The question specifically mentioned running on a Mac - EXE compilation will not help.

    – Jakg
    Nov 23 '18 at 21:01











  • Online resources didn't say .exe was windows only. Thanks for pointing that out.

    – Franc_
    Nov 23 '18 at 22:19












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452001%2fmaking-a-java-console-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














You need to convert your .jar to .exe



There is a lot of software doing this, for example JSmooth.
You need to choose the starting application class and then run it.






share|improve this answer


























  • .exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

    – Franc_
    Nov 23 '18 at 20:30






  • 1





    The question specifically mentioned running on a Mac - EXE compilation will not help.

    – Jakg
    Nov 23 '18 at 21:01











  • Online resources didn't say .exe was windows only. Thanks for pointing that out.

    – Franc_
    Nov 23 '18 at 22:19
















-1














You need to convert your .jar to .exe



There is a lot of software doing this, for example JSmooth.
You need to choose the starting application class and then run it.






share|improve this answer


























  • .exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

    – Franc_
    Nov 23 '18 at 20:30






  • 1





    The question specifically mentioned running on a Mac - EXE compilation will not help.

    – Jakg
    Nov 23 '18 at 21:01











  • Online resources didn't say .exe was windows only. Thanks for pointing that out.

    – Franc_
    Nov 23 '18 at 22:19














-1












-1








-1







You need to convert your .jar to .exe



There is a lot of software doing this, for example JSmooth.
You need to choose the starting application class and then run it.






share|improve this answer















You need to convert your .jar to .exe



There is a lot of software doing this, for example JSmooth.
You need to choose the starting application class and then run it.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 24 '18 at 0:29









jbytecode

546824




546824










answered Nov 23 '18 at 19:31









Guillaume Guillaume

11




11













  • .exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

    – Franc_
    Nov 23 '18 at 20:30






  • 1





    The question specifically mentioned running on a Mac - EXE compilation will not help.

    – Jakg
    Nov 23 '18 at 21:01











  • Online resources didn't say .exe was windows only. Thanks for pointing that out.

    – Franc_
    Nov 23 '18 at 22:19



















  • .exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

    – Franc_
    Nov 23 '18 at 20:30






  • 1





    The question specifically mentioned running on a Mac - EXE compilation will not help.

    – Jakg
    Nov 23 '18 at 21:01











  • Online resources didn't say .exe was windows only. Thanks for pointing that out.

    – Franc_
    Nov 23 '18 at 22:19

















.exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

– Franc_
Nov 23 '18 at 20:30





.exe seems to be the way to go about this as per online resources. I don't have a .jar file(I made the application from scratch using vscode and eventually moved it into packages). Maybe I'll try setting a .jar file in an IDE (Eclipse/Intelli J maybe). and then convert to .exe and see what happens. Thanks

– Franc_
Nov 23 '18 at 20:30




1




1





The question specifically mentioned running on a Mac - EXE compilation will not help.

– Jakg
Nov 23 '18 at 21:01





The question specifically mentioned running on a Mac - EXE compilation will not help.

– Jakg
Nov 23 '18 at 21:01













Online resources didn't say .exe was windows only. Thanks for pointing that out.

– Franc_
Nov 23 '18 at 22:19





Online resources didn't say .exe was windows only. Thanks for pointing that out.

– Franc_
Nov 23 '18 at 22:19




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452001%2fmaking-a-java-console-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini