java - Making a mac app from a jar file -
i'm trying make mac app (specifically gui) in java. however, i'm not having success. here's i've tried far:
double-clicking executable jar file produced eclipse. result: exception thrown because display create app must created on main thread.
created own app file runs shell script opens jar -xstartonfirstthread command. result: able run on laptop, gave error (-10810) when tried running on mac.
used eclipse's mac app bundler. result: error code -10810 on own laptop, saying app not launched.
based on i've seen online, best way fix set java_home , path variables. i'm not sure go in these variables, i'd set them to, or i'd set them. second option include jre within app. however, i'm not sure best way , have few questions:
why can't use system jre?
how include jre in app package? include dmg oracle?
what app bundlers out there me? tried use eclipse app bundler, didn't work. tried using oracle's tutorial found here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingappsformac.html, tutorial points app bundler not available anymore.
what best way resolve issue? appreciated.
thanks!
you have set java_home , path variables using given links:
https://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/
http://www.sajeconsultants.com/how-to-set-java_home-on-mac-os-x/
in many cases, jre exists because installed when system configured or when program installed. if system installing server or client components not have environment, follow instructions download jre , verify jre environment on mac. again try eclipse app bundler (download latest version available , substitute file name accordingly).
Comments
Post a Comment