Menu

Eclipse getting started

GGVW
2009-02-10
2013-04-25
  • GGVW

    GGVW - 2009-02-10

    Argh.. spent the last hour getting the simple helloworld example to run in eclipse. The instructions were not very helpful, but I finally did it. 

    I wanted to make an 'Eclipse 3.4 quickstart' wikipage to help others with the same problems I experienced, but the wiki is locked... :(

     
    • Anonymous

      Anonymous - 2009-02-10

      Hello GGVW,

      sorry for the inconvenience but we don't want to open the wiki for non-project-members. It's great that you're interested in sharing your experiences. Please post the text here in the forum or send it via email. After the review we are going to add this to the wiki.

      Thanks in advance,
      Kai

       
    • GGVW

      GGVW - 2009-02-11

      Real Dumb Quickstart 

      (Or how to get ogre4j working with eclipse 3.4 in windows within 5 minutes.)

      1. Start eclipse, start a new java project and create an empty HelloWorld class file.
      2. Download Ogre4j from http://ogre4j.sourceforge.net/. Choose 'Downloads'. Download both listed files. (OGRE4Eclipse and ogre4j)
         You should now have 2 files somewhere on your computer: org.ogre4j.eclipse_1.6.0.tar.bz2  and ogre4j-1.6.0-beta6-bin-win32.tar.bz2
      3. Download the latest stable SWT:  Go to http://www.eclipse.org/swt/. Find the download link (file name should be swt-3.4-win32-win32-x86.zip)
      4. Download http://ogre4j.sourceforge.net/webstart/lib/media.jar
      5. Extract both the jar and the dll from ogre4j-1.6.0-beta6-bin-win32.tar.bz2 to the root of your project folder. (eg. c:\users\ggvw\workspace\OgreHelloWorld\ )
      6. Extract swt.jar from swt-3.4-win32-win32-x86.zip to the root of your project folder.
      7. Extract all the dll files you can find in org.ogre4j.eclipse_1.6.0.tar.bz2 to your project root.
         (They should be in the org.ogre4j.eclipse_1.6.0\eclipse\plugins\org.ogre4j.eclipse.win32.win32.x86_1.6.0 folder inside the .bz2)
      8. Create a folder 'media' in your project root. Rename the downloaded media.jar to media.zip and extract the files zuh.material and zuh.mesh to the media folder.
      9. Select your project in eclipse, press F5 to refresh and see all the files you copied appear. (Do this!) 
      10. Right click your project in eclipse and select "Build path"->"Configure build path..."
      11. Click on the tab 'libraries' if not already selected and click 'Add jars..'. Select both jar files (swt.jar and the ogre jar) and click ok.
      12. Copy the content of http://ogre4j.svn.sourceforge.net/viewvc/ogre4j/trunk/org.ogre4j.examples.swt/src/org/ogre4j/examples/swt/HelloWorld.java?revision=154&view=markup    to your HelloWorld class file
      13. Change the line root.initialise(false, ""); to root.initialise(false, "","");
      14. Run your project and behold the cake. The cake is not a lie.
      15. Now deposit all your savings into my bank account.

       
    • Christoph Nenning

      added it to the wiki (with some modifications): http://ogre4j.wiki.sourceforge.net/Eclipse+getting+started

       
    • GGVW

      GGVW - 2009-02-11

      Thanks :)  I think it will help a lot of people.. and it should prevent some 'unsatisfied link errors' .

       

Log in to post a comment.