Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-02-2006, 10:23 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jan 2006
Posts: 1
Default exe converter



Do any1 knows, how can i convert *.java or c++ files into executables(.exe)..?... Please tell me... i don't know it .i'm only in class IX.
saheb is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-02-2006, 12:10 AM   #2 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

Are you referring to do that on linux ?

Well, first of all there is no exe in linux, but there is always executable files, often called binary executable files.

For C
gcc <filename.c>

For C++
g++ <filename.cpp>

On both cases, on successful compilation produces an a.out file. This is your execulable. For executing,

./a.out

For Java

javac <fileName.java>

A successful compilation will produce java.class file. This is your java byte code. For executing JBC,

java <fileName.class>

For java, the compilation and running process is same in all OS. For C/C++ you may need to replace gcc/g++ with the curresponding compilers available for that OS. If you're using Windows and have a TC compiler

tc <filename.c> or tc <filename.cpp>

will produce filename.exe on successful compilation. to run it

filename.exe.

You can also use the TC IDE for building executables.(Ctrl + F9, if memory is correct).
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 06:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2