gametechmods

Off-Topic => Off-Topic Discussion => Topic started by: Gazea2 on June 18, 2011, 09:24:22 AM

Title: Minecraft and Java
Post by: Gazea2 on June 18, 2011, 09:24:22 AM
Right, so I got Minecraft and was really happy... Then it crashed 3 times and I got 3 separate documents on my desktop with error messages in. Here is what each of them said:

So, yeah, I tried un-installing and re-installing Java and it still crashed so has anyone got any fixes to this? I've looked around and haven't found any solutions.
Title: Re: Minecraft and Java
Post by: nightcracker on June 18, 2011, 10:41:51 AM
Did you buy Minecraft and downloaded it from the official Minecraft website?
Title: Re: Minecraft and Java
Post by: Gazea2 on June 18, 2011, 10:46:41 AM
Yup. I've fixed it now, though. If anyone else encounters this problem, do this:

1) Go into the control panel > performance and maintenance > system. Go to performance and then virtual memory. Make it custom and make the minimum and maximum 2038. Restart your computer.

2) Make a notepad file and paste this into it:

java -Xmx768M -Xms256M -jar minecraft.exe

Name it "Minecraft.bat" and put it where your minecraft.exe file is (e.g - desktop). From now on, run that instead of the .exe.
Title: Re: Minecraft and Java
Post by: nightcracker on June 18, 2011, 11:01:33 AM
I disagree. This might work for your specific system, but not in general. Let me improve that:

1) Put your control panel in "Classic Mode/View" (open control panel, most likely a button the left side).

(http://www.thereforesystems.com/wp-content/uploads/2009/05/image.png)

2) Find out how much physical ram your computer has. This can be found under Control Panel > System:

(http://www.askdavetaylor.com/0-blog-pics/windows-xp-control-panels-system-general.png)

3) Then, still under Control Panel > System go to Performance and then Virtual Memory. Make it "custom" and set the minimum and maximum to twice your physical ram.

4) Restart the computer

5) Create a file named "Minecraft.bat" (if you are using notepad make sure to select all extensions while saving) with these contents on your desktop:

Code: [Select]
java -Xmx1024M -Xms512M -jar minecraft.exe
Please note that in "-Xmx1024M -Xms512M" you can tune the 1024M and 512M according to how much memory you have.
Title: Re: Minecraft and Java
Post by: Gazea2 on June 18, 2011, 11:44:29 AM
Cheers for correcting me. When did you join? I haven't seen you around.

Anyway, that fix should make it work from now on.
Title: Re: Minecraft and Java
Post by: nightcracker on June 18, 2011, 11:48:54 AM
Well, two weeks ago? See my first post: https://gametechmods.com/forums/index.php/topic,6845.0.html (https://gametechmods.com/forums/index.php/topic,6845.0.html)
And my introduction post: https://gametechmods.com/forums/index.php/topic,6963.0.html (https://gametechmods.com/forums/index.php/topic,6963.0.html)

Oh and apparently people want me as Tech Adviser :)
Title: Re: Minecraft and Java
Post by: Serge on June 18, 2011, 04:02:14 PM
Oh and apparently people want me as Tech Adviser :)
You sure do merit that title.
Title: Re: Minecraft and Java
Post by: nightcracker on June 18, 2011, 05:05:29 PM
Oh and apparently people want me as Tech Adviser :)
You sure do merit that title.

Then gogo :)

Oh and I have a PM to send you ;)
Title: Re: Minecraft and Java
Post by: Naryar on June 18, 2011, 05:31:39 PM
Dwarf Fortress >> Minecraft

Not to mention that minecraft is a mere DF ripoff.
Title: Re: Minecraft and Java
Post by: Sparkey98 on June 18, 2011, 05:42:23 PM
Dwarf Fortress >> Minecraft

Not to mention that minecraft is a mere DF ripoff.

Do your history, it was inspired by Infiniminer.
Title: Re: Minecraft and Java
Post by: Badger on August 25, 2011, 08:19:08 AM
Wait, so I have 3GB of RAM, what do I put in the text file?
Title: Re: Minecraft and Java
Post by: nightcracker on August 25, 2011, 08:58:43 AM
You have 3 gigs, so let's use 2 gigs of that for minecraft so that the rest of your system still has 1 gig to use.

This should work for you:

Code: [Select]
java -Xmx1024M -Xms1024M -jar minecraft.exe
Title: Re: Minecraft and Java
Post by: Badger on August 25, 2011, 09:09:37 AM
Nevermind, I found it, and it works great! Thanks SO much!
Title: Re: Minecraft and Java
Post by: nightcracker on August 25, 2011, 10:04:42 AM
Did you do exactly as I said?

1) Put your control panel in "Classic Mode/View" (open control panel, most likely a button the left side).
2) Find out how much physical ram your computer has. This can be found under Control Panel > System.
Title: Re: Minecraft and Java
Post by: Badger on August 25, 2011, 10:49:21 AM
I already know how much RAM I have, 3GB. I've checked before. I couldn't find Virtual Memory, It's labeled differently on Vista.
Title: Re: Minecraft and Java
Post by: Badger on August 25, 2011, 01:37:31 PM
DP;

