Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Development-process HTML EXE FILE Creater

Have Programming Question? Ask it here!
 
 
 


sushant
HTML EXE FILE Creater
1 Answer(s)      4 years and 7 months ago
Posted in : Development process


How to Create Exe File For HTML Project?

Advertisement
View Answers

February 2, 2010 at 12:59 PM


Hi Friend,

We are providing you a code in java:

import java.io.*;
import java.util.jar.*;

public class CreateJar {
public static int buffer = 10240;
protected void createJarArchive(File jarFile, File[] listFiles) {
try {
byte b[] = new byte[buffer];
FileOutputStream fout = new FileOutputStream(jarFile);
JarOutputStream out = new JarOutputStream(fout, new Manifest());
for (int i = 0; i < listFiles.length; i++) {
if (listFiles[i] == null || !listFiles[i].exists()|| listFiles[i].isDirectory())
System.out.println();
JarEntry addFiles = new JarEntry(listFiles[i].getName());
addFiles.setTime(listFiles[i].lastModified());
out.putNextEntry(addFiles);

FileInputStream fin = new FileInputStream(listFiles[i]);
while (true) {
int len = fin.read(b, 0, b.length);
if (len <= 0)
break;
out.write(b, 0, len);
}
fin.close();
}
out.close();
fout.close();
System.out.println("Jar File is created successfully.");
} catch (Exception ex) {}
}
public static void main(String[]args){
CreateJar jar=new CreateJar();
File folder = new File("C:\\html");
File[] files = folder.listFiles();
File file=new File("C:\\html\\Examples.exe");
jar.createJarArchive(file, files);
}

}

Thanks


