Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

recently I learned java and now I would like to create my own mod for minecraft.

So I followed this tutorial on setting up MCP and forge: http://www.youtube.com/watch?v=klYTEMiATZw

I followed all the instructions but then I stumbled upon a problem trying to install forge, upon running install.sh this was the terminal output:

================ Forge ModLoader Setup Start ===================
MCP Detected already, not downloading
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-3.2-src.jar
Downloaded guava-14.0-rc3.jar
Downloaded asm-4.1.tar.gz
Downloaded asm-debug-all-4.1.jar
Downloaded bcprov-debug-jdk15on-148.jar
Downloaded bcprov-jdk15on-148-src.zip
Downloaded guava-14.0-rc3-sources.jar
Downloaded scala-library.jar
File Exists: lwjgl.jar
File Exists: lwjgl_util.jar
File Exists: 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
File Exists: minecraft.jar
File Exists: minecraft_server.jar
== MCP 7.51 (data: 7.51, client: 1.5.2, server: 1.5.2) ==
"scalac" is not found on the PATH.  Scala files will not be recompiled
FATAL ERROR
Traceback (most recent call last):
File "/home/michel/Documenten/LoaderExtenders/runtime/decompile.py", line 50,     in     decompile
    commands = Commands(conffile, verify=True, no_patch=no_patch)
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 202,     in __init__
    self.readcommands(verify, no_patch=no_patch)
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 281, in readcommands
    output = self.runcmd('%s --version' % self.astyle).rstrip().split(' ')
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 1187, in runcmd
    process = subprocess.Popen(forklist, stdout=subprocess.PIPE,     stderr=subprocess.STDOUT, bufsize=-1)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Decompile Exception: 1 

After running the scalac command ubuntu told me scala wasen't installed, so I ran: sudo apt-get install scala

Running install.sh again gave me the following error:

== MCP 7.51 (data: 7.51, client: 1.5.2, server: 1.5.2) ==
"scalac" does not support jvm-1.6 target, it is out of date. Ignoring
FATAL ERROR
Traceback (most recent call last):
  File "/home/michel/Documenten/LoaderExtenders/runtime/decompile.py", line 50,     in decompile
    commands = Commands(conffile, verify=True, no_patch=no_patch)
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 202,     in __init__
    self.readcommands(verify, no_patch=no_patch)
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 281,     in readcommands
    output = self.runcmd('%s --version' % self.astyle).rstrip().split(' ')
  File "/home/michel/Documenten/LoaderExtenders/runtime/commands.py", line 1187,     in runcmd
    process = subprocess.Popen(forklist, stdout=subprocess.PIPE,     stderr=subprocess.STDOUT, bufsize=-1)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Decompile Exception: 1 

So now it's telling me scalac is outdated, does anyone know how I can fix this? I would really like to start doing some modding for minecraft :)

Thanks in advance

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.