Can I do a similar thing with TF2? It's so slow it's unplayable.
Title: Re: Minecraft and Java
Post by: nightcracker on August 25, 2011, 01:58:45 PM
You can actually.

Read this: http://www.nextlevelgamer.com/team-fortress-2/team-fortress-2-launch-options (http://www.nextlevelgamer.com/team-fortress-2/team-fortress-2-launch-options)
Title: Re: Minecraft and Java
Post by: Badger on September 09, 2011, 01:57:27 PM
Right, this isn't really about the java, but I don't think we need another thread.

So, I'm making a Minecraft server for me and a few friends, and they can't connect.

Properties.txt;

Code: [Select]

#Minecraft server properties
#Tue Sep 06 22:01:47 BST 2011
level-name=CarOverlordsPrivateSMP world
allow-nether=true
view-distance=10
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=4
server-ip=192.168.0.2
pvp=true
level-seed=
server-port=25565
allow-flight=enabled
white-list=false

I've port forwarded with SimplePortForwarding, and it doesn't give any errors. 25565 is open on both TCP/UCP (Sorry for incorrect use of terminology), except when I'm running the server .exe, when apparently TCP is closed because it is being used (Presumably by minecraft)

No errors come up on the server.exe window, and I can join the server but it seems that no-one else can. I am using a Sagem router with Sky firmware, if it matters. Also, I don't think I have a static IP.

Thanks in advance for your help and patience with a retard. ;)
Title: Re: Minecraft and Java
Post by: Gazea2 on September 10, 2011, 05:03:40 AM
I had this when I was making a server. Make the server ip blank in the server properties and then give them your ip from this website:

http://www.whatismyip.com/ (http://www.whatismyip.com/)

...or a from a similar website. Also, make sure you log onto your server by using the address localhost. That should fix the problem. :D
Title: Re: Minecraft and Java
Post by: Badger on September 10, 2011, 05:57:53 AM
I had this when I was making a server. Make the server ip blank in the server properties and then give them your ip from this website:

http://www.whatismyip.com/ (http://www.whatismyip.com/)

...or a from a similar website. Also, make sure you log onto your server by using the address localhost. That should fix the problem. :D
Thanks for the help, let's hope it works.
Title: Re: Minecraft and Java
Post by: Gazea2 on September 17, 2011, 10:25:53 AM
Right so now I need help. I've port fowarded etc and no-one can connect except for me. Whenever I check my IP address, it says I'm from Hartlepool. >)> I have a feeling that that's the problem. I'm using a dynamic IP as I do not have a static one.
Title: Re: Minecraft and Java
Post by: Badger on September 17, 2011, 11:12:19 AM
Have you forwarded 25565? And apparently my IP is in Scotland, so I don't think you need to worry about that.

Check that you're giving them the correct IP as well.

Any more details? What error comes up when your friends attempt to connect?
Title: Re: Minecraft and Java
Post by: Serge on September 24, 2011, 12:38:16 PM
Right, this isn't really about the java, but I don't think we need another thread.

So, I'm making a Minecraft server for me and a few friends, and they can't connect.

Properties.txt;

Code: [Select]

#Minecraft server properties
#Tue Sep 06 22:01:47 BST 2011
level-name=CarOverlordsPrivateSMP world
allow-nether=true
view-distance=10
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=4
server-ip=192.168.0.2
pvp=true
level-seed=
server-port=25565
allow-flight=enabled
white-list=false

I've port forwarded with SimplePortForwarding, and it doesn't give any errors. 25565 is open on both TCP/UCP (Sorry for incorrect use of terminology), except when I'm running the server .exe, when apparently TCP is closed because it is being used (Presumably by minecraft)

No errors come up on the server.exe window, and I can join the server but it seems that no-one else can. I am using a Sagem router with Sky firmware, if it matters. Also, I don't think I have a static IP.

Thanks in advance for your help and patience with a retard. ;)
canyouseeme.org

What does it say for port 25565 when running the server?
Title: Re: Minecraft and Java
Post by: Badger on September 24, 2011, 01:10:55 PM
No route to host.

I got it working a few weeks ago, but it broke again.
Title: Re: Minecraft and Java
Post by: Serge on September 24, 2011, 01:45:56 PM
No route to host.

I got it working a few weeks ago, but it broke again.

Your ISP sucks and might now allow incoming connections (and/or doesn't care enough about it to make sure they work). Can you give me your IP address (PM me if for some reason you're scared of posting it here)? Maybe we could figure something out.
Title: Re: Minecraft and Java
Post by: Badger on September 24, 2011, 01:49:03 PM
2.219.15.143

My ISP is Sky.
Title: Re: Minecraft and Java
Post by: Serge on September 24, 2011, 01:55:09 PM
Yeah, this is something with your ISP not allowing you to host services. Sorry :(.
Title: Re: Minecraft and Java
Post by: Badger on September 24, 2011, 01:57:18 PM
Hmmm, funny, the server worked with the same settings a few weeks ago, I had my friend on the server as well. I'll try to port forward again, to see if that's screwing me over.