Intellij JavaFX vs Java Project for .exe file [duplicate]How can I convert my Java program to an .exe file?Redirect console output to string in javaHow to open the command prompt and insert commands using Java?How can I permanently enable line numbers in IntelliJ?Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeCreating a memory leak with Java
Why is the sentence "Das ist eine Nase" correct?
In Bayesian inference, why are some terms dropped from the posterior predictive?
Sums of two squares in arithmetic progressions
How exploitable/balanced is this homebrew spell: Spell Permanency?
How could indestructible materials be used in power generation?
Does int main() need a declaration on C++?
Did 'Cinema Songs' exist during Hiranyakshipu's time?
Processor speed limited at 0.4 Ghz
Obtaining database information and values in extended properties
What's the meaning of "Sollensaussagen"?
How can saying a song's name be a copyright violation?
Bullying boss launched a smear campaign and made me unemployable
In the UK, is it possible to get a referendum by a court decision?
Avoiding the "not like other girls" trope?
Standard deduction V. mortgage interest deduction - is it basically only for the rich?
What historical events would have to change in order to make 19th century "steampunk" technology possible?
Does the Idaho Potato Commission associate potato skins with healthy eating?
How do conventional missiles fly?
Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?
Why were 5.25" floppy drives cheaper than 8"?
What Exploit Are These User Agents Trying to Use?
Why do I get negative height?
Is it a bad idea to plug the other end of ESD strap to wall ground?
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Intellij JavaFX vs Java Project for .exe file [duplicate]
How can I convert my Java program to an .exe file?Redirect console output to string in javaHow to open the command prompt and insert commands using Java?How can I permanently enable line numbers in IntelliJ?Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeCreating a memory leak with Java
This question already has an answer here:
How can I convert my Java program to an .exe file? [closed]
13 answers
I have already a Java Project in Intellij.
I want to make a .exe Java file, but I did not find any solution yet for Java Projects. On the other hand, I have found many youtube videos in which they use a JavaFX Project to create an artifact which they will use to create a .exe file.
One of them is the following youtube video:
IntelliJ export JavaFX application to exe on Windows
My end goal is, that a user just double clicks on the file and a GUI opens. After entering some information the rest of the code should run. The file should be able to run to different windows systems, so this should not only work when installing special packages.
Did I chose the wrong type of project? To that I just read, that JavaFX will be discontinued.
I am confused in so many levels...
java user-interface intellij-idea javafx
marked as duplicate by Mark Rotteveel
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 9 at 8:17
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How can I convert my Java program to an .exe file? [closed]
13 answers
I have already a Java Project in Intellij.
I want to make a .exe Java file, but I did not find any solution yet for Java Projects. On the other hand, I have found many youtube videos in which they use a JavaFX Project to create an artifact which they will use to create a .exe file.
One of them is the following youtube video:
IntelliJ export JavaFX application to exe on Windows
My end goal is, that a user just double clicks on the file and a GUI opens. After entering some information the rest of the code should run. The file should be able to run to different windows systems, so this should not only work when installing special packages.
Did I chose the wrong type of project? To that I just read, that JavaFX will be discontinued.
I am confused in so many levels...
java user-interface intellij-idea javafx
marked as duplicate by Mark Rotteveel
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 9 at 8:17
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
4
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57
add a comment |
This question already has an answer here:
How can I convert my Java program to an .exe file? [closed]
13 answers
I have already a Java Project in Intellij.
I want to make a .exe Java file, but I did not find any solution yet for Java Projects. On the other hand, I have found many youtube videos in which they use a JavaFX Project to create an artifact which they will use to create a .exe file.
One of them is the following youtube video:
IntelliJ export JavaFX application to exe on Windows
My end goal is, that a user just double clicks on the file and a GUI opens. After entering some information the rest of the code should run. The file should be able to run to different windows systems, so this should not only work when installing special packages.
Did I chose the wrong type of project? To that I just read, that JavaFX will be discontinued.
I am confused in so many levels...
java user-interface intellij-idea javafx
This question already has an answer here:
How can I convert my Java program to an .exe file? [closed]
13 answers
I have already a Java Project in Intellij.
I want to make a .exe Java file, but I did not find any solution yet for Java Projects. On the other hand, I have found many youtube videos in which they use a JavaFX Project to create an artifact which they will use to create a .exe file.
One of them is the following youtube video:
IntelliJ export JavaFX application to exe on Windows
My end goal is, that a user just double clicks on the file and a GUI opens. After entering some information the rest of the code should run. The file should be able to run to different windows systems, so this should not only work when installing special packages.
Did I chose the wrong type of project? To that I just read, that JavaFX will be discontinued.
I am confused in so many levels...
This question already has an answer here:
How can I convert my Java program to an .exe file? [closed]
13 answers
java user-interface intellij-idea javafx
java user-interface intellij-idea javafx
edited Mar 8 at 23:26
Georgios
asked Mar 8 at 20:42
GeorgiosGeorgios
688
688
marked as duplicate by Mark Rotteveel
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 9 at 8:17
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Mark Rotteveel
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 9 at 8:17
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
4
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57
add a comment |
4
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57
4
4
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57
add a comment |
2 Answers
2
active
oldest
votes
You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used
Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
|
show 7 more comments
What you're looking for is an executable jar file I think. I know that eclipse you can generate one so I'd assume you can do the same in intellij. How to
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used
Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
|
show 7 more comments
You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used
Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
|
show 7 more comments
You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used
Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.
You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used
Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.
edited Mar 8 at 22:09
answered Mar 8 at 22:07
Terry DorseyTerry Dorsey
150113
150113
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
|
show 7 more comments
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
Before I get more into it, does this mean I need more than 1 file?
– Georgios
Mar 8 at 22:08
1
1
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
No it does not. Executable wrappers make a single .exe file that contains your .jar and other asset files if you want.
– Terry Dorsey
Mar 8 at 22:09
1
1
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
JavaFX is very much alive, run as an open-source project, OpenJFX, hosted and led by the Gluon company that sells tools and services for developing cross-platform mobile apps oriented to the enterprise.
– Basil Bourque
Mar 8 at 22:39
1
1
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
@Georgios If you don't have a GUI, then the .jar and .exe files should still run, but there will be nothing to see, as there is no console output showing. To say it another way, if your .jar writes to a file, that should still happen, but there will be no evidence of that happening unless you inspect the aforementioned file for what your program affected. If you would like to launch a cmd window or terminal programmatically from your java code, see this link. stackoverflow.com/questions/4688123/…
– Terry Dorsey
Mar 8 at 23:19
1
1
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
@Georgios You can redirect the System output to a PrintStream and therefore, you can apply that to a JavaFX element or node, like a TextField, or Label. An example can be seen here: stackoverflow.com/questions/8708342/…
– Terry Dorsey
Mar 8 at 23:32
|
show 7 more comments
What you're looking for is an executable jar file I think. I know that eclipse you can generate one so I'd assume you can do the same in intellij. How to
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
add a comment |
What you're looking for is an executable jar file I think. I know that eclipse you can generate one so I'd assume you can do the same in intellij. How to
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
add a comment |
What you're looking for is an executable jar file I think. I know that eclipse you can generate one so I'd assume you can do the same in intellij. How to
What you're looking for is an executable jar file I think. I know that eclipse you can generate one so I'd assume you can do the same in intellij. How to
answered Mar 8 at 20:50
HeftyDolphinHeftyDolphin
1810
1810
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
add a comment |
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
I have already created an executable .jar file. Nevertheless, I have to create a .bat file containing (java -jar name.jar) to make it run. I just want to have one file, that starts with a double click.
– Georgios
Mar 8 at 22:03
add a comment |
4
JavaFX is not being discontinued as of yet. It has simply been removed from the JDK—as of JavaFX 11—and is now developed/maintained as a separate project.
– Slaw
Mar 8 at 21:45
So I now have found another way to do it. After creating a .jar file a can create a .bat file. In there I can write the following 'java -jar name.jar' then the program will run. I still would like to avoid the creation of a second .bat file. Is there perhaps another solution?
– Georgios
Mar 8 at 21:57