Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7642607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:13:57+00:00 2026-05-31T09:13:57+00:00

I have some problem with my java application, I did build it with Eclipse

  • 0

I have some problem with my java application, I did build it with Eclipse under Win7 (64bit): it does not work on Snow Leopard 10.6.8. The error is: "The JAR file .... could not be launched".

I have checked if Java was installed on Mac and yes, there is JRE with the 64 bit option first to execute.

My Application does not make use of any particular library:

import java.net.*;
import java.io.IOException;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

.. so I really can’t understand why it doesn’t work on Mac, any suggestion? Many thanks for your help

UPDATE:
Yes, it works on Windows, I use Java 6 and unfortunately I don’t have OS X, I’ve sent my application to a friend who has OS X, so I can’t open the Terminal (and my friend never opened it probably…). Thanks for your suggestions anyway.

UPDATE2:This is the output message

13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]     Exception
in thread "main"
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]     java.lang.UnsupportedClassVersionError:
Main : Unsupported major.minor version 51.0
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.lang.ClassLoader.defineClass1(Native Method)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.lang.ClassLoader.defineClass(ClassLoader.java:615)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.net.URLClassLoader.access$000(URLClassLoader.java:58)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.net.URLClassLoader$1.run(URLClassLoader.java:197)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.security.AccessController.doPrivileged(Native Method)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:13:58+00:00Added an answer on May 31, 2026 at 9:13 am

    First of all I made sure I had the same JRE, and apparently mine was the JRE7, so in Eclipse I changed it. Also I did modify the Run/Debugging Configurations: in Environment -> Add new variable DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib
    Which should help the execution on OsX. Finally I exported everything again to JAR and it worked on Mac as well.

    Thanks for your collaboration.

    I hope this answer could help somebody else…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an OSX App-Bundle for a Java Application that does not use the
I have some problem's with a simple application in JSF 2.0. I try to
I'm designing a Java application using SWT. I have some tables which will display
I have some problem with my app. My activity is not a native activity
I have a small Java application which uses some configuration settings, which are saved
I have a Java program that loads thirdparty class files (classes I did not
We have an issue related to a Java application running under a (rather old)
I have a java application that stores some GPS data in a strange format:
I have a Java GUI-based application that writes some diagnostic messages to System.out and
I am just starting Java RMI and have some problems with when to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.