C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 14th, 2002, 03:53 PM
meeh82 meeh82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Riverside, CA
Posts: 63 meeh82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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

Reply With Quote
  #2  
Old February 14th, 2002, 06:06 PM
Eclipce Eclipce is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2000
Posts: 763 Eclipce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 29 m 25 sec
Reputation Power: 0
You should probably post this in the Java Servlets & JSP

Eclipce

Reply With Quote
  #3  
Old February 14th, 2002, 07:12 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 13
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
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.

Reply With Quote
  #4  
Old February 21st, 2002, 02:49 AM
darkangel darkangel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: USA
Posts: 12 darkangel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb

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

Reply With Quote
  #5  
Old February 21st, 2002, 03:18 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 13
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
.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?

Reply With Quote
  #6  
Old February 21st, 2002, 10:02 PM
PhatBarren PhatBarren is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Canada
Posts: 33 PhatBarren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to PhatBarren
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

Reply With Quote
  #7  
Old March 15th, 2002, 02:45 PM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: Austin, TX or the master control
Posts: 231 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 49 sec
Reputation Power: 8
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...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Question about Java


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway