[WIP]Launcher-MineLauncherCreator1.00(Windows)

Statut
N'est pas ouverte pour d'autres réponses.

jambonlatex

Architecte en herbe
11 Octobre 2013
133
22
125
32
Voilà:
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

Edit:

Error: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Ha et bien voilà le soucis ! ^^ Pour pouvoir compiler le launcher en java, il faut que ton ordinateur sache où est java...
Si tu n'as pas Java en version jdk dans C:\Program Files\Java\, il faut l'installer : LIEN (prendre version windows x64)
Une fois bien installé, dans l'invite des commandes tapes ceci :
Code:
setx JAVA_HOME "C:\Program Files\Java\jdk1.7.0_60"
Je vais rajouter cela dans mon premier post pour que ça n'arrive pas aux autres ;)
 

Frayda_78

Aventurier
8 Juillet 2014
22
0
1
24
Mais j'ai déjà jdk
java.PNG
 

Frayda_78

Aventurier
8 Juillet 2014
22
0
1
24
Voilà c'est fait, j'ai refais l'opération avec MLC, j'ai upload les deux fichiers sur le ftp et quand je lance bootstrap ça essaie de télécharger sur localhost/customcraft ...
 

jambonlatex

Architecte en herbe
11 Octobre 2013
133
22
125
32
Voilà c'est fait, j'ai refais l'opération avec MLC, j'ai upload les deux fichiers sur le ftp et quand je lance bootstrap ça essaie de télécharger sur localhost/customcraft ...

Procédons par étapes, si ta variable d'environnement est bien installé, lorsque tu tapes ceci :
Code:
echo %JAVA_HOME%
Cela devrait sortir :
Code:
C:\Program Files\Java\jdk1.7.0_60

Si ce n'est pas le cas, la variable ne s'est pas installée.
Si ça fonctionne alors on reteste la compilation :

Code:
%APPDATA%\MineLauncherCreator\sources\apache-maven-3.2.2\bin\mvn.bat -f %APPDATA%\MineLauncherCreator\sources\minecraft-bootstrap\pom.xml package

Si le code renvoie une erreur, il y a encore un problème avec Java (et vu que customcraft est encore là, c'est surement ça)
Si l'erreur est présente tapes ceci :
Code:
echo %PATH%
Tu vas avoir plein d'adresse de dossier les unes après les autres, si dans le tas tu ne vois pas "%JAVA_HOME\jre\bin", alors tu peux taper ceci :
Code:
SET PATH=%PATH%;%JAVA_HOME%\jre\bin

Par contre je ne sais pas si un redémarrage du pc est nécessaire pour prendre en compte ces variables, à essayer ;)
 

Frayda_78

Aventurier
8 Juillet 2014
22
0
1
24
Code:
echo %JAVA_HOME%
Me donne:
Code:
C:\Program Files\Java\jdk1.7.0_60

Code:
%APPDATA%\MineLauncherCreator\sources\apache-maven-3.2.2\bin\mvn.bat -f %APPDATA%\MineLauncherCreator\sources\minecraft-bootstrap\pom.xml package
Me donne "Build Success"

Je fais quoi maintenant?
 

jambonlatex

Architecte en herbe
11 Octobre 2013
133
22
125
32
Code:
echo %JAVA_HOME%
Me donne:
Code:
C:\Program Files\Java\jdk1.7.0_60

Code:
%APPDATA%\MineLauncherCreator\sources\apache-maven-3.2.2\bin\mvn.bat -f %APPDATA%\MineLauncherCreator\sources\minecraft-bootstrap\pom.xml package
Me donne "Build Success"

Je fais quoi maintenant?

Alors là c'est étonnant ! tu as bien tout supprimé de l'ancienne installation "customcraft" ?
on va faire une vérif des fichiers compilés, télécharges ceci : jdgui.exe

Lances jdgui et glisse dedans ton launcher.jar
va dans le package "net.minecraft.launcher" et ouvre la classe LauncherConstants.
Dans la variable URL_DOWNLOAD_BASE tu dois avoir pour valeur l'url de ton serveur + /launcher/, c'est le cas ?
 

jambonlatex

Architecte en herbe
11 Octobre 2013
133
22
125
32
Oui j'ai bien mon URL...

Alors... il n'y a logiquement pas de problème ^^ Enfin je vois pas trop comment il peut passer par autre chose que ce qu'il y a dans le launcher... :confused:

Je te conseille de supprimer les 2 fichiers de ton serveur, de clean aussi les dossiers créés :
Dans ta barre d'adresse Windows, tapes %appdata%
Supprimes le dossier MineLauncherCreator.
Supprimes le dossier .customcraft

Maintenant relances MLC.exe et remplis tout ce que tu as besoin.
Copies les 2 jar dans ton serveur dans le répertoire /launcher/.

lance bootstrap.jar
 

Frayda_78

Aventurier
8 Juillet 2014
22
0
1
24
Ah oui , et tu pourrais faire une archive avec ce qu'il faut mettre sur le ftp s'il te plait??
J'ai tout refait au propre remplis les champs comme il faut et pourtant:
Code:
Bootstrap (v5)
Current time is Jul 14, 2014 7:01:56 PM
System.getProperty('os.name') == 'Windows 7'
System.getProperty('os.version') == '6.1'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.7.0_60'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'
 
Downloading: http://localhost/customcraft/launcher/launcher.jar
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 2/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 3/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 4/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 5/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 6/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 7/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 8/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 9/10)
Exception: java.net.ConnectException: Connection refused: connect
Downloading: http://localhost/customcraft/launcher/launcher.jar (try 10/10)
Exception: java.net.ConnectException: Connection refused: connect
Unable to download remote file. Check your internet connection/proxy settings.
FATAL ERROR: net.minecraft.bootstrap.FatalBootstrapError: Unable to download while being forced
 
Statut
N'est pas ouverte pour d'autres réponses.