osx - Java application is not able to find JDK 1.7 on Mac (Installer created with install4j) -


i have created java application installer using install4j mac os x. application uses jdk 1.7.

i have set jdk version in install4j well.

i have installed jdk 1.7 on mac , when type java -version command on console gives me jdk 1.7.

application installed out of luck, when try start application gives me error:

exception in thread “main” java.lang.unsupportedclassversionerror: (unsupporte d major.minor version 51.0)

the above error occurs because uses apple's inbuilt jdk 1.6. want app use jdk 1.7 installed on machine.

edit

now have created installer selecting openjdk in jre option. not giving me unsupportedclassversionerror application icon blinks on dockbar , goes.

below cosole log.

5/23/13 11:16:47.777 com.apple.launchd.peruser.502[154]: ([0x0-0x92092].com.install4j.9409-6211-0940-9008.25[800]) exited code: 1 5/23/13 11:17:09.166 com.apple.launchd.peruser.502[154]: ([0x0-0x93093].com.install4j.9409-6211-0940-9008.25[802]) exited code: 1 5/23/13 11:17:12.400 com.apple.launchd.peruser.502[154]: ([0x0-0x94094].com.install4j.9409-6211-0940-9008.25[804]) exited code: 1

please me.

in media file wizard mac os x installer, go "jre" step , select "installed openjdk jre (java 7 , higher)".


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -