Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Eclipse with SDL - how to  (Read 6296 times)
0 Members and 1 Guest are viewing this topic.
Offline kat15pl

Senior Newbie

« Posted 2012-03-26 20:22:24 »

If there is topic like that, please tell me (I didn't found any).

Could anyone told me step by step how to integrate my procet (existing) with SDL library for java (sdljava)?

Sorry for my english
Offline ra4king

JGO Kernel

Medals: 422
Projects: 3
Exp: 5 years

I'm the King!

« Reply #1 - Posted 2012-03-26 21:17:18 »

I'm assuming this sdljava contains necessary JAR files and native DLL, SO, and DYLIB files? If so, then it's best to simply put all the JAR files in a folder called "libs" in your project root and then put all the natives in a folder "natives" under "libs". After that you right click the project, choose "Build Path", choose "Configure Build Path". Under the "Projects" tab, click on "Add JARs" and highlight all your JARs. Then expand the main sdljava JAR, double click on "Native Library Location", click on "Workspace", and choose the "natives" folder. You're done setting up the build path Smiley

Offline gouessej
« Reply #2 - Posted 2012-03-26 21:34:03 »


A friend of mine wrote a tutorial in French about SDL in Java. He used it during several months and told me it is quite very buggy. Maybe you should plan to use something else.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kat15pl

Senior Newbie

« Reply #3 - Posted 2012-03-26 22:00:43 »

I try this simple program (to check SDL):
import sdljava.*;

class HelloSDL {
   public static void main(String[] args) {
      final String caption = "Hello, SDL!";

      try {
         SDLVideo.wmSetCaption(caption, caption);
         SDLSurface screen = SDLVideo.setVideoMode(640, 480, 24, 0);

      } catch (Exception e) {
      } finally {

When I run it it says:

Hello, SDL!
Native code library failed to load.
java.lang.UnsatisfiedLinkError: C:\JavaSDL\lib\SDLJava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

I load SDl.dll (64bit), but I can't find SDLJava.dll 64bits.
Offline gouessej
« Reply #4 - Posted 2012-04-05 20:40:36 »


SDLJava has not been updated since 2005-09-16, I have not succeeded in finding the missing DLL. Are you really sure you still want to use this library? You can do the same things with JogAmp (JOGL + JOAL + JOCL) and some high level libraries like Paul Lamb Sound System.

Offline sproingie

JGO Kernel

Medals: 202

« Reply #5 - Posted 2012-04-05 22:05:17 »

It's not like SDL has changed much since 2005 either (1.3 still isn't out) ... but my fuzzy recollection is that SDLJava never worked very well in the first place.
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #6 - Posted 2012-04-05 22:43:31 »

It's not like SDL has changed much since 2005 either
Intel macs have been released and become widespread since then though. I doubt SDLJava works on any modern OSX machine...

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline gouessej
« Reply #7 - Posted 2012-04-05 23:00:31 »

It's not like SDL has changed much since 2005 either (1.3 still isn't out) ... but my fuzzy recollection is that SDLJava never worked very well in the first place.

That's what I meant in my previous comment. My friend wrote a tutorial about it in 2009 and told me that it was already quite buggy.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (49 views)
2016-04-18 14:18:53

KaiHH (47 views)
2016-04-18 08:35:41

KaiHH (77 views)
2016-04-15 12:43:58

theagentd (80 views)
2016-04-14 02:16:17

theagentd (95 views)
2016-04-14 02:15:43

IanParcs (107 views)
2016-04-12 03:51:16

IanParcs (49 views)
2016-04-12 03:50:03

IanParcs (45 views)
2016-04-12 03:49:54

IanParcs (41 views)
2016-04-12 03:49:52

IanParcs (50 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!