View previous topic :: View next topic |
Author |
Message |
juangui Newbie cheater
Reputation: 0
Joined: 17 Jun 2006 Posts: 18
|
Posted: Mon Oct 08, 2007 9:27 am Post subject: Compiling in Java |
|
|
hi, i have a project in java, developed using Eclipse, but i dont know how to make a .exe for the project, i mean, compile it so i can execute it without opening eclipse and running it fro there.
Please help.
|
|
Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Mon Oct 08, 2007 9:48 am Post subject: |
|
|
The JDK doesn't support creation of exes, which is a Windows-only format. There are compilers out there, however, that allows you to compile your Java code into native code. They're mostly proprietary applications. Microsoft's J# could also be used, but you might need to change some of your code as J# is not made according to Sun's Java standards.
To create Java executables using tools from the JDK, you would create .jar files instead of .exe files. Users with JRE installed will be able to run the .jar file by double clicking on the file. For instructions on how to create .jar files, Google.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Thu May 01, 2008 9:30 am Post subject: |
|
|
DeltaFlyer wrote: | The JDK doesn't support creation of exes, which is a Windows-only format. There are compilers out there, however, that allows you to compile your Java code into native code. They're mostly proprietary applications. Microsoft's J# could also be used, but you might need to change some of your code as J# is not made according to Sun's Java standards.
To create Java executables using tools from the JDK, you would create .jar files instead of .exe files. Users with JRE installed will be able to run the .jar file by double clicking on the file. For instructions on how to create .jar files, Google. |
hell yeah it does watch
this is my chat program:
running with the run.bat
and this is the .exe
_________________
|
|
Back to top |
|
 |
CZ3R0C Grandmaster Cheater
Reputation: 0
Joined: 17 Nov 2006 Posts: 792
|
Posted: Thu May 01, 2008 9:40 am Post subject: |
|
|
minium haxor wrote: |
hell yeah it does watch
this is my chat program:
|
No, Java source code will probably never compile to a Native Win32 application. However, there are wrappers you can get that will accomplish this, but there is no point.
Linkin Park FTW...
_________________
|
|
Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu May 01, 2008 11:10 am Post subject: Re: Compiling in Java |
|
|
juangui wrote: | hi, i have a project in java, developed using Eclipse, but i dont know how to make a .exe for the project, i mean, compile it so i can execute it without opening eclipse and running it fro there. | javac yourprogram.java
|
|
Back to top |
|
 |
|