![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 22
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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 |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jun 2005
Posts: 22
Rep Power: 0
![]() |
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). |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
__________________
"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 |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jul 2005
Posts: 2
Rep Power: 0
![]() |
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/ |
|
|
|
|
|
#7 |
|
Programmer
|
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? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|