Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 25th, 2005, 11:21 AM   #1
glevine
Newbie
 
Join Date: Jun 2005
Posts: 22
Rep Power: 0 glevine is on a distinguished road
executable jar

I wrote an application under Windows XP. The person who needs to use the app runs Mac OS X. I packaged the app in an executable jar and it runs just fine on my pc. Having never used Macs much in my lifetime, and never actually developed for one, I am confused as to why the app won't run on the mac. I am figuring it is because he doesn't have the jdk installed, but don't know if that is the correct reason. If someone knows why this may be happening please respond. Also, I know that there are a few different types of jars, so maybe someone could point out a jar type that can run an app and doesn't require that the jdk be installed? Thanks.
glevine is offline   Reply With Quote
Old Jul 25th, 2005, 11:29 AM   #2
Broax
Hobbyist Programmer
 
Broax's Avatar
 
Join Date: Jan 2005
Location: Porto, Portugal
Posts: 142
Rep Power: 4 Broax is on a distinguished road
Send a message via MSN to Broax
As far as I know (and what I know doesn't go very far) it's not a problem of the sdk but of the runtime enviorment. sdk is only for software development while the runtime enviorment is the java engine that will allow for java software to be ran.

Anyways, tell your friend to try to download the runtime enviorment from www.java.com

I hope this helps!

cheers!
__________________
PORTUGALPORTUGA
PORTUGALPORTUGA
PORTUGALPORTUGA
PORTUGALPORTUGA
PORTUGALPORTUGA
Broax is offline   Reply With Quote
Old Jul 25th, 2005, 11:30 AM   #3
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
You need to have the Java runtime environment installed to execute any java code.
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2
skuinders is offline   Reply With Quote
Old Jul 25th, 2005, 11:35 AM   #4
glevine
Newbie
 
Join Date: Jun 2005
Posts: 22
Rep Power: 0 glevine is on a distinguished road
JRE 1.4.2 is installed. I checked that first. Then I came across a page by Borland stating the differences between the jar types. It says for an Executable Jar:

"Note: The JDK is not bundled with the JAR file. An appropriate JDK must be installed on the user's computer an on the users path for the executable to run."

http://info.borland.com/techpubs/jbu...ployment1.html

That's what got the idea that I need a different type of executable jar (like application jar).
glevine is offline   Reply With Quote
Old Jul 25th, 2005, 11:52 AM   #5
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
http://java.sun.com/docs/books/tutorial/jar/
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2
skuinders is offline   Reply With Quote
Old Jul 30th, 2005, 4:15 PM   #6
JeffHeaton
Newbie
 
Join Date: Jul 2005
Posts: 2
Rep Power: 0 JeffHeaton is on a distinguished road
That is controlled by the operating system. The OS shell needs to execute Java for filetypes of JAR. Even if the JAR is setup to execute.

Jeff
http://www.heatonresearch.com/
JeffHeaton is offline   Reply With Quote
Old Aug 9th, 2005, 8:55 PM   #7
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
What version of the SDK did you use to compile the program? If you used 1.5, then your friend will need to update to the 1.5 Runtime Enviornment to run it (even if you didn't use any of the 1.5 features).
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?
EdSalamander is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC