Skip to Main Content

Java and JavaScript in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

install jar or maven packaged Jar

Apps4uApr 4 2016 — edited Apr 6 2016

HI Sorry if this has been asked else where.

Im new to Oracle database and Ive moved our CRM + Invoicing and Billing system form php/mysql to a Oracle Apex database.  In our new system Im using Xero accounting service for billing .

So when I create a new Advertiser within our CRM I create a new Contact within XERO in the old system I was doing this in PHP now in the new system Ive also moved the invoicing to Xero So I also need to rase invoices from our CRM to Xero now Xero dose not have a WSDL .

So Ive created all the functions I need in Java I created a maven project that create a jar with all the maven deps in the final jar . I using JABX and Xero's XSL files.

So I written and tested my Code , I also made the function self contained so instead of having to pass in lots of params I just pass in a ID and the java function looks up the records needed to make the Api request to Xero so most of my functions take only one pram.

I follow the guide on create static method etc now the issue is how can I load this Jar.

I tested loaded a single file java class and I was able to load is only after I recompiled using the JDK packaged with Oracle . But that was a single .class file not a jar also as I said because my package requires dependancies Ive used maven and I used the assembly plugin so all maven packages are package with my code in the jar..

1 - Is this the best way to load my dependancies .

2 - how can I load the jar as loadjava not working unless Im doing some thing wrong.

Sorry if asked before and if its a silly question.  Any help or even just pointing me the direction of some good documentation explaining how to load a jar with its dependancies.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2016
Added on Apr 4 2016
8 comments
2,798 views