English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-16 03:01:23 · 3 answers · asked by sean_mchugh6 3 in Computers & Internet Programming & Design

cs if you dont know what youre talking about then just be quiet please.

2006-11-16 03:07:23 · update #1

elderec, thanks... ill look into that but all i want is to be able to run the thing outside the ide. ...so i can give the program to other people who arent programmers.

2006-11-16 03:19:28 · update #2

3 answers

"How do I make an .EXE file from my Java application?", "Need help converting jar to exe", "Is it possible to create a Windows executable using Java?" --- these and similar questions are among the most popular topics on Java developer forums. Should you start such a topic today, you are likely to encounter the following three types of replies:
o "You cannot"
o "You should not, because that would kill the very purpose of Java"
o "You can do that with third party software X and Y"

The truth is that there exist two completely different approaches to the creation of native executables from Java applications, addressing different sets of problems. Moreover, under certain conditions some of those problems may be solved without making an EXE. So the most correct way to reply to such a post would be a request for more information, namely what is the goal of conversion to EXE. And the most frequent answer would be ..... Read More @ the link below.

I also answered your other Question here: http://answers.yahoo.com/question/index;_ylt=ArCBwaFHWn_CCQLs9rQK7Ovsy6IX?qid=20061116075646AA4N4Oy

2006-11-16 03:11:50 · answer #1 · answered by Farnsworth 3 · 0 0

1. You shouls assemble it according to the machine that you are going to run on. By assembling it will produce machine code [after compilation and assembly]. This machine code should be stored on the machine where you want to run it.
2. Get the starting memory address of the program and store it in your Program counter.
3. This will start the program without any problem.

E.g Here is a pseudo program that uses some mathematics code to compute if a number is equal to 10 or not.
10 int i
20 input i from user
30 If i>10 return false
40 if i<10 return false
50 if i==10 return true

The above code will work can be written in 100 different programming langauges with completely different source codes but eventually on an x86 machine the machine code for line 30 40 and 50 will become something like this
30 subtract 10 from i and store it in a memory address 03
40 Replace contents of memory 03 by doing AND with 0
50 Return the contents of memeoy 03

What I mean to say is that its the machine language which do not need an IDE while all other platforms are based on translation and bunch of code snippets. Example is A visual basic program for above and a Java program for above will be totally different but when compiled and translated into machine language they will become same.

You need to convert all the source code and whatever code it referes to during call backs to different functions in source files into machine language compatible with the machine you intend to run the program on.

Hope this helps you.

2006-11-16 03:22:10 · answer #2 · answered by Nomee 2 · 0 0

use a compiler.

2006-11-16 03:05:10 · answer #3 · answered by cstevensbaumann@sbcglobal.net 4 · 0 1

fedest.com, questions and answers