Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Java  (Read 27065 times)

0 Members and 3 Guests are viewing this topic.

Domingo Diego

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Diego Software
Java
« Reply #30 on: December 22, 2009, 04:16:49 am »
This would be quite nice. Any updates on it?
Domingo Diego

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #31 on: December 22, 2009, 06:38:11 pm »
Quote from: "Raygoe"
This would be quite nice. Any updates on it?

Last  week i was sick and now are xmas so i think that next update will be in january.

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #32 on: January 14, 2010, 12:07:44 am »
I'm so lazy after loong absence in work around xmas... There is some progress in Audio but nothing works for now. I will try to motivate myself and finish working on 1283 revision to start working on head revision in February.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Java
« Reply #33 on: January 17, 2010, 10:38:51 am »
Same answer as in the iPhone thread: I need to port the GL context creation, the GL rendering code, all the windowing part, and adapt the public API which is focused on desktop PCs so far (multiple windows, one mouse / one keyboard, etc.).
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Java
« Reply #34 on: January 17, 2010, 05:34:59 pm »
The GL stuff should be straight-forward to port (I have a good abstraction layer in SFML), the hardest part will probably be to adapt the public API of sfml-window :)
Laurent Gomila - SFML developer

tireswing

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.tireswinggames.com/
Java
« Reply #35 on: February 08, 2010, 06:39:45 pm »
Any progress?  I'm writing a couple of apps in Java and jSFML would come in handy.

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #36 on: February 09, 2010, 11:49:29 pm »
Quote from: "tireswing"
Any progress?  I'm writing a couple of apps in Java and jSFML would come in handy.

I will try to release jSFML for Linux on Saturday. I dont have plans for Windows and MacOSX yet.

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #37 on: February 14, 2010, 08:48:08 pm »
First release of jSFML is here! Yay! To use SFML in Java download these files:
:arrow:  jSFML.so native library (Linux)
:arrow:  jSFML.jar Java jar library

Then you need to:
:arrow:  have SFML 2 libraries in "/usr/lib"
:arrow:  add jSFML.jar to classpath in your Java project
:arrow:  include following line in your code
Code: [Select]
System.loadLibrary("jSFML");
:arrow:  run your Java program with special parameter for java describing where is jSFML.so file located
Code: [Select]
-Djava.library.path=/some/example/path

Sample code here.

Happy testing! I'm waiting for JVM crash reports! :)

PS. About prevoius post. I was thinking about sunday. I have no idea why i wrote saturday ;).

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #38 on: February 16, 2010, 01:59:26 am »
Windows version available for download from:
:arrow:  here - jSFML.dll

If you will get some mysterious external dependency error while running Java app make sure that you have libsndfile-1.dll in one of these directories:
:arrow:  Window
:arrow:  Window\System32
:arrow:  app home directory

And dont forget about:
Code: [Select]
-Djava.library.path=/some/example/path
or this line if you have jSFML.dll in Java app home directory
Code: [Select]
-Djava.library.path=./
Happy testing :)

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Java
« Reply #39 on: February 16, 2010, 08:10:27 am »
Great work. Why don't you release the source code so that everybody can build their own Java library?

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Java
« Reply #40 on: February 16, 2010, 01:37:05 pm »
Quote from: "Tank"
Great work. Why don't you release the source code so that everybody can build their own Java library?

I don't think that jSFML is ready for release yet. There are no makefiles so there is no easy way to build it under Linux, there is no good solution for building on Windows and there is nothing for MacOSX. Code needs cleanup. There are no javadoc entries in Java code. Still few functions are not implemented. I want to prepare it to be easy to modify and maintain and then release it. And of course doing all this i want to learn a whole bunch of new thing :). For few weeks you will have to depend on libraries provided by me. Or few days ;).