Jump to content

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


HinaK

Recommended Posts

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:

 

================ Forge ModLoader Setup Start ===================

Downloaded mcp7.26a.zip

Extracting MCP to 'C:\temp\forge\mcp'

Setting up MCP

Backing up commands.py

patching file commands.py

Commands patch applied successfully

Copying FML conf

Creating re-packaged srg

Creating re-packaged exc

Creating re-packaged MCP patches

Fixing MCP Workspace

Downloaded argo-2.25.jar

Downloaded guava-12.0.1.jar

Downloaded guava-12.0.1-sources.jar

Downloaded asm-all-4.0.jar

Downloaded asm-all-4.0-source.jar

Downloaded bcprov-jdk15on-147.jar

Downloaded lwjgl.jar

Downloaded lwjgl_util.jar

Downloaded jinput.jar

Downloaded windows_natives.jar

    Extracting jinput-dx8.dll

    Extracting jinput-dx8_64.dll

    Extracting jinput-raw.dll

    Extracting jinput-raw_64.dll

    Extracting lwjgl.dll

    Extracting lwjgl64.dll

    Extracting OpenAL32.dll

    Extracting OpenAL64.dll

Downloaded macosx_natives.jar

    Extracting libjinput-osx.jnilib

    Extracting liblwjgl.jnilib

    Extracting libopenal.dylib

    Extracting openal.dylib

Downloaded linux_natives.jar

    Extracting libjinput-linux.so

    Extracting libjinput-linux64.so

    Extracting liblwjgl.so

    Extracting liblwjgl64.so

    Extracting libopenal.so

    Extracting libopenal64.so

Downloaded minecraft.jar

Downloaded minecraft_server.jar

== MCP 7.26 (data: 7.26a, client: 1.4.7, server: 1.4.7) ==

# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csv, ast

yle, astyle config

> Creating Retroguard config files

== Decompiling client using fernflower ==

> Creating SRGs

> Applying Retroguard

> Compiling AccessTransformer

javac: Files\Java\jdk1.6.0_41\bin\javac is an invalid flag

Usage: javac <options> <source files>

Decompile Exception: 1

Press any key to continue...

 

 

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Done, it still crashed. New log https://paste.ee/p/kYv6e
    • I am migrating a mod from 1.16.5 to 1.20.2 The version for 1.16.5 can be found here https://github.com/beothorn/automataCraft For the block called automata_start, it uses TileEntities and has blockstates, model/block and textures on json files. This is currently working fine on 1.16.5 https://github.com/beothorn/automataCraft/tree/master/src/main/resources/assets/automata For 1.20.2 I migrated the logic from TileEntities to BlockEntity. The mod is working fine. All blocks and Items are working with the correct textures except for the textures for each state of the automata_start block. No changes where made to the json files. This is the branch I am working on (there were some refactorings, but all is basically the same): https://github.com/beothorn/automataCraft/tree/1_20/src/main/resources/assets/automata The only difference I can think that may be related is that i had to implement createBlockStateDefinition on the BaseEntityBlock: https://github.com/beothorn/automataCraft/blob/1_20/src/main/java/br/com/isageek/automata/automata/AutomataStartBlock.java#L43 This is driving me crazy. I know the jsons are being loaded as I put a breakpoint at `net.minecraft.client.resources.model.ModelBakery#loadModel` and I can see BlockModelDefinition.fromJsonElement being called with automata_start. I also printed the state from the arguments of the tick function call and they look correct (https://github.com/beothorn/automataCraft/blob/1_20/src/main/java/br/com/isageek/automata/automata/Ticker.java#L32 ): blockState Block{automata:automata_start}[state=loadreplaceables] In game, all I see is the no textures. I think it is weird it is not the "missing texture" texture so I think it may be related to the material, but I had no success tweaking it (https://github.com/beothorn/automataCraft/blob/1_20/src/main/java/br/com/isageek/automata/automata/AutomataStartBlock.java#L37).   public static final Property<AutomataStartState> state = EnumProperty.create("state", AutomataStartState.class); private final AtomicReference<RegistryObject<BlockEntityType<?>>> blockEntityType; private final Map<String, RegistryObject<Block>> registeredBlocks; public AutomataStartBlock( final AtomicReference<RegistryObject<BlockEntityType<?>>> blockEntityType, final Map<String, RegistryObject<Block>> registeredBlocks ) { super(BlockBehaviour.Properties.of().mapColor(MapColor.STONE).strength(1.5F, 6.0F)); this.blockEntityType = blockEntityType; this.registeredBlocks = registeredBlocks; this.registerDefaultState(this.getStateDefinition().any().setValue(state, AutomataStartState.LOAD_REPLACEABLES)); } @Override protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> stateBuilder) { stateBuilder.add(state); }     So my cry for help is, anyone has any ideas? Is there a way to easily debug this, for example somewhere where I can list the textures for a given state, or make sure this is loaded?   Thanks in advance for the hints
    • FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'forge-1.8.9-11.15.1.2318-1.8.9-mdk'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT. Required by: :forge-1.8.9-11.15.1.2318-1.8.9-mdk:unspecified > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT. > Unable to load Maven meta-data from https://jcenter.bintray.com/net/minecraftforge/gradle/ForgeGradle/2.1-SNAPSHOT/maven-metadata.xml. > Could not GET 'https://jcenter.bintray.com/net/minecraftforge/gradle/ForgeGradle/2.1-SNAPSHOT/maven-metadata.xml'. > peer not authenticated > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT. > Unable to load Maven meta-data from http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.1-SNAPSHOT/maven-metadata.xml. > Could not GET 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.1-SNAPSHOT/maven-metadata.xml'. > peer not authenticated * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 2.78 secs This is the error I got. Any help would be appreciated!
    • Greetings, ladies and gentlemen. I know firsthand how distressing it can be to lose Bitcoin (BTC) to a phony online trading site. Thank God, when I became a victim of internet scammers, I came across genuine reviews of Captain WebGenesis. The Experts reviews on google were generally positive and reliable. Captain WebGenesis, a licensed cryptocurrency expert, helps persons who have fallen prey to investment scams recover their stolen funds. Captain WebGenesis miraculously recovered my wallet and all of my Bitcoins in roughly 48 hours. Captain WebGenesis is tried, trusted, and accessible to all victims of Bitcoin fraud. The service charge was pricey, but it was well worth it. If you need his help, get in touch with the Expert. SMS / Call; +1 (701)314-2729 Email; (captainwebgenesis(@)hackermail.com) Homepage; captainwebgenesis.com Salutations, Captain WebGenesis.
    • The mod causing the problem was (supplementaries-1.20-2.8.10). The solution I found is deleting it.
  • Topics

×
×
  • Create New...

Important Information

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