executive java program
-
Hello Everyone iam learning programming in java i started in GUI programming i need to know how to make programs executable i use eclipse i tried to export it as a .jar but it didnt work pls help :) thanks.
OmarSH wrote:
i tried to export it as a .jar but it didnt work
You need to provide more details than that. Remember, we cannot see your screen or the commands you may have used to create the
.jar
file. Please explain what you did to create the jar, what output you got, and what happened when you tried to run it.One of these days I'm going to think of a really clever signature.
-
Hello Everyone iam learning programming in java i started in GUI programming i need to know how to make programs executable i use eclipse i tried to export it as a .jar but it didnt work pls help :) thanks.
Does it run if you hit the green arrow at the top? If so, just right click your project and export it Export -> Java --> Runnable Jar
-
Does it run if you hit the green arrow at the top? If so, just right click your project and export it Export -> Java --> Runnable Jar
-
OmarSH wrote:
i tried to export it as a .jar but it didnt work
You need to provide more details than that. Remember, we cannot see your screen or the commands you may have used to create the
.jar
file. Please explain what you did to create the jar, what output you got, and what happened when you tried to run it.One of these days I'm going to think of a really clever signature.
-
Well you still have not explained what happens. Please show us exactly what commands you use to run it, and what results you see?
One of these days I'm going to think of a really clever signature.
hi i open eclipse IDE i select on the class(in project explorer) by right click in the mouse ,i pressed export as a jar(one time as a runnable jar file and other as jar file) then next select the export destination the program made a jar file on desktop i click on it it is open like explorer ) by the way i am using linux mint thanks
-
hi i open eclipse IDE i select on the class(in project explorer) by right click in the mouse ,i pressed export as a jar(one time as a runnable jar file and other as jar file) then next select the export destination the program made a jar file on desktop i click on it it is open like explorer ) by the way i am using linux mint thanks
-
You cannot run java programs by clicking them, you have to use the
java
command, e.g.java -jar myjavaprogram.jar
One of these days I'm going to think of a really clever signature.
-
Thank you it is really worked :) but how to make it like a program (install ,desktop icon, etc)