Creating java exe
Hello sir ,how i can make Java Programs Set up File ,Please give me steps to make that.
Kaunain_Ahmad wrote:
...how i can make Java Programs Set up File ,..Does your application have a GUI? Can you distribute it from a web site? If so, then [Java Web Start|http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp] is probably the best way to go about installing it.
If you actually need something that can be installed from a disk, and it is not an applet targeted at 1.6.0_10+ (which can then use web start to install from disk), then search on 'java installer'. There are a number of pure Java installers available.
Note that creating a Windows style EXE is not a good idea. Why turn a cross-platform application into something that is limited to Windows?
Similar Messages
-
hi,
i am new to java programing i want to know how i create ms-dos batch file of our java applicstion
plz give me solution of my problemHave you made the application already?
If so, simply click on http://www.computerhope.com/batch.htm to find out how to create batch files (or type 'ms dos batch files' into google and press 'I'm feeling lucky').
Otherwise, expand upon your question - your title suggests you want to create a java .exe file, which is only possible through an IDE like Visual J++, while your question asks for how to create a batch file.
Hope this helps,
SpinyNorman -
How to create the exe file for java project.
How to create the exe file for java project.
am done the project in java swing , i like to create the project in exe format, so any one help for me,
send the procedure for that.
thanking u.How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
and got several useful links.
Better search terms might yield even better results.
Sheesh. -
How to create a .exe file for a java application
Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?
Create a .bat file and run that. Just have, in the .bat file:
java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
using javaw won't pop up any window... -
Hi all,
any way to create the exe file using JBuilder 3?
if possible how to do that?
how about creating installation file for the application?
thanks alotI think you might need a byte code compiler that converts the .class files to .exe
I believe there are some products out there that do this. I don't think there is a java utility that performs this type of operation. -
How to create the exe files for java application
How to create the exe file for java application?
got any software to do that?
ThanksIn terms of converting java applications into exe files, there are 3 schools of thought:
1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
http://www.sureshotsoftware.com/exej/
http://www.objects.com.au/products/jstart/index.jsp
http://www.duckware.com/products/javatools.html
http://www.ucware.com/jexec/
http://www.rolemaker.dk/nonRoleMaker/javalauncher/
http://www.jelude.cjb.net/
http://thor.prohosting.com/~dfolly/java/index.html
3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
http://www.excelsior-usa.com/jet.html (evaluation version available)
4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
Can't think of any free options right now. -
Want to create and exe file for .java files
Hello all :)
I am making a multi-threaded console application.
It also takes command line parameters from user.
I want to create .exe files out of .java files.
Note:- One class contains main method (in default package) and all other classes are in some specific package
I want to create an exe for the whole application.
The solutions which i get on net is exe4j but i was unable to use it.
Please suggest me to create an windows executable file out of java files.
Thanx in advanceby definition, if you double click on the .exe , you won't pass it parameters
you have to launch a shell, reach the directory where the .exe (or .jar) is stored, and launch the exe directly with parameters, e.g:
myApplication.exe -u user -p password
you can't double click on the exe and say "ok, i give you -u -p!" ; everything has to be done simultaneously if your app is using the "String [] args" arguments of main
if you want to specify parameters after launching the app, you have to grab user input in your main -
Creating java executables - .exe
Is this possible? is there an easy way of doing this, I'm only a beginner at java and hope there is a simple way to create independent executable files.
Thanks all :)There is a program to make java files executable you can find it at
www.excelsior-usa.com/jet.html. However the full program licence is very expensive. The trail version does make executables but you can only use them on the machine that you create the .exe's on :(
Try looking into executable jars and bundling the JVM with it, or batch files can be another solution but again you will need to bundle the JVM -
How Can I Create A .exe file in java using th enetbeans IDE
Dear Friends
i am trying to ceate a .exe file in th e netbeans IDE for jav prorams.
I am uanble to fine the option to create the .exe file.
i will be thankfull if you will help me out.Search for exe4j
-
The problem is this: In the phase "Create Java Users"
Hello,
I am installing Solution Manager 4.0 Release 2 (with Red Hat Enterprise Linux Server release 5.1 and Oracle 10 and my java version is: j2sdk1.4.2_14) The problem is this: In the phase "Create Java Users" I get the next error
WARNING 2009-02-13 14:53:22
Execution of the command "/usr/sap/PTS/DVEBMGS00/exe/jlaunch UserCheck.jlaunch com.sap.security.tools.UserCheck /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install -c sysnr=00 -c ashost=sap-vpmn -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with return code 2. Output:
java.lang.ClassNotFoundException: com.sap.security.tools.UserCheck
at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:691)
at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:600)
at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:578)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:79)
INFO 2009-02-13 14:53:22
Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.
INFO 2009-02-13 14:53:22
Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.clone.
ERROR 2009-02-13 14:53:22
CJS-30196
ERROR 2009-02-13 14:53:22
FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
Thanks & RegardsHi,
This problem normally arises with the wrong combination of JDK and OS and for the Linux machines, its better to use IBM Java instead of SUN java
I remember that I have solved this type of problem by using lower version of IBMJava2-AMD64-142-SDK-1.4.2-10.0.x86_64.rpm which is SR10. You can download this version from
http://www.ibm.com/developerworks/java/jdk/linux/download.html
go to download _12 and then just change the sr12 to sr10 in the header url....
FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
with the higher versions of java for 64bit systems create serious stack over flow problems.....
what I suggest you is to start reinstallating SolMan after installing IBM java sr10 version...
Regards,
Naveen. -
How to create a exe file of a .class file
how to create a .exe file for windows .class file of java
please answer this so that i can complete the project to be submited to collageThere is a program called JET. Is enables you to create .exe files of .class files.
This is the URL:
http://www.excelsior-usa.com/jet.html
Succes
--=tReShR=-- -
My Applet crashes java.exe to crash
Ok, I'm not sure why, but on some computers my applet is making java.exe crash. When i attach a debugger to java.exe when it crashes I see a "Access Violation Error". The oddest part is that while one computer will crash and another identical computer with the exact same setup wont. The crash happens the moment the applet starts.
Now I've done just about everything i could to figure this out. I've installed uninstalled and reinstalled java. I've run ram, hard drive, cpu, ect tests all reporting no problem. I've disabled anti-virus and did the uninstall and reinstall again. I've installed older versions of the java. I've resigned my jar file, created a new key and then resigned. Practically the only thing i have not done and is not a viable solution is reformat/replace the computers. So I'm left thinking it might be something in the applet that is causing it.
It could be in the applet parameters but i doubt it.
Pram fp is about 5,000 characters long
Pram VerfyType is about 1 character long
Pram Arg1 is a max of 11 characters long
Pram Arg2 is a max of 11 characters long
This applet is meant to interact with a program on the computer that connects to a variety of fingerprint scanners that we use and passes information form the internal site to the scanner and vice versa. So it just starts a loop back socket. For the loop back socket, i have tired 127.0.0.1 and localhost which still yield the same result.
Here is the applet. It's very simple.
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.Image;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.net.UnknownHostException;
import java.security.AccessController;
import java.security.PrivilegedAction;
public class Verify extends JApplet {
private static final long serialVersionUID = 908206045464466336L;
public JLabel jLabel1;
public jPanel jPanel1;
public String Template = "";
public String VerfyType = "";
public String Arg1 = "";
public String Arg2 = "";
public Thread t;
Socket socket = null;
public void stop()
jPanel1.threadRun = false;
if (socket != null)
try {
socket.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
public void init()
//Execute a job on the event-dispatching thread:
try {
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
Template = getParameter("fp").trim();
VerfyType = getParameter("VerfyType").trim();
Arg1 = getParameter("Arg1").trim();
Arg2 = getParameter("Arg2").trim();
initComponents();
} catch (Exception e) {
System.err.println("getParameter didn't successfully complete");
StartVerify();
private void initComponents() {
jPanel1 = new jPanel();
jLabel1 = new JLabel();
jPanel1.setPreferredSize(new java.awt.Dimension(66, 66));
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Initializing Please Wait.");
setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 66, Short.MAX_VALUE)
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 66, Short.MAX_VALUE)
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 536, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(224, 224, 224)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1)
.addContainerGap(116, Short.MAX_VALUE))
public void StartVerify()
t = new Thread() {
public void run()
AccessController.doPrivileged(new PrivilegedAction() {
public Object run()
PrintWriter out = null;
BufferedReader in = null;
try {
socket = new Socket("localhost", 4001);
out = new PrintWriter(socket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch (UnknownHostException e) {
jLabel1.setText("Unkown Host Error.");
return null;
} catch (IOException e) {
jLabel1.setText("Unable to get communication streams..");
return null;
String reponse = "";
try {
reponse = in.readLine();
if (reponse.equalsIgnoreCase("cmd"))
out.write("v\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("send"))
out.write(Template+"\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("finger"))
jLabel1.setText("Please Have the client place their finger on the scanner.");
while (true)
reponse = in.readLine();
if (!reponse.equalsIgnoreCase("pulse"))
break;
if (reponse.equalsIgnoreCase("good"))
try {
DoRedirect();
socket.close();
} catch (IOException ex) {
else if (reponse.equalsIgnoreCase("bad"))
int _return = LoopTellCanceled(socket, out, in);
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
catch (IOException ex)
jLabel1.setText("We lost connection to the finger print reader.");
System.err.println(ex);
try {
out.close();
in.close();
socket.close();
} catch (IOException e) {
System.err.println("Couldn't get I/O for the connection");
return null;
return null;
t.start();
private int LoopTellCanceled(Socket socket, PrintWriter out, BufferedReader in)
int res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
while (res == JOptionPane.YES_OPTION)
String reponse = "";
try {
out.write("v\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("send"))
out.write(Template+"\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("finger"))
jLabel1.setText("Please Have the client place their finger on the scanner.");
while (true)
reponse = in.readLine();
if (!reponse.equalsIgnoreCase("pulse"))
break;
if (reponse.equalsIgnoreCase("good"))
try {
DoRedirect();
socket.close();
} catch (IOException ex) {
else
res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
} catch (IOException ex) {
System.err.println(ex);
return res;
public void DoRedirect()
try
if (Arg1.equalsIgnoreCase(""))
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+");"));
else
if (Arg2.equalsIgnoreCase(""))
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+");"));
else
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+", "+Arg2+");"));
catch (MalformedURLException ex)
ex.printStackTrace();
}Edited by: Pyromanci on Mar 1, 2011 7:58 AMWhat does your error console report? - Which one? Browser, PC, ect
How about your java console say? - I have no clue what it could be saying since java.exe crashes the moment the applet starts the console is no longer accessible.
What browser and version? - Firefox v3.6.13
Have you tried a different one? - Yes Ie 6,7, and 8. Though the site the applet runs form was designed specifically for firefox (internal site)
Have you tried Appletviewer? - Yes applet runs as intended.
Did you give the Applet permission? I know you said you signed it - did it all go right? - Yes. Gave me the usual response of will expire in x months -
How will I create a exe file in JAVA.
It can be easily done with vb.
Please suggest me ways.Hi success1,
You have made me so happy -- because you have asked a FAQ (Frequently Asked Question) to which I know the answer!
Out of the multitude of resources available on the Internet that do answer this question, allow me to suggest this one (and I'm sure you haven't already seen it ;-):
http://www.yoda.arachsys.com/java/javaexe.html
Hope this helps you.
[Of-course, if I have [u]completely misunderstood your question, then please forgive me :-]
Good Luck,
Avi. -
ARGENT:error in java.exe operating server (after updating remote dbase)
Hello,
I am getting big trouble in java.exe which is running server program.
interface : swings
windows: NT 4.0
database: MS access97
jdk 1.3 (jsdk2)
Dr. watson of NT reporting the error in java.exe(of server) that application error has occured and this is happening every time after i update or write something into the database. Currently i am doing it on localhost m/c.Error: "the instruction at "0x77b3cd19"
referenced memory at 0x77b3cd19".The memory could be read/"
//server code
import java.rmi.*;
import java.rmi.server.*;
public class LoginServer {
public LoginServer() {
try {
Login c = new LoginImpl();
Naming.rebind("login", c);
} catch (Exception e) {
System.out.println("Trouble: " + e);
public static void main(String args[]) {
new LoginServer();
//Remote functions implementation
import java.rmi.*;
import java.rmi.server.*;
import java.sql.*;
public class LoginImpl extends UnicastRemoteObject implements Login
public LoginImpl() throws RemoteException
super();
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
} catch(Exception e) { System.err.print("Exception: ");
System.err.println(e.getMessage());}
//register new user take name and password as arguement and creates
// new user and set status OFF (ie user not logged in)
public int NewUser(String n,String p) throws RemoteException
String url = "jdbc:odbc:Authentic";
int i=2;
Connection con;
Statement stmt;
ResultSet rs;
try {
con = DriverManager.getConnection(url, "anything", "anything");
stmt=con.createStatement();
rs = stmt.executeQuery("SELECT NAME FROM TAUTHENTIC");
while (rs.next()) {
String nam = rs.getString("NAME");
if((n.equalsIgnoreCase(nam)))
i=1;
rs.close();
stmt.close();
con.close();
break;
f (i==2) {
stmt.executeUpdate("INSERT INTO TAUTHENTIC "+"VALUES'"+n+"','"+p+"','OFF')");
i=3;
rs.close();
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
return i;
//verifying usre and password and then checking status if off turns on else cant verify.
public int VerifyUser(String s,String p) throws RemoteException
{ int i=0;
String url="jdbc:odbc:Authentic";
String status="OFF";
Connection con;
Statement stmt;
ResultSet rs;
try {
con = DriverManager.getConnection(url, "anything", "anything");
stmt=con.createStatement();
rs = stmt.executeQuery("SELECT NAME, PASSWORD, STATUS FROM AUTHENTIC");
while (rs.next()) {
String nam = rs.getString("NAME");
String pas = rs.getString("PASSWORD");
String sta=rs.getString("STATUS");
if((s.equalsIgnoreCase(nam))&&(p.compareTo(pas)==0))
if(status.compareTo(sta)!=0)
{i=5; break;}
if((s.equalsIgnoreCase(nam))&&(p.compareTo(pas)==0)&&(status.compareTo(sta)==0))
System.out.println("Hi " +nam + " you are in our stock program now");
i=1;
break;
if(i==0)
System.out.println("Sorry either user dont exist or invalid user name or password");
rs.close();
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
return i;
//changes status each time user logged in or logged off
public void cstatus(String name,String status) throws RemoteException
String url="jdbc:odbc:Authentic";
Connection con;
Statement stmt;
try {
con = DriverManager.getConnection(url, "anything", "anything");
stmt=con.createStatement();
stmt.executeUpdate("UPDATE TAUTHENTIC SET STATUS ='" + status + "' WHERE NAME LIKE '" + name + "'");
stmt.close();
con.close();
catch(Exception ex){ System.out.println("Exception: "+ex.getMessage());}
i have used swings to call these functions. Updation is happwning but also bringing runtime server application halt.
//if u need i can mail u my GUI client file from where i am making my RMI connections. my email is [email protected]. Please reply back as soon as possible as i am working on a java project of software agents and have to complete it by this month.
thanx and bye for nowFormat this mess.
http://forum.java.sun.com/faq.jsp#format -
Hi,
I have a java application that performs many functions. I have compiled this application into an exe file. I would like to automate things.
E.g. using Windows Scheduler to run the app at 2am - execute function1, 4am - execute funtion2. etc..
Is it possible to pass an attribute to the exe when executing so that the function can be executed automatically.
At the moment, I am creating 5 different exe files, each one is essentially the same application, but starts at different functions. I would therefore like to simplify this into one app.
Thanks in advance
Regards
AngusI am not sure what tool you are using to generate your exe from your java byte code, but i would assume that it would pass variables given with the exe to the java program and as such you can just extract the variable from the args[] string array in your main method.
i.e.
"program.exe -func1"
passes it to your public static void main (String args[])
so just get the variable from the args array.
As i have said, since i dont know how your java -> exe tool works this is just a suggestion.
Maybe you are looking for
-
Creation of New RMS ID in Dispute management
Hi Team , Requirement is My client wanted to use 3 custom RMS ID apart from SAP Standard RMS ID .so we need to create new custom RMS ID . Can any one help me by giving the step by step configuration of Creation of New RMS ID .and what other configu
-
Adobe Acrobat 9.4 Pro / Win7 Enterprise (64bit) - problem opening pdf
Hello, i got problems opening pdf files. when i try to open the pdf file i get the message 'access denied'. That happens when i try to open it with a standard user. opening that file 'as administrator' works fine. I tried the Win7 compatibility check
-
Window not remembering the display it was on
Hi, Dual Displays and Mavericks: Before Maverick I would have certain applications like mail and the finder open on one monitor and other apps open on the other. Now with mavericks they do not remember which monitor they opened last on and stick ther
-
Query regarding SAP Netweaver Mobile 7.1
Hello Experts ! 1. What is the difference between SAP Netweaver Developer Stuido and SAP Netweaver Mobile 7.1 or higher version ? 2. For developing applications related to SAP Mobility which one is the better option ? 3. What are the sources availabl
-
Excel Function iserror is not supported
Hi ! I am using vlookup along with iserror to remove an errors that result of a logical lookup. For e.g. a sample formula on my sheet would look like =IF(ISERROR(VLOOKUP(A1,A1:B22,2,0),"",(VLOOKUP(A1,A1:B22,2,0)) Everytime I build a preview, Xcelsiu