IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Java Discussion :

Impossible de lancer un .jar sous macOS Mojave


Sujet :

Java

  1. #1
    Nouveau candidat au Club
    Homme Profil pro
    Enseignant
    Inscrit en
    Juillet 2016
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Enseignant
    Secteur : Enseignement

    Informations forums :
    Inscription : Juillet 2016
    Messages : 1
    Par défaut Impossible de lancer un .jar sous macOS Mojave
    Bonjour à mes éventuels sauveurs

    Enseignant dans le primaire, j'ai besoin d'un exécutable xlogo.jar qui fonctionnait parfaitement avec une ancienne version d'os Sierra ; depuis que je suis passé sou Mojave, il n'y a rien a faire, il refuse de se lancer
    Je dois préciser que j'ai toujours un macbook sous sierra pour lequel ça fonctionne et que je rechigne à le passer sous Mojave à cause de ça !
    Je ne suis pas un spécialiste et je ne comprends pas pourquoi ça marche dans un cas et pas dans l'autre.
    j'ai tenté la manœuvre ci-dessus et voilà ce que j'obtiens dans le terminal :
    Si quelqu'un pouvait m'éclairer, j'en serai ravi !!

    Code Console : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    Hector:~ Francois$ java -jar /Applications/XLOGO/xlogo.jar 
    Creating tmp_xlogo directory - success: true
    Copying tmp_xlogo.jar - success: true
    Copying jh.jar - success: true
    Copying vecmath.jar - success: true
    Copying j3dcore.jar - success: true
    Copying j3dutils.jar - success: true
    Copying jl1.0.1.jar - success: true
    Operating system: mac os x
    Architecture: x86_64
    Path: /var/folders/9g/2rh9dcls5tgfyd2ytcv8yq0w0000gp/T/tmp_xlogo0:/Users/Francois/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
     
    <----- Starting XLogo ---->
    /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/bin/java -jar -Xmx64m -Djava.library.path=/var/folders/9g/2rh9dcls5tgfyd2ytcv8yq0w0000gp/T/tmp_xlogo0:/Users/Francois/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. /var/folders/9g/2rh9dcls5tgfyd2ytcv8yq0w0000gp/T/tmp_xlogo0/tmp_xlogo.jar 
     
     
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesChooser
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:264)
    	at javax.media.j3d.Pipeline$1.run(Pipeline.java:162)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:157)
    	at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:965)
    	at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:299)
    	at xlogo.Logo.main(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLCapabilitiesChooser
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 8 more
    Closing XLogo. Cleaning tmp file
    Hector:~ Francois$

    La même opération sur le mac pour lequel l'applet java fonction correctement sous Sierra donne :
    Code Console : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    Last login: Sun Nov 17 17:51:41 on console
    MacBook-Pro-de-Francois:~ francoislecarpentier$ java -jar /Applications/XLOGO/xlogo.jar 
    Creating tmp_xlogo directory - success: true
    Copying tmp_xlogo.jar - success: true
    Copying jh.jar - success: true
    Copying vecmath.jar - success: true
    Copying j3dcore.jar - success: true
    Copying j3dutils.jar - success: true
    Copying jl1.0.1.jar - success: true
    Operating system: mac os x
    Architecture: x86_64
    Path: /var/folders/r1/xq92_jc91wlb2gkl31hn3gx00000gn/T/tmp_xlogo0:/Users/francoislecarpentier/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
     
    <----- Starting XLogo ---->
    /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/bin/java -jar -Xmx64m -Djava.library.path=/var/folders/r1/xq92_jc91wlb2gkl31hn3gx00000gn/T/tmp_xlogo0:/Users/francoislecarpentier/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. /var/folders/r1/xq92_jc91wlb2gkl31hn3gx00000gn/T/tmp_xlogo0/tmp_xlogo.jar 
     
     
    JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
    AWT not found
    Java3d :1.3.1
    ------- Debug characters --------
    58
    58
    10
    34
    43
    58
    42
    50
    48
    10
    34
    43
    58
    42
    50
    48
    10
    58
    58
    58
    58
    10
    10
    58
    10
    48
    58
    10
    10
    58
    10
    48
    58
    10
    10
    58
    10
    58
    48
    10
    10
    58
    10
    58
    48
    10
    10
    58
    10
    58
    58
    10
    10
    58
    10
    58
    58
    10
    10
    58
    10
    58
    58
    10
    10
    58
    10
    58
    58
    10
    10
    58
    58
    10
    58
    58
    10
    10
    58
    58
    10
    58
    58
    10
    10
    58
    58
    10
    58
    58
    10
    10
    58
    58
    10
    58
    58
    10
    10

  2. #2
    Rédacteur/Modérateur

    Avatar de bouye
    Homme Profil pro
    Information Technologies Specialist (Scientific Computing)
    Inscrit en
    Août 2005
    Messages
    6 904
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : Nouvelle-Calédonie

    Informations professionnelles :
    Activité : Information Technologies Specialist (Scientific Computing)
    Secteur : Agroalimentaire - Agriculture

    Informations forums :
    Inscription : Août 2005
    Messages : 6 904
    Billets dans le blog
    54
    Par défaut
    Merci d’éviter de ressusciter des vieux topics.

    Ca fonctionne encore OpenGL sur macOS Mojave ?
    Ah oui mais en mode non-supporte.

    Citation Envoyé par https://en.wikipedia.org/wiki/MacOS_Mojave
    macOS Mojave deprecates support for a number of legacy features of the OS. The graphics frameworks OpenGL and OpenCL are still supported by the operating system, but will no longer be maintained; developers are encouraged to use Apple's Metal library instead.
    Il faudrait peut-être voir pour obtenir une version mise a jour des lib 3D ou carrément de l'application (pour qu'elle empaquette toutes ses libs et évite de devoir etre lancee en ligne de commande).

    Et sinon c'est la même version de Java sur les deux plateformes ?
    Merci de penser au tag quand une réponse a été apportée à votre question. Aucune réponse ne sera donnée à des messages privés portant sur des questions d'ordre technique. Les forums sont là pour que vous y postiez publiquement vos problèmes.

    suivez mon blog sur Développez.

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning. ~ Rich Cook

Discussions similaires

  1. Lancer un .jar sous linux
    Par marouene_ dans le forum Linux
    Réponses: 15
    Dernier message: 29/04/2011, 13h08
  2. impossible de lancer une application sous VISTA
    Par kiminfor dans le forum Débuter
    Réponses: 6
    Dernier message: 05/01/2009, 00h22
  3. Lancer l'exécution d'un script Tcl sous MacOS X
    Par sekaijin dans le forum Tcl/Tk
    Réponses: 2
    Dernier message: 02/07/2007, 17h24
  4. Réponses: 4
    Dernier message: 21/03/2007, 14h56
  5. impossible de lancer mon jar sous kubuntu
    Par altadeos dans le forum NetBeans
    Réponses: 2
    Dernier message: 14/11/2006, 13h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo