Results 1 to 5 of 5

Thread: eclipse problem

  1. #1
    Join Date
    Mar 2008
    Beans
    170

    eclipse problem

    I'm having problems running a program in eclipse. The program opens up a involves opening up a JFrame with a picture in the background. When I run the program in eclipse the JFrame opens, but it is blank and then goes gray and crashes. It's not the program itself because I can run it perfectly from the terminal, so it seems to be eclipse.

    Has anyone else had this problem, or know how to resolve it?

  2. #2
    Join Date
    Mar 2008
    Beans
    170

    Re: eclipse problem

    Bump, bump, ba da bump.

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Beans
    2,185
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: eclipse problem

    Which version of Java are you using? I recall that with some versions of Java (for example, Sun Java 5) there were problems with Swing and Compiz, which could lead to symptoms like you describe.

    Install the latest Sun Java 6:
    Code:
    sudo apt-get install sun-java6-jdk
    and make sure that that's the Java version that's used:
    Code:
    sudo update-alternatives --config java
    Also check your Eclipse project settings so that it's using Sun Java 6 to run your program.
    Ubuntu 12.04

  4. #4
    Join Date
    Nov 2008
    Location
    Canada
    Beans
    129

    Re: eclipse problem

    ya I had some issues with my jre as well; jespdj gots you on the right path . I usually went for Sun's version, and not the openJDK. I was using Eclipse (3.4) (Ganymede) with Compiz and found it worked best.

  5. #5
    Join Date
    Mar 2008
    Beans
    170

    Re: eclipse problem

    Cool, thanks for the help. That seemed to do the trick.

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
  •