Results 1 to 3 of 3

Thread: How to add "export GDK_NATIVE_WINDOWS=true" into eclipse

  1. #1
    Join Date
    Jun 2010
    Location
    Dallas, TX
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    How to add "export GDK_NATIVE_WINDOWS=true" into eclipse

    I'm new to Ubuntu and coding in general, so sorry for this probably basic coding question. I am trying to play Minecraft on my computer and the keyboard buttons won't work. So I google, and found this thread http://ubuntuforums.org/showthread.php?t=1316071. Except, I don't know how to "add" this line of code? to a folder and have no clue what is going on. By any chance, could someone explain? Thanks for the help.

  2. #2
    Join Date
    Oct 2004
    Location
    Denmark - Scandinavia
    Beans
    17,619
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to add "export GDK_NATIVE_WINDOWS=true" into eclipse

    Make a new launcher (eventually on your Desktop or in the Applications menu).

    Fill in the info (icons, name etc.). In the command box, write;
    Code:
    sh -c "cd <path to minecraft> && export GDK_NATIVE_WINDOWS=1 <minecraft launch file>"
    an example:
    sh -c "cd ~/Documents/testgame && export GDK_NATIVE_WINDOWS=1 ./testgame.sh"


    But I guess you need to use java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame where it says <minecraft launch file>.
    Last edited by Artificial Intelligence; February 25th, 2011 at 05:56 AM.
    elementary OS Luna
    My Screenshot

  3. #3
    Join Date
    Jun 2010
    Location
    Dallas, TX
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to add "export GDK_NATIVE_WINDOWS=true" into eclipse

    Thanks
    Last edited by 1dbzfanjake; February 25th, 2011 at 10:51 PM. Reason: Thansk for the help, and the code runs, but the export GDK... does not fix the problem of not having the keyboard work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •