Author Topic: Minecraft and Java  (Read 6971 times)

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Minecraft and Java
« 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.


Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #1 on: June 18, 2011, 10:41:51 AM »
Did you buy Minecraft and downloaded it from the official Minecraft website?

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: Minecraft and Java
« Reply #2 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.


Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #3 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).



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



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.

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: Minecraft and Java
« Reply #4 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.


Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #5 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
And my introduction post: https://gametechmods.com/forums/index.php/topic,6963.0.html

Oh and apparently people want me as Tech Adviser :)

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Minecraft and Java
« Reply #6 on: June 18, 2011, 04:02:14 PM »
Oh and apparently people want me as Tech Adviser :)
You sure do merit that title.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #7 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 ;)

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Minecraft and Java
« Reply #8 on: June 18, 2011, 05:31:39 PM »
Dwarf Fortress >> Minecraft

Not to mention that minecraft is a mere DF ripoff.

Offline Sparkey98

  • Giga Heavyweight
  • Posts: 5738
  • Rep: -20
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #9 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.

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #10 on: August 25, 2011, 08:19:08 AM »
Wait, so I have 3GB of RAM, what do I put in the text file?
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #11 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

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #12 on: August 25, 2011, 09:09:37 AM »
Nevermind, I found it, and it works great! Thanks SO much!
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #13 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.

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #14 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.
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #15 on: August 25, 2011, 01:37:31 PM »
DP;

Can I do a similar thing with TF2? It's so slow it's unplayable.
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Minecraft and Java
« Reply #16 on: August 25, 2011, 01:58:45 PM »

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #17 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. ;)
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: Minecraft and Java
« Reply #18 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/

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


Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6313
  • Rep: 2
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Minecraft and Java
« Reply #19 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/

...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.
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots