Milenia and jdbc ?

1 view
Skip to first unread message

st*f

unread,
Apr 10, 2008, 7:39:50 PM4/10/08
to Milenia Grafter
Is it possible to use jdbc with Milenia ?

Milan Toth

unread,
Apr 11, 2008, 2:59:37 AM4/11/08
to milenia...@googlegroups.com
Hi!

Since JDBC is for Java, and Milenia is written in Java, of course.

Milan

st*f

unread,
Apr 11, 2008, 7:07:00 AM4/11/08
to Milenia Grafter
I use Flex all the time, but I'm really not used to Java. I didn't
try too much, but I think I need to embed JDBC classes inside the
application...
I use Milenia 0.5 (I will go to new version as soon as possible), and
I follow the instructions to make the MilGraTutorial application.
The application works perfectly, so I just add JDBC as an external jar
in my project, but I get an error while using it in Milenia.
I made a few tests with JDBC, and all my requests works fine in
Eclipse.
The JDBC classes seems to be missing (class not found error), so what
should I do to add JDBC to my application ?

By the way, thanks a lot for your work Milan, it's really helpful.
I'm doing a small multiplayer, real-time game in Flex right now and it
was really easy to implement Milenia.

Milan Toth

unread,
Apr 11, 2008, 7:11:45 AM4/11/08
to milenia...@googlegroups.com
Hi, i'm glad you like Milenia :D

for jdbc, i think the only problem is that the application cannot
reach the jdbc driver jar during runtime. you have to put the drivers
in the java classpath, or compile it in your application jar, but the
first solution is simpler.

regards

Milan

Anjo Krank

unread,
Apr 11, 2008, 7:12:05 AM4/11/08
to milenia...@googlegroups.com
You need to add the jdbc classes to the server classpath. Either you
add them to the server jar, or you start the server with -cp
server.jar:jdbcstuff.jar. Or you add them to the application jar...
BTW: I guess you mean the "database driver jar" by JDBC classes?

Cheers, Anjo

st*f

unread,
Apr 11, 2008, 7:35:14 AM4/11/08
to Milenia Grafter
Thanks for your answers, I will try that this evening. And keep you in
touch to beta test the game :-D
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages