|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Question about Java
I know this isn't a java forum, but maybe someone can answer this question. I have made a simple java program and I have made a class file for it already. I want to know can I make an executable out of the program? If yes, how do I do that?
Thanks, Jonathan Donaghe |
|
#2
|
|||
|
|||
|
__________________
Baptism By The Scriptures | Fifty Objections to Baptism Answered | HTML Bible | God's Salvation Plan Lifetime Residual Income |
|
#3
|
||||
|
||||
|
I can relate to that problem all right
since I have started diging into java myself. Okie, some time ago I did a search and here is first link that poped up. Haven't tested yet, but sounds good.
__________________
And you know I mean that. |
|
#4
|
|||
|
|||
|
Hi,
Go in for JIT(Just in Time Compiler). It will convert the bytecode or the .java code(dunno which) directly into a platform dependent executable. You should find the requisite material at java.sun.com. DA ![]() |
|
#5
|
||||
|
||||
|
.java is the source .class is the bytecode, and correct me if I'm wrong but aren't jits only for freebsd and linux/solaris?
|
|
#6
|
|||
|
|||
|
the GCC (GNU Compiler Collection) includes a java compiler, although I have never used it, so i can't comment on how good it is. Check it out here:
http://gcc.gnu.org/java/ and the regular GCC page is: http://gcc.gnu.org/ GCC is a Linux/Unix thing, although I think you can get it for windows now (not sure). Good Luck
__________________
X___________ the PhatBarren |
|
#7
|
||||
|
||||
|
i spent a whole day trying to figure this question out. there are a few utilities by 3rd party vendors that will allow you do make it an .exe file, but i would be a little hesitant to do this. it sounds like you might be marketing (selling) your program and you want it to be able to run without the Java interpreter. most commercial software packages that are written in java also install some sort of interpreter as well as most of the java classes as part of installing the program. as far as JIT goes, from what i have read it looks like it just sets your path for java interpreter...so you would type 'HelloWorld' instead of 'java HelloWorld'. i would just write the program in C++ if you want an executable...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Question about Java |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|