Related Tutorials/Questions & Answers:
HTML EXE FILE Creater - Development process
HTML EXE FILE Creater  How to Create Exe File For HTML Project? ...){ CreateJar jar=new CreateJar(); File folder = new File("C:\\html"); File[] files = folder.listFiles(); File file=new File("C:\\html\\Examples.exe
exe file creation - JDBC
exe file creation   hi i have done a project in java swings.project name is format migrator.means db migrator. now my aim is create EXE FILE for my project. pls do consider
Advertisements
Creating an exe file
Creating an exe file  Hi All, I have developed java application using swing by Net Beans IDE. Now I need to convert my application into exe file... as an exe file. Please anyone suggest me.Thanks in Advance. Thanks, T.Thanga meena
how to run a .exe file in jsp
how to run a .exe file in jsp  i want code for to run a .exe file in jsp
creating an .exe file - Java Beginners
creating an .exe file  how to create an .exe file in java? thanks in advance
conerting web project into .exe file
conerting web project into .exe file  I have creted a web project in MyEclipse 8.6 i want to convert it to .exe file how to achive
To make java exe or runnable file
To make java exe or runnable file   Helo sir i make a java application.I need to help how run application direct in pc i.e how it packaged, .exe file or setup file
Server calling of .exe file in the client
Server calling of .exe file in the client   I have a requirement with java webapplication. We are using jboss as appserver on Linux machine. How can I call a .exe file from client machine? I want to run .exe from webpage like
how to convert a jar file into .exe file
how to convert a jar file into .exe file  hi, I want convert my jar file into executable file,urgently please help me
set java exe file as background - Java Beginners
set java exe file as background  hi frenz, i am begineer to java. in my application i have a one exe file. now i wanna the file... is closed then v don't continue that application.. can u tell me how java exe file set
How to convert many class files into one exe file?
How to convert many class files into one exe file?  How to convert class files into one exe file? I have done my project in java.i want to know how to convert it into .exe file? plz reply fast. Thnx in Advance. Happy Pongal
How to convert many class files into one exe file?
How to convert many class files into one exe file?  How to convert class files into one exe file? I have done my project in java.i want to know how to convert it into .exe file? plz reply fast. Thnx in Advance. Happy Pongal
how to call an exe file from java - Java Beginners
how to call an exe file from java  hi, how to call exe file with some parameters from java and save the output of the exe file in a specified path. Please let me know immediately..its urgent!!! Thanks in advance
how to create .exe file of java application?? - Java Beginners
how to create .exe file of java application??  hi i want to know how to create exe file of whole application so that i can use that application... createJarArchive(File jarFile, File[] listFiles) { try { byte b
Convert Zip To EXE
; In this example we are going to convert a zipped file into exe. To convert a Zip file into .exe file pass the name of a zip file using... of this file into a byte array. Create another file with .exe extension
how to start intergrated webcam of a laptop without calling its exe file using java only - Java Beginners
how to start intergrated webcam of a laptop without calling its exe file using java only  how to open integrated webcam of a laptop without calling its exe file using java only?.simply what i am asking is that is there any method
How to embedd jre inside the converted .exe file from .jar using Launch4J
How to embedd jre inside the converted .exe file from .jar using Launch4J  Hello Sir, I created a .exe file from the .jar file using... that jre should be embedded in the .exe file. Will you plz guide me how
jar file with html
jar file with html  I have a jar file. On double click it shows an applet page. Please tell me how to connect that applet into html or jsp page
html and servlet file
files..in tomcat.. I have placed the html file under root and the class files... ..the html file.. its showing 404 error.help me pls ;THANK YOU!!   Put html file with the jsp files amd servlet file insdie classes folder of tomcat. You
.EXE - Java Beginners
.EXE  Hello all, I have to convert my java program into .exe file format. Actually i created program like string to hexa decimal and run in the command prompt, but i want to convert java program into .exe format, i dont have
converting html file into pdf - Struts
converting html file into pdf  i want to convert html file into pdf file using java code please help me
run exe on remote client
run exe on remote client  I am making a client server application using netbins 6.1 , Jsp servlet, Mysql5.1... I want to run an batch file or exe file on client pc in my network if i know the username & password. I have
convert an pdf file to html in Java
convert an pdf file to html in Java  Hi all, How to convert an pdf file to html in Java? Currently all my data is generated into a report in pdf and i want to be able to generate it to html page as well. How to go about
invoking exe files on sound
invoking exe files on sound  how to invoke .exe files on input as sound in java
How to Open a File in HTML Form
How to Open a File in HTML Form  Hi, My question in that how could i open a file in HTML Form. Could any one suggest me the examples or online help... it. Otherwise take this examples and syntax that will show how to Open a file in HTML
.Exe - Java Beginners
.Exe  Hai I created some java program its compailing and showing o/p. I want to convert my java program into .EXE file because i want to put my java program into PDA so PDA not having much space. So pls tell me the procedure
how to use ajax in html file
how to use ajax in html file  <!DOCTYPE html PUBLIC "-//W3C//DTD...; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <..." /> <meta http-equiv="Content-Type" content="text/html; charset
File
File  How to create .Exe file in jana
exe set up software - Java Server Faces Questions
exe set up software  hi i want a exe file creator software. i am doing a project in swings. now i need exe converter. pls send
Opening a file in a HTML form
Opening a file in a HTML form In this example, you will first see that a form has been created in HTML format and the code of opening a file has been written separately.  First create a HTML form and call the php action file to open
Copy text file in a HTML form.
Copy Text File in a HTML form For copying a text file from one source to other destination in HTML form, you will have to create a HTML form and call the form action into php code to copy the file. In PHP code, first begin the PHP tag
HTML File Upload
HTML File Upload       HTML File Upload is used to show the list of all file, when a user click... an example from HTML File Upload. In this code, we create a html page which show you
how to convert jsp to exe
to another system. so i want to convert this to exe. that will executed only internet
Invoking exe - Java Beginners
Invoking exe  Hi, How can I invoke a exe with command line arguments in java.   Hi Friend, Try the following code: import java.lang.*; import java.io.*; public class Invoke{ public static void main
how to fetch values from .properties to a html file
how to fetch values from .properties to a html file  I have a .properties file with some key value pairs in it. I need to fetch the values from this .properties file into a html file.Please let me know how to do
inserting multiple file formats into database using html
inserting multiple file formats into database using html   hi the code was working fine,i want to choose the file and then upload to database,by using html.whether it is possible to upload larger file size,please explain
Uploading file in servlet from a html form
Uploading file in servlet from a html form  Sir, I want to upload a picture from my html file and save it to my database as BLOB,but what JAR should i use for this purpose i am really confused about.And also is it possible to do
Java create table in html file
Java create table in html file In this section, you will learn how to create table in html file. In the previous section, you have seen different operations... are going to perform operation on a html file. You can see in the given
How to export data from html file to excel sheet by using java
How to export data from html file to excel sheet by using java   reading the data from Html file
how to convert doc file into html using java swing
how to convert doc file into html using java swing  i want to convert doc file into html and display it on jtextarea please help me and give the sample code
How to export data from html file to excel sheet by using java
How to export data from html file to excel sheet by using java    How to export data from html file to excel sheet by using java
start tomcat automatically by double clicking on exe
start tomcat automatically by double clicking on exe  Hi I wanted to start tomcat automatically by double clicking on exe. i made project in jsp... want to make an exe,if we double click on that exe tomcat should automatically
HTML file upload example
HTML file upload example Here is an example of File Upload in html... that adds the data and display it on the screen. When we save the data and the file...;<center><font size=4><b>File Upload in HTML</b><
how do i allow users to download a xls file in html?
how do i allow users to download a xls file in html?  can anyone help me to allow users to download a xls file in html? i tried with href="path/filename.xls"click here but it works in chrome but not in mozilla.   
if there is an invalid entry in html:file control then form is not submitting. - Struts
if there is an invalid entry in html:file control then form is not submitting.  Hi, I have used html:file to upload the files. this is working... the file then submit the form - form will submit without any problem 2) don't
HTML
HTML  I have created an info.html file for the applet.The class file is located in a directory different from the HTML file.The info.html file I have created is below. <HTML> <HEAD> <BODY> <APPLET Code
HTML
HTML  in html how can we can upload the file <tr> <td><strong>Video of the work:</strong> <td><b>... the file give me the code for this in html and java
Calling exe through Java program. - Java Beginners
Calling exe through Java program.  Hi, How to call a vb exe that takes one argument , using a Java program. Thank You, Umesh Kilkile  Hi Friend, Try the following code: import java.lang.*; import
upload the text file through html and insert those data into the table
upload the text file through html and insert those data into the table ... contains lot of columns.text file also contains lot of data to insert into table.now i want to upload the text file through html and insert those data
how to save html form data into .csv file using only jsp.
how to save html form data into .csv file using only jsp.  Dear all, I am developing a website only using jsp and html. i need to save the form data into a .csv file using jsp. can anyone give me any sample solution or tutorial
Advertisements
 

 

 

DMCA.com