Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Creating an executable file
New Posts  All Forums:Forum Nav:

Creating an executable file

post #1 of 7
Thread Starter 
How do you create an executable file/standalone program? Can this be done solely in Java, or do I need additional languages? I don't want to use an applet/servlet. It just needs to be a simple program that accepts user input, such as qty, trade date, etc. for stocks. Then I want to be able to export that data to a text file.
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
post #2 of 7
A Java program is not standalone. You still need the JRE. I would think just about any other compiled language would do, like C, Go, or Haskell as examples.
post #3 of 7
The easiest way to do this on Windows would be to download Visual Studio Express from here: http://www.microsoft.com/visualstudio/eng/downloads

Then you could write your program in C#. It's syntax is very similar to Java, but it compiles to native Windows binaries. The completed executable file will be in C:\Users\[Your Name]\Documents\Visual Studio 2013\Projects\[project name]\bin\debug (or bin\release, depending on your configuration).

Please feel free to PM me with any questions. I am a full-time programmer working for Microsoft and I work primarily with C# and Visual Studio.

EDIT: Noticed I had screwed up the path. Fixed now.
Edited by SoaDMTGguy - 11/3/13 at 5:51pm
post #4 of 7
Quote:
Originally Posted by SoaDMTGguy View Post

The easiest way to do this on Windows would be to download Visual Studio Express from here: http://www.microsoft.com/visualstudio/eng/downloads

Then you could write your program in C#. It's syntax is very similar to Java, but it compiles to native Windows binaries. The completed executable file will be in C:\Users\\Documents\Visual Studio 2013\Projects\\bin\debug (or bin\release, depending on your configuration).


Please feel free to PM me with any questions. I am a full-time programmer working for Microsoft and I work primarily with C# and Visual Studio.

This.

Good luck!
post #5 of 7
Thread Starter 
So just to be clear I can create a file using C called "foo.exe" and move it to my desktop and click on it and it will run?

Do I need to create the entire program in C, or can I tie in Java somehow?

Would this be something pretty easy to do? Thanks.
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
post #6 of 7
Thread Starter 
Quote:
Originally Posted by SoaDMTGguy View Post

The easiest way to do this on Windows would be to download Visual Studio Express from here: http://www.microsoft.com/visualstudio/eng/downloads

Then you could write your program in C#. It's syntax is very similar to Java, but it compiles to native Windows binaries. The completed executable file will be in C:\Users\[Your Name]\Documents\Visual Studio 2013\Projects\[project name]\bin\debug (or bin\release, depending on your configuration).

Please feel free to PM me with any questions. I am a full-time programmer working for Microsoft and I work primarily with C# and Visual Studio.

EDIT: Noticed I had screwed up the path. Fixed now.

Thanks. I'll check it out.
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
post #7 of 7
Quote:
Originally Posted by semnon View Post

So just to be clear I can create a file using C called "foo.exe" and move it to my desktop and click on it and it will run?

Yup!
Quote:
Originally Posted by semnon View Post

Do I need to create the entire program in C, or can I tie in Java somehow?

Your program needs to be written entirely in the same language. I suggested C# because it's syntax is very similar to Java, so you should feel right at home.
Quote:
Originally Posted by semnon View Post

Would this be something pretty easy to do? Thanks.

Yes, the type of program you describe would be quite easy to make.

Here is the documentation for reading text from the console in C#: http://msdn.microsoft.com/en-us/library/system.console.readline(v=vs.110).aspx

Here is the documentation for writing text to a file in C#: http://msdn.microsoft.com/en-us/library/vstudio/8bh11f1k.aspx

Let me know if you have any questions!
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Creating an executable file