Crash java.lang.NullPointerException: Initializing game

RedHeadEmile

Codeur Java qui code en Java
6 Novembre 2015
121
1
130
Bonjour, j'ai fait un launcher personnaliser pour Minecraft et en le lançant, il crash. Vous pouvez m'aide ? Log :
Code:
---- Minecraft Crash Report ----
// Oops.

Time: 10/02/16 17:44
Description: Initializing game

java.lang.NullPointerException: Initializing game
    at net.minecraft.client.Minecraft.func_152340_a(Minecraft.java:638)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:421)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at net.minecraft.client.Minecraft.func_152340_a(Minecraft.java:638)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:421)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.7.0_79, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 440124904 bytes (419 MB) / 648544256 bytes (618 MB) up to 7622623232 bytes (7269 MB)
    JVM Flags: 0 total;
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML:
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    GL Caps:
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: ~~ERROR~~ NullPointerException: null
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
 
XD j'avais vu mais je m'attendais à plus de précisions en faites. J'ai mal formulé. Je ne m'y connais pas du tout mais on voit qu'il y a une erreur avec open gl vers la fin. Ton launcher est totalement fini?
 
Sorry je vois pas ce que ça peut être. Attends quelqu'un de plus compétent que moi. Désolé...
En passant il me semble que tu as Java 7 alors qu'il est en 8 mais je me trompe peut être.
 
Dans le launcher, je fais sa au démarrage, cela cause un problème ? :
Code:
    public static void launch() throws IOException {
        GameLauncher gameLauncher = new GameLauncher(RC_INFOS, GameFolder.BASIC, authInfos);
        Process p = gameLauncher.launch();
        try {
            Thread.sleep(5000L);
        } catch (InterruptedException e) {
        }
        LauncherFrame.getInstance().setVisible(false);
        try {
            p.waitFor();
        } catch (InterruptedException e) {
        }
        System.exit(0);
    }