cancel
Showing results for 
Search instead for 
Did you mean: 

dbjava9.dll: Where can I get the dll that allows ASA to call Java classes

Former Member
2,014

So, I'm trying to get the JavaInvoice example working from the Program Files\\Sybase\\SQL Anywhere 9\\Samples\\ASA\\JavaInvoice folder.

The step I'm working on is installing the Java class into ASA. I should just be able to run this in iSQL, but I get an error:

install java new from file 
   'C:\\Program Files\\Sybase\\SQL Anywhere 9\\Samples\\ASA\\JavaInvoice\\Invoice.class'

The error I get is "Could not load dynamic library dbjava9.dll". From googling around, it appears that the dbjava9.dll file is not distributed as part of the ASA Developer Edition due to licensing restrictions.

So then my question is, where can I get this DLL? Is there a different "edition" of ASA that I need to purchase or something?

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant

Java in the Database is mentioned in the ASA 9 Help...


Separately-licensable component

Java in the database is a separately licensable component and must be ordered before you can install it. To order this component, see the card in your SQL Anywhere Studio package or see http://www.sybase.com/detail?id=1015780.


Unfortunately, that link does not lead to any mention of Java in the Database, which no longer ships as a separate component.

Today, SQL Anywhere allows Java methods to be executed, but it NO LONGER allows Java classes to be used as column data types in database tables... that feature WAS part of Java in the Database, but was removed from later versions, as was the requirement to obtain a separate license.

If you switch to SQL Anywhere Version 12 you WILL be able to call Java methods with no stupid license; see http://dcx.sybase.com/index.html#1201/en/dbprogramming/pg-java.html

I do NOT KNOW if you actually need the licensed component just to call Java methods in Version 9. If you do, try calling Sybase to see if it is still available.