Announcement

Collapse
No announcement yet.

[SOLVED] Java Help

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Java Help

    Hey guys,
    I have Kubuntu 10.10 and I'm just trying to install java to run a java game (and failing pretty hard) Ive used ubuntu before and the software center does alot of the software for you? but with the k package one i cant seem to do it, just wondering if anyone can help me? Ive followed the instructions on the java website and other posts where people have had trouble but nothing is working? my flat mate who is quite experienced is having the same trouble which is a shame its the first thing we have come across that we haven't been able to fix ourselves.

    thanks for any feed back!

    #2
    Re: Java Help

    try searching for jre - I think default-jre will pull in all the needed openjdk bits for K(U)buntu Maverick

    Comment


      #3
      Re: Java Help

      Check #9 on the FAQs in my signature.

      Comment


        #4
        Re: Java Help

        thanks guys will try now

        Comment


          #5
          Re: Java Help

          Im stuck with trying

          sudo add-apt-repository ppa:sun-java-community-team/sun-java6

          sudo apt-get update

          sudo apt-get install sun-java6

          but i get E: Unable to locate package sun-java6 when i type the last comand?

          Comment


            #6
            Re: Java Help

            And the last sentence of #9 says what?

            Comment


              #7
              Re: Java Help

              Haha pays too read a bit further dosent it.... hahah thanks!
              next problem is now the game crashes? where as my flatmates one dosent and is fine?
              The game says :
              Generated 8/11/10 3:19 PM

              Minecraft: Minecraft Alpha v1.2.1_01
              OS: Linux (i386) version 2.6.35-22-generic
              Java: 1.6.0_20, Sun Microsystems Inc.
              VM: OpenJDK Server VM (mixed mode), Sun Microsystems Inc.
              LWJGL: 2.4.2
              [failed to get system properties (java.lang.NullPointerException)]

              java.lang.IllegalStateException: Only one LWJGL context may be instantiated at any one time.
              at org.lwjgl.opengl.Display.create(Display.java:846)
              at org.lwjgl.opengl.Display.create(Display.java:784)
              at org.lwjgl.opengl.Display.create(Display.java:765)
              at net.minecraft.client.Minecraft.a(SourceFile:198)
              at net.minecraft.client.Minecraft.run(SourceFile:560)
              at java.lang.Thread.run(Thread.java:636)
              --- END ERROR REPORT c2f1b146 ----------
              and terminal says a whole lot of stuff if you need to know what it says i can post it later?
              but do you have any idea why this would be?

              Comment


                #8
                Re: Java Help

                using the openjdk works for me, at least I get the game to open to the login area I am not interested in buying the game

                If you have more than 1 java implementation installed, you can switch to different ones with this command:
                Code:
                sudo update-alternatives --config java
                From the above error log you posted, it looks like you are using the openjdk, you may want to try changing that to the sun-java version and try again



                Comment


                  #9
                  Re: Java Help

                  Just tried and its the same problem?
                  the login screen will load but its just after that where it dies.
                  Its just confusing as it worked on the other computer and i cant see why it will not on mine? haha

                  Any ideas?

                  Thanks

                  Comment


                    #10
                    Re: Java Help

                    When i run

                    Download/Minecraft$ java -jar Minecraft.jar it opens the login screen but when i login terminal reads:
                    Username is 'Waltson'
                    28
                    Setting user: Waltson, -3816878068950436410
                    failed to create drawable
                    org.lwjgl.LWJGLException: X Error - disp: 0x927fd20 serial: 96 error: BadGC (invalid GC parameter) request_code: 60 minor_code: 0
                    at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(L inuxDisplay.java:268)
                    at org.lwjgl.opengl.LinuxKeyboard.nSetDetectableKeyRe peat(Native Method)
                    at org.lwjgl.opengl.LinuxKeyboard.setDetectableKeyRep eat(LinuxKeyboard.java:152)
                    at org.lwjgl.opengl.LinuxKeyboard.destroy(LinuxKeyboa rd.java:163)
                    at org.lwjgl.opengl.LinuxDisplay.destroyKeyboard(Linu xDisplay.java:1015)
                    at org.lwjgl.input.Keyboard.destroy(Keyboard.java:349 )
                    at org.lwjgl.opengl.Display.destroyWindow(Display.jav a:350)
                    at org.lwjgl.opengl.Display.create(Display.java:867)
                    at org.lwjgl.opengl.Display.create(Display.java:784)
                    at org.lwjgl.opengl.Display.create(Display.java:765)
                    at net.minecraft.client.Minecraft.a(SourceFile:166)
                    at net.minecraft.client.Minecraft.run(SourceFile:560)
                    at java.lang.Thread.run(Thread.java:636)
                    java.lang.IllegalStateException: Only one LWJGL context may be instantiated at any one time.
                    at org.lwjgl.opengl.Display.create(Display.java:846)
                    at org.lwjgl.opengl.Display.create(Display.java:784)
                    at org.lwjgl.opengl.Display.create(Display.java:765)
                    at net.minecraft.client.Minecraft.a(SourceFile:198)
                    at net.minecraft.client.Minecraft.run(SourceFile:560)
                    at java.lang.Thread.run(Thread.java:636)

                    And the the game says the above post.
                    Any help would be greatly apreciated

                    Thanks Guys

                    Comment


                      #11
                      Re: Java Help

                      Problem solved

                      It was a driver problem with my graphics card, up graded that and it sorted it right out.

                      Thanks for the help.

                      Ps. is there a way to set this topic as solved?

                      Comment


                        #12
                        Re: Java Help

                        Originally posted by Waltson
                        Ps. is there a way to set this topic as solved?
                        Return to your first post in this thread and click the modify button and then add SOLVED to the subject.
                        Windows no longer obstructs my view.
                        Using Kubuntu Linux since March 23, 2007.
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment

                        Working...
                        X