Solved

use Embedded MySQL Server Library with Java

Posted on 2004-04-04
5
335 Views
Last Modified: 2012-06-22
Hi,

I want to make a build a small standlone application in java using a (simple) database.
I want to embed the database in my application.
Mysql has the Embedded MySQL Server Library, but is accessible only from C clients.
Does anybody know a workaround, or any other solution for that matter?

thanks,

Scriptnov


0
Comment
Question by:scriptnov
  • 2
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 10751995
0
 
LVL 16

Assisted Solution

by:warturtle
warturtle earned 125 total points
ID: 10752044
Hi,

You could use JUDF(http://software.tangent.org/download/judf-0.2.tar.gz)
 to write some User Defined Function in Java for MySQL, then you can call these Java functions from the SQL executed with the MySQL environment.

This might be helpful in situations, where you can call Java functions from within a database like mySQL. You could essentially write stored procedures to call those java functions from within SQL queries.

This might be the only workaround to using C Api's.

Regards,

Warturtle
0
 

Author Comment

by:scriptnov
ID: 10752282
Thank you both for your answers.

I just came across Hypersonic SQL while 'googling' for java based databases.
I guess it's the best alternative. But I will try out Warturtle's suggestion to make sure it really is.

So if you don't mind I will splitt the points between you.

Regards,

Scriptnov
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10752317
8-)
0
 
LVL 16

Expert Comment

by:warturtle
ID: 10759393
;-)

Thanks,

Warturtle
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now