New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Eclipse-Java Help (Switcher)


Post Reply New Thread Subscribe

 
Thread Tools
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
So... I switched to mac, and previously (on PC) I was programming C++. Now that I'm done with C++ for a while, I wanted to use eclipse for Java on OS X.

Now my question is: how do I get to the equivalent of the .exe I had for C++ on PC? Any Ideas?

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Java to remain platform independent does not compile to a .exe file, instead the compiled class files (xxx.class) are able to run on any platform that has a Java VM.

There are programs out there that will convert .class files in to .exe but then they become system specific.

Under OSX there is an application bundler utility that will package up a suite of .class files as a .app file which can be run like a native app.
QUOTE Thanks
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
thanks a lot for your help!
I see, it is a little different. I need to use terminal to run it...

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Not necessarily - package the .class files up in a Jar file, then you can use the application bundler with osx to turn it in to a .app file
QUOTE Thanks

Post Reply New Thread Subscribe


« ok im getting bored with firefox and i had a few questions | Creating a Cache »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
weird java problem rerks OS X - Apps and Games 0 01-28-2007 06:59 AM
java question rerks OS X - Operating System 0 01-23-2007 04:05 AM
eclipse (java animation issues) mumia55 OS X - Development and Darwin 1 01-02-2007 02:23 PM
Java From Terminal jdgti OS X - Development and Darwin 10 03-26-2005 08:16 PM
Apple Releases Java 1.4.1 Graphite Apple Rumors and Reports 5 03-10-2003 08:52 PM

All times are GMT -4. The time now is 12:22 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?