Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Compiling in Java

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
juangui
Newbie cheater
Reputation: 0

Joined: 17 Jun 2006
Posts: 18

PostPosted: Mon Oct 08, 2007 9:27 am    Post subject: Compiling in Java Reply with quote

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
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Mon Oct 08, 2007 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Thu May 01, 2008 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
CZ3R0C
Grandmaster Cheater
Reputation: 0

Joined: 17 Nov 2006
Posts: 792

PostPosted: Thu May 01, 2008 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Thu May 01, 2008 11:10 am    Post subject: Re: Compiling in Java Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites