[BUILDTOOLS-4] Trying to create 1.8 Jars Created: 28/Nov/14  Updated: 29/Nov/14  Resolved: 29/Nov/14

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Charles Cullen Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: buildtools, java_home, maven


 Description   

Whenever I try to create the new 1.8 jar's I keep getting this message towards the end:
^superscript^Exception in thread "main" java.lang.RuntimeException: Error running command, re
turn status !=0: C:\Users\xxxx\Desktop\empty\apache-maven-3.2.3/bin/mvn.bat in
stall:install-file -Dfile=work\mapped.8eb82bde.jar -Dpackaging=jar -DgroupId=org
.spigotmc -DartifactId=minecraft-server -Dversion=1.8-SNAPSHOT
at org.spigotmc.builder.Builder.runProcess(Builder.java:298)
at org.spigotmc.builder.Builder.main(Builder.java:172)

And after this error it will just stop trying. Please help!!



 Comments   
Comment by GunfighterJ [ 29/Nov/14 ]

No, that's not the issue. No one has had that issue, everyone with this issue has had it because of an incorrect JAVA_HOME. There's no fix to be done, this is user error (onset by an incorrectly formatted news post, which was fixed).

Comment by Keyle Claw [ 29/Nov/14 ]

-The problem isn't JAVA_HOME. It happens because "C:\Users\xxxx\Desktop\empty\apache-maven-3.2.3/bin/mvn.bat" has both, slashes and backslashes. When you run the command manually with just slahes the command works as intended. It would be nice if this gets fixed soon.-

Comment by GunfighterJ [ 29/Nov/14 ]

There were changes made on the news post about the command you need to run. You need to use backslashes instead of forward slashes in the path for windows.

32 bit Windows: JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_25" java -jar BuildTools.jar
64 bit Windows: JAVA_HOME="C:\Program Files\Java\jdk1.8.0_25" java -jar BuildTools.jar

Comment by Charles Cullen [ 29/Nov/14 ]

That didn't work thommy101 and GunfighterJ I don't understand what you mean by "You need to run the command as a single line" and the example you gave me is already set..

Comment by GunfighterJ [ 28/Nov/14 ]

You need to run the command as a single line, not as two separate lines.
Additionally, you can run the following command to make it permanent:
setx JAVA_HOME "C:\Program Files\java\jdk1.x.0_yz"
Make sure you change x, y, and z, according to what you have installed.

Comment by Charles Cullen [ 28/Nov/14 ]

I've tried to set the JAVA_HOME. Going to see what happens now and report back later. Thanks.

Comment by thommy101 [ 28/Nov/14 ]

I had the same issue. It's due maven can't find the system variable "JAVA_HOME". You need to set it in your computer settings or in front of your command like (Change the java JDK path to the correct file path):
32 bit Windows: JAVA_HOME="C:/Program Files (x86)/Java/jdk1.8.0_25/" java -jar BuildTools.jar
64 bit Windows: JAVA_HOME="C:/Program Files/Java/jdk1.8.0_25/" java -jar BuildTools.jar

Comment by Charles Cullen [ 28/Nov/14 ]

Didn't mean to put in superscript
Please ignore that. Thanks!~

Generated at Tue Apr 15 11:53:11 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.