Create an Exe from a Jar File [UPDATED]

Create an Exe from a Jar File [UPDATED]


Today we learn how to create an executable file from our existing Java jar file. This video is an update from our previous exe to jar tutorial and addresses some of the issues we had.

Download JSmooth here: http://jsmooth.sourceforge.net/
Updated Weather Library: https://goo.gl/9WV0MY

You can follow me here:
------------------------------------------------------------------------------------
Email: ceo@teknikindustries.com
Facebook Page: http://www.facebook.com/ProjectJarvisAI
Facebook: http://www.facebook.com/TeknikHackers
Twitter: http://www.twitter.com/IamTeknik
Website: http://www.teknikindustries.com
Skype Username: teknikhackers
------------------------------------------------------------------------------------

------------------------------------------------------------------------------------
Want to play some Battlefield 4 and other online games with me? Invite me as a friend on these multi-player apps:
Steam ID: teknikhackers
Origin ID: IamTeknik
------------------------------------------------------------------------------------
Closed Caption:

hey guys welcome back to another
tutorial in today's video I'm going to
cover something which we did quite a
while ago it's actually one of my very
first tutorials and I basically showed
you how you can convert a jar into an
exe and basically install your program
onto a specific users computer now the
issue that we have with that recently is
that excel sheet jet which is a program
that we use previously does not actually
support the latest jdk as soon as it is
released so the problem is that many
people are downloading the latest jdk
because obviously that's a good practice
to java and then finding out that excel
sheet is not actually showing up the
main class which is basically coming
down to the fact that Excelsior jet does
not support the latest jdk and somebody
can take a number of years in fact just
recently started supporting 1.7 so I've
gone ahead and done a little bit of
research and found a program called J
spewed which is a txt wrap up now this
is important because it basically
converge onto an exe what does not put
it into something like an MSI installer
which is what Excelsior jet does now if
this is not what you want you might have
to look for another type of application
which does that but for this specific
tutorial and for most people this is
going to be more than good enough
so what you want to firstly do is head
on over to Jay smooth at sourceforge.net
i will leave the link in the description
if I don't forget and you can see the
websites pretty old because it was
released was actually in 2007 but it is
still working
absolutely perfectly so what you want to
go and do is head on over to the
download file and just simply follow
follow all the things that take you to
the actual download itself is really
it's completely free the a/c takes you
to sourceforge just click on a smooth
now we're going to do is choose the most
recent version of the time of release
which is . 917 dash 7 and you're gonna
go on ahead and Donna whichever one is
suitable for you
most people as you can see it's
downloading the setup.exe which is under
scholars and solving your program and
that's basically what you want to use to
go ahead and download the setup.exe
pretty small 3.9 megabytes and install
it as
normal onto your computer now the next
thing you want to do is you want to open
up netbeans ok guys so once you have
that means open you want to locate the
file that you want to convert when DXE
so in my case I want to convert my quick
launch widget which only does
essentially is just opens up whatever i
click on so Twitter amazon youtube it
opens up all these things and i call it
the quick launch which it because it
opens up these four dresses really
quickly so what you want to go ahead and
do is firstly compiling bored you want
to ensure that your program is up to
date as well as all the files in the
disk folder which you can see it does
right here
it basically creates a directory and
updates everything within the district
fold-out so once you have that you guys
can go ahead and just copy this
directory ctrl-c open up your file
explorer just paste it in there and you
guys can see we are at your specific app
into the dist folder now if you guys
want to navigate manually just navigate
your netbeans project folder the apt
name of the app folder name and then
into the dist folder in the disability
us can see we have live which stands for
libraries and we have absolutely out
which is very important because we use
the absolute layout library in our
program if you don't use that if you use
something like relativelayout to
something that it may not have that it
may have it and you can see any double a
giant actually runs the app and you can
see everything opens up as normal so
that's basically how you generate a jar
file within champions itself now what
you want to go ahead and do is open up j
smooth ok and yes antique international
welcome to Jace muth page when you get
it might be fairly small i suggest going
ahead and making a little bigger so
that's a welcome page and this basically
on the left is your navigation so you
want to click on skeleton now it got
these villains israel ? which can hover
over and get a little bit more
information from the first one is the
skeleton selection so we have wind
service rapper or download rapper
console window and custom web download
rapper now we have actually created a
GUI so you can either go with window
dropper or console rapper now if you
click on console rapper you can actually
see it gives you some information about
what this rapid does if you click on
something and realize that it's not
exactly what you want like for this one
right here you can see it can launch a
strategy or application however it will
also show the command prompt which we do
not want so you want to go ahead and
create the window dropper which is you
can see right here no console and put
out the output is displayed and you can
also see it's it's basically for GUI
applications so you can also create a
little little message here if java is
not found which some people don't have
java which is so it's a good idea to
disapproval message put the URL and
we'll go ahead and download it if it
detects that there's no runtime
environment installed we're going to go
on ahead click onto the executable and
we're going to select executable binary
so all you want to go ahead and do is
just type in the name of the application
so mine is quick quick launch widgets
and make sure to put dot exe at the end
you can see when you hover over it tells
you it was younger . exe now you can go
ahead and select an executable icon you
can see you should use . ico files
however you can see PNG JPEG work that
type of stuff works so i'm going to go
ahead and click on these three dots
right here
navigate to this image that I've created
which is this icon image right here and
basically what i found out that Jason
actually resizes your icon to 32 by 32
and 256 colors so it's a 32 by 32 image
with 8-bit RGB so that's what I've gone
ahead and done i've created an 8-foot
RGB and made it 32 by 32 not for images
bigger than 32 by 32 it will resize it
and also it has like 16 or 32-bit color
it will reduce it down to it puts the
current directory you can put this
anywhere you want i'm just going to go
ahead and open my documents folder just
right there
click on application now this is where
you actually select your jaw and the
other types of information which creates
the functionality so because we're going
to be using a jar file going to click on
use an embedded job great firstly then
click on these three dots and
reinvention navigate to where we saved
where Joe is actually saved you can see
for me it's an ambien projects
quick-launch widget and dist so I'm just
going to navigate there and it means
launch widget disk and we're going to
select a quick launch widget job now you
can go ahead and go to the main class
click on the street . and you can see it
has available classes I want to do a
double click on it will show you your
package and then just go ahead and look
for your main class which in my case is
widget GOI . java and always been
selected and lastly this is where you
specify all the other class parts used
by used by application so for us we also
have not only a main job but also
library with the absolute layout
included so if you don't put this year
this GUI actually won't show up because
it doesn't have the absolute layout
library installed or wrapped with our
actually with actual jar file I mean
java someone go ahead and that move on
over to Jay jvm java.util.collection you
guys can see we can specify the minimum
and maximum jvm version so I'm just
going to go ahead and select 1.6 and for
maximum jvm version you don't actually
have to include it because this trap is
pretty smart but if you want to
it's good to just go ahead and select
the the maximum if you want you can also
use a jvm bundled with your application
so if the person that installing the
application doesn't have the virtual
machine you can actually include the
file that will automatically install on
their system
lastly the java virtual machine
configuration now you just select
maximum memory initial memory allocation
so the maximum memory you can allocate
the maximum amount of memory that
commute for this application for
something as small as this we can go
ahead and select it to be maybe 60
megabytes
and initial memory allocation will be 10
now it's completely up to you guys if
you guys have a very complicated
application i suggest making these two
values bigger so initially will allocate
10 megabytes of memory to the
application if it needs more it will use
a maximum of 60 will keep increasing
actually reach a maximum of 60 and then
if you you know you might start noticing
things like lagging and your sister
might freeze and stuff like that so
that's that's about it
all you have to do now is click on this
little button right here or you can get
a project compile and it's just
completed a desktop and we're going to
call this compile you can have anything
you want doesn't really matter and boom
there we go
saving XD done and you guys can see how
quick launch widget if you go to
properties you can see it is . e XC e so
once you double-click on that actually
any control-alt-delete quickly guys I'm
just an end of the platform and you guys
can see as soon as I click the double
double click the exe it automatically
loads up my application and I can start
using application as if it was normal so
in the next tutorial guys are going to
learn how to actually launch this
application on a windows startup which
something that I wouldn't love request
to do in the past and by doing it with
with Jay smooth we can actually easily
open up by exe as soon as your Windows
computer launches so that's it for this
tutorial guys pretty easy pretty simple
to do
I've covered everything you need to know
to make your exe and the benefit of this
is that your file size is not actually
20 megabytes like excelsis you can see
it's only 500 a 4 kilobytes on my desk
and of course it's much faster and free
and also don't forget guys
it works with every single available jdk
so that's it for this tutorial guys I
hope you enjoyed it if you did please
don't forget to leave us a like comment
and subscribe if you haven't already and
I will see you guys next week with the
next video

