Intellij JavaFX vs Java Project for .exe file [duplicate] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!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
How can I reduce the gap between left and right of cdot with a macro?
What is the difference between globalisation and imperialism?
Why do we bend a book to keep it straight?
Should I use a zero-interest credit card for a large one-time purchase?
How to write the following sign?
What initially awakened the Balrog?
Amount of permutations on an NxNxN Rubik's Cube
Is it fair for a professor to grade us on the possession of past papers?
Morning, Afternoon, Night Kanji
What are the diatonic extended chords of C major?
Is there hard evidence that the grant peer review system performs significantly better than random?
Can the Great Weapon Master feat's damage bonus and accuracy penalty apply to attacks from the Spiritual Weapon spell?
Effects on objects due to a brief relocation of massive amounts of mass
How fail-safe is nr as stop bytes?
How often does castling occur in grandmaster games?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
Did Deadpool rescue all of the X-Force?
What do you call the main part of a joke?
Why should I vote and accept answers?
How do living politicians protect their readily obtainable signatures from misuse?
Question about debouncing - delay of state change
Generate an RGB colour grid
I am having problem understanding the behavior of below code in JavaScript
Sum letters are not two different
Intellij JavaFX vs Java Project for .exe file [duplicate]
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!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
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
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
708
708
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