Results 1 to 6 of 6
Thread: can you create a .exe with java?
- 10-19-2008, 06:39 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 16
- Rep Power
- 0
- 10-19-2008, 08:36 PM #2
Yes you can probably write a program in java that will create a .exe file. What would be the input to the java program?
Or is the question: can you convert java class files into a .exe file?
This has been discussed many times on the forums. A search will turn up lots of info.
- 10-20-2008, 09:37 AM #3
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
The real question is "Is it worth the effort, taking this nice portable piece of software and binding it to a particular platform, just to save you the effort of writing a few one-line shell scripts?"
- 10-20-2008, 04:28 PM #4
Member
- Join Date
- Sep 2008
- Posts
- 16
- Rep Power
- 0
thanks for the nice replies.
yes i know that this kind of question has been asked here many times. But it's just that i couldn't find what i needed during a search, so that's why i asked a new thread. I wasn't trying to be lazy.
I've been taking a Java for about 3 months now with PHP background.
I'm just super curious to know how to create an exe to run alone and do some stuff.
I've searched around and found lot's of info, but really confusing becuase i've never done it before.
I just want to be able to do this for example:
write a simple java class that creates a square and a line of line below it.
then deploy it to a .exe for windows so that when i open it, it shows the square and the line of words.
where can i find info on this directly, or can someone point me to a place??
thanks
- 10-20-2008, 04:57 PM #5
Java programs are deployed in .jar files. When they are "opened" the contained java program executes. No need to convert it to a .exe file. The only requirement is that there be a jre installed. Just like windows requires certain dlls be installed to be able to run a .exe file.
- 10-21-2008, 02:35 PM #6
Member
- Join Date
- Jul 2008
- Posts
- 35
- Rep Power
- 0
.EXE files are those softwares which run in windows machine only. Java offers platform independency like these softwares can be executed in windoes or Linux or mac etc. But if you still need to have an application for windows machine only but want to develop with java then you may use this software- JEXECreator 1.9
Otherwise you can do one thin, have a batch file or cmd file which will launch your jar program.New to Java/PHP/Javascript development?
For free help go to- www.techcubetalk.com
Similar Threads
-
Create Calendar with Java
By neoseeker191 in forum New To JavaReplies: 4Last Post: 10-17-2008, 05:41 AM -
Create GIF from JPG using Java
By trivektor in forum New To JavaReplies: 2Last Post: 10-10-2008, 02:50 AM -
how to create Telnet CLI in JAVA
By devan in forum Advanced JavaReplies: 0Last Post: 08-11-2008, 09:21 AM -
How to create ToolTip in Java 3d
By roshithmca in forum AWT / SwingReplies: 0Last Post: 02-04-2008, 06:57 AM -
how to create pdf document from java
By sreedharvlsi in forum New To JavaReplies: 1Last Post: 07-02-2007, 11:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks