Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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!

asked 30 Nov '12, 11:28

glitch003's gravatar image

glitch003
31336
accept rate: 0%

edited 30 Nov '12, 15:21

Graeme%20Perrow's gravatar image

Graeme Perrow
9.6k379124


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.

permanent link

answered 30 Nov '12, 14:27

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050
accept rate: 20%

edited 30 Nov '12, 14:33

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×78

question asked: 30 Nov '12, 11:28

question was seen: 1,785 times

last updated: 30 Nov '12, 15:21