Video Length: 10:47
Uploaded By: VertexDigitalArts
View Count: 4,851

Related Software Products
Exe Wrapper
Exe Wrapper

Published By:
zysoftsupport

Description:
Exe Wrapper allows you to protect any Exe-file with its own password from non-authorized execution. And it can modify the main icon of the .exe file. If you mean to keep people out of your personal stuff, add or modify the icon of executable file, add fixed argument to the execution, then Exe Wrapper is your right selection. Password is stored directly in the Exe-file. It is extremely easy to add any password to a program. An attempt to run a program that's wrapped will result in ...


Related Videos
How to fix ".exe has stopped working" problem in windows7 32 bit
How to fix ".exe has stopped working" problem in windows7 32 bit

Just follow the steps this is easiest way and work for almost 99% Just go to Control Panel\All Control Panel Items\System then advanced system settings under advanced go to performance settings then data execution prevention then add .exe file (having problem) apply then ok have fun........
Video Length: 02:12
Uploaded By: Arpit Garg
View Count: 572,098

Java 23 - Convert JAR to EXE
Java 23 - Convert JAR to EXE

Using Launch4Java to convert a JAR file into an EXE hr / bClosed Caption:/b everybody's Brian today we'll be discussing converting jar files in the Exies why would you want to convert a jar file in the first place it's already been converted well let's say you want to hand this off to your friend and they don't really understand command lines or jars or job or anything they just wanted to run well in Windows you ...
Video Length: 05:09
Uploaded By: VoidRealms
View Count: 92,391

