Page 1 of 1
Java problem
Posted: Sun Mar 20, 2011 7:20 pm
by Sharingan616
Okay so I'm trying to compile the eh.class file after I decompiled it from minecraft.jar but I'm getting one single error that I have no idea how to fix. -.-
Screen shot 2011-03-20 at 8.18.32 PM.png (43.57 KiB) Viewed 2899 times
The method getResourceAsStream should be defined but I have no clue why the compiler thinks it isn't. >.<
Can anyone help? :L
Re: Java problem
Posted: Mon Mar 21, 2011 11:05 am
by gl1tch
I don't know much about java, but it looks like you're using an absolute path in your string.
You probably need to omit the leading slash, or supply the full absolute path to the splashes.txt
Re: Java problem
Posted: Mon Mar 21, 2011 1:53 pm
by dragoncrystal24
gl1tch wrote:I don't know much about java, but it looks like you're using an absolute path in your string.
You probably need to omit the leading slash, or supply the full absolute path to the splashes.txt
What an awesome coincidence that Glitch would know the answer to a technical problem, lol
Re: Java problem
Posted: Mon Mar 21, 2011 2:32 pm
by Sharingan616
gl1tch wrote:I don't know much about java, but it looks like you're using an absolute path in your string.
You probably need to omit the leading slash, or supply the full absolute path to the splashes.txt
I tried that, and you're still around?? O_O
Re: Java problem
Posted: Mon Mar 21, 2011 3:43 pm
by acidcj
Are you sure the method is defined for a string?
Re: Java problem
Posted: Mon Mar 21, 2011 4:08 pm
by Sharingan616
acidcj wrote:Are you sure the method is defined for a string?
Yeah, it uses the string to call information from a file. The method seems fine it's just the compiler doesn't recognize it.
http://download.oracle.com/javaee/1.3/a ... ntext.html