Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to make a .exe file for C++ &/or Java?

Status
Not open for further replies.

cold25

Programmer
Feb 11, 2002
41
US
I want to make an executable type file in Visual C++ and/or Java? I know in Visual Basic I can simply choose "Make Progam1 a .exe file" under "File". Is something similar to that possible in C++ and Java? I'm just wanting to know how I can turn a program I've written, in one of the two languages mentioned above, into a single file or group of files that I could just double click on, to execute the program, without having to open the program, compile, build and run it manually. Any assistance would be greatly appreciated.

Thanks,

cold25
 
cold25,

try creating a sample vc++ application and u will get exe file....

vc++ will create .exe file for you.... but i don't think java can create exe files instead creates .class file....



sridharan
 
Once you've created your VC++ application and you build it, there should be an executable stored in the subdirectory Debug. Then, as you should, when you're done creating your application you should switch to Release mode, and subsequently the created application will be in the Release subfolder of your project directory.

For your java applications, simply associate the .class file type with your java vm. Then double clicking will indirectly launch your vm and run the program. It's the closest thing you can get to an "executable" with java. MYenigmaSELF:-9
myenigmaself@myenigmaself.gaiden.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top