Create MSI package from Firefox setup program
Create MSI package from Firefox setup program

Howto convert the Firefox exe installer to an MSI package. This can be used for GPO distribution from Active Directory. The used wrapper is the free MSI Wrapper from www.exemsi.com.
Video Length: 05:27
Uploaded By: Bullzip
View Count: 52,291

Exe to msi Converter
Exe to msi Converter

This tutorial demonstrates how to use the GUI Script Recorder functionality in Exe to msi Converter tool to convert an Executable Installer to a Wndows Installer Package (msi). https://www.apreltech.com/ExetoMSIConverter
Video Length: 05:26
Uploaded By: apreltech
View Count: 37,039

Windows Logon Black Screen Issue FIX 2015 [Vista/7/8]
Windows Logon Black Screen Issue FIX 2015 [Vista/7/8]

In this video you'll learn how to fix the issue with the black screen that appears after you login!This problem usually has to do with either "explorer.exe" or "runonce.exe"(Run Once Wrapper)! 1) Windows Forum Here: http://answers.microsoft.com/en-us/windows/forum/windows_7-system/windows-7-stuck-on-black-screen-after-logon/cdfcc339-5724-471b-bfb7-bb98b53cdad9 Other Videos- 2) Temporary FIX (for some computers): ...
Video Length: 09:50
Uploaded By: artifexcaptus
View Count: 6,727

Wrapping an EXE installer into an MSI package
Wrapping an EXE installer into an MSI package

Fastest way to convert an EXE to an MSI is to wrap it, instead of repackaging. Repackaging is more powerful but it is way harder to do, thus takes more time and more packaging experience. Step by step tutorial: http://www.advancedinstaller.com/user-guide/tutorial-convert-exe-to-msi.html Advanced Installer, application designed for building MSI. APPX and AppV packages, deploying applications updates, repackaging, MSI/MST editing... br ...
Video Length: 01:43
Uploaded By: Advanced Installer
View Count: 1,948

Launch4j  - Creating exe files for Java apps
Launch4j - Creating exe files for Java apps

This is a short demo showing how to use launch4j to create an exe file, executable wrapper file, for you java app. I like to use this rather than batch files for desktop appliications. hr / bClosed Caption:/b basically launched 4G a rap such file an exe file bigger settings that you would know my composure through a batch file or through a script to go to their website here in describes it it just says basically exactly ...
Video Length: 06:47
Uploaded By: Brent Pathakis
View Count: 960

How to Generate a Java EXE Wrapper. aka, How to Output EXE for Java
How to Generate a Java EXE Wrapper. aka, How to Output EXE for Java

This video describes how to wrap a java program in an executable for easy distribution on the windows platform. For this purpose, we use Launch4j to do it. Created for the CS160 Classes at Colorado State University at the suggestion of the TA. Recommended for all curious students. Download Launch4j: http://launch4j.sourceforge.net/
Video Length: 06:07
Uploaded By: Caleb Begly
View Count: 833

How to create Firefox MSI from EXE for Deployment easy War with MSI Wrapper
How to create Firefox MSI from EXE for Deployment easy War with MSI Wrapper

How to Step-by-Step instruction you can find at www.sreckotech.com Article Link : http://www.sreckotech.com/?p=369
Video Length: 01:31
Uploaded By: IT Technology
View Count: 367

Copyright © 2025, Ivertech. All rights reserved.