You are not logged in.

#1 2012-01-24 13:52:08

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

[Solved]Minecraft java error

I've installed from AUR and everything seemingly went well, but when trying to execute, I only get this response:

Exception in thread "main" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:197)
	at java.awt.Window.<init>(Window.java:534)
	at java.awt.Frame.<init>(Frame.java:420)
	at net.minecraft.LauncherFrame.<init>(LauncherFrame.java:27)
	at net.minecraft.LauncherFrame.main(LauncherFrame.java:158)

jre7-openjdk installed.

I've tried to search the forums and such, but while there are plenty of issues to go around, none seem to satisfy my needs.

I'll continue my search, bu tif you'd care to assist, that would be great.


Best regards.

Last edited by zacariaz (2012-01-24 19:45:19)


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#2 2012-01-24 17:53:28

bubblewrapping
Member
Registered: 2012-01-14
Posts: 14

Re: [Solved]Minecraft java error

It could be an issue with your graphics driver i.e. proprietory vs open-source driver?

I remember when i used open-source drivers it didnt work...but this was around a year ago.

Offline

#3 2012-01-24 17:57:32

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

This is on my netbook, which used standard intel graphics and the driver should be all in order, so sadly that don't seem to be the problem.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#4 2012-01-24 18:07:53

bubblewrapping
Member
Registered: 2012-01-14
Posts: 14

Re: [Solved]Minecraft java error

That could be the problem, if im not mistaken, Intel integrated graphics card can be hit and miss. I remember there being some tweaks/workaround for Windows but not sure on Linux.

Offline

#5 2012-01-24 18:09:24

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

That is indeed bad news...


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#6 2012-01-24 18:11:10

bubblewrapping
Member
Registered: 2012-01-14
Posts: 14

Re: [Solved]Minecraft java error

zacariaz wrote:

That is indeed bad news...

Yes it is, but i may be wrong, i guess you could take a look on threads relating to "intel graphics minecraft" .

Or upgrade if possible

Offline

#7 2012-01-24 18:13:41

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

I'm as upgraded as can be, but I will guide my future searches to focus on Intel as suggested.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#8 2012-01-24 19:28:20

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: [Solved]Minecraft java error

1. Are you really sure you don't use jre7-openjdk-headless instead of jre7-openjdk?
2. Are you sure that minecraft is trying to use the correct java installation and that $JAVA_HOME points to the correct java directory? (the minecraft launcher script in /usr/bin/minecraft seems to rely on that variable).
If you have verified with

which java

that the first java binary in the path is the java you want to use, you can try

java -jar /usr/share/minecraft/minecraft.jar

from the launcher script without the library path whether it starts directly.
3. As a last resort, you can try the oracle distribution of java from the aur simply called "jre".


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#9 2012-01-24 19:35:33

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

Cdh wrote:

1. Are you really sure you don't use jre7-openjdk-headless instead of jre7-openjdk?

]
I'm Pretty sure that I am using headless as that was is apparently a dependency. I that a problem? I know very little about java other than how to hate it.

Cdh wrote:

2. Are you sure that minecraft is trying to use the correct java installation and that $JAVA_HOME points to the correct java directory? (the minecraft launcher script in /usr/bin/minecraft seems to rely on that variable).
If you have verified with

which java

that the first java binary in the path is the java you want to use, you can try

java -jar /usr/share/minecraft/minecraft.jar

from the launcher script without the library path whether it starts directly.
3. As a last resort, you can try the oracle distribution of java from the aur simply called "jre".

I actually think the rest is as should be.

Now I can try and replace headless with regular, but I'm not quite sure how, as it complains that minecraft depend on it and I am also somewhat confused as to why this particular jre was chosen if it don't work.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#10 2012-01-24 19:45:01

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

Ok, so I simply installed the regular jre7 which seemed to solve the problem.

Thanks for the help.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

#11 2012-01-24 21:13:48

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: [Solved]Minecraft java error

zacariaz wrote:
Cdh wrote:

1. Are you really sure you don't use jre7-openjdk-headless instead of jre7-openjdk?

]
I'm Pretty sure that I am using headless as that was is apparently a dependency. I that a problem? I know very little about java other than how to hate it.

Well, "Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java runtime - needed for executing non GUI Java programs".

I don't know much about that package but I would guess that it is a java that is simply stripped of all gui components intended for use with server applications where no gui is needed.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#12 2012-01-24 21:16:21

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: [Solved]Minecraft java error

Ya, kinda missed that at first, but still, it was install as a dependency when I installed minecraft from AUR, so I assumed everything was in order. Show what I know.


I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.

Offline

Board footer

Powered by FluxBB