Jump to content

[SOLVED] Why Can't I Compile and Run?


JaredBGreat
 Share

Recommended Posts

In tutorial videos people just download all the files, run the install.sh / install.bat, jump into Eclipse, and run the game right from there.  Yet, I get one set of errors after another, and I haven't even added any code of my own yet.  Why is this happening.  This is what I get:

 

snapshot1.png

A 51 second screen video is here:

 

All the code seems to be there, and there are no errors highlighted now.  What's going wrong?  Am I supposed to be able to test run this way?

Developer of Doomlike Dungeons.

Link to comment
Share on other sites

Thanks.  It says...

 

2013-07-23 18:07:43 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.23.738 for Minecraft 1.5.2 loading
2013-07-23 18:07:43 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_21, running on Linux:amd64:3.8.0-26-generic, installed at /usr/lib/jvm/java-7-oracle/jre
2013-07-23 18:07:43 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-07-23 18:07:44 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Method.java:601)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:123)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:38)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.main(Minecraft.java:2237)
2013-07-23 18:07:44 [iNFO] [sTDERR] Caused by: java.lang.UnsatisfiedLinkError: /home/jared/Documents/src/eclipse/forge/mcp/jars/bin/natives/liblwjgl.so: /home/jared/Documents/src/eclipse/forge/mcp/jars/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.Runtime.loadLibrary0(Runtime.java:845)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.lang.System.loadLibrary(System.java:1084)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at org.lwjgl.Sys$1.run(Sys.java:72)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at java.security.AccessController.doPrivileged(Native Method)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at org.lwjgl.Sys.<clinit>(Sys.java:98)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2576)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2247)
2013-07-23 18:07:44 [iNFO] [sTDERR] 	... 7 more

 

...but I'm not sure what it means.  I'm just trying to get set up and start learning.

Developer of Doomlike Dungeons.

Link to comment
Share on other sites

There seems to be an issue with the set up. Try deleting everything (include the files that were in the zip) unzip all the files again and run the install script again.

 

I guess the installer was not able to download one libary. This happens every once in a while. (A reinstall is the simplest way to fix it)

Link to comment
Share on other sites

I forgot I had started a tutorial, so I deleted it.  I got rid of the red X, but still get the same error, and there is an exclamation point that leads me to a class TaskWorldCreation.java in package net.minecraft.client.gui.  I still seem to get the same error message; the results haven't changed.

 

Other (!) are found, on in ThreadDownloadResources.java in net.minecraft.util; in RegionFile.java in net.minecraft.world.chunk.storage; also -- I know I didn't modify any of those.  All the tutorial stuff was in its own package.  Also, I was having trouble before I started the tutorial, but at first thought maybe some of the native libraries or something didn't like the deobfuscated version and that maybe it wasn't supposed to run.

Developer of Doomlike Dungeons.

Link to comment
Share on other sites

There seems to be an issue with the set up. Try deleting everything (include the files that were in the zip) unzip all the files again and run the install script again.

 

I guess the installer was not able to download one libary. This happens every once in a while. (A reinstall is the simplest way to fix it)

 

OK, thanks, I've deleted and re-installed, but still no luck.

 

A couple things:

 

(1) I'm not sure what to pick to run (I've been using net.minecraft.client, and also tried start from the default package, both with similar results); I can start the net.minecraft.server, though and everything works fine.  Maybe I'm not starting from the right class?

 

(2) When downloading I see this message:

 

== 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

 

...not sure if that might be what's missing.

 

Tried installing scala (sudo apt-get install scala), now I trying to install I get:

 

== 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

 

...and the same basic error as before when trying to test run.

 

Tried installing scala manually from download from scala-lang.org, no change.  I suspect this is the problem (not positive), but have no clue what to do about it.

 

EDIT: Tried switching to the new Minecraft 1.6.2 build, and things are even worse it seems.  I get the same scala error during installation.  When trying to compile / test run with that I get:

 

Exception in thread "main" joptsimple.MissingRequiredOptionException: Missing required option(s) ['version']
at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447)
at joptsimple.OptionParser.parse(OptionParser.java:437)
at net.minecraft.client.main.Main.main(Main.java:43)

 

I'm pretty sure its that scala not wanting to work with java less than 1.7 while the install seems to insist on 1.6.  Anyone know how to fix that (on linux), please?

Developer of Doomlike Dungeons.

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
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.

 Share



×
×
  • Create New...

Important Information

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