Jump to content

[Solved] Java path error - Unable to install Forge source


Recommended Posts

Posted

I run into problems when trying to install the Forge source as per the wiki guide. The script seems to be unable to locate my java installation. I have entered the correct paths to the PATH variable. I am using Windows XP. I have tried using both the latest and latest stable versions of Forge.

 

This is the console output when running the batch from a freshly extracted archive:

 

  Reveal hidden contents

 

 

Notice how it aborts with the error javac: Files\Java\jdk1.6.0_41\bin\javac is an invalid flag. My Java SDK is installed in C:\Program Files\Java\jdk1.6.0_41\. This suggests that the installer does not account for the space in the path.

 

As I already stated, I have included the paths in the PATH environment variable. I tried adding quotation marks to the path, but the installer seems to run the same regardless of what values PATH has. Running echo %PATH% in a command prompt produces the correct paths, so that should not be the problem.

Posted

Solved.

 

Go to forge\fml\fml.py and look at line 263:

        cmd_compile = '"%s" -Xlint:-options -deprecation -g -source 1.6 -target 1.6 -classpath "{classpath}" -sourcepath "{sourcepath}" -d "{outpath}" "{target}"' % self.cmdjavac

 

Remove the quotation marks from "%s" and you're done.

 

The weird thing about this is that it implies the installer does account for paths with spaces, but for some reason that didn't stop it from breaking for me. So normally this shouldn't even be a problem.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.