web stats
Code completion with loaded Java Libraries - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Thread Tools Display Modes
Old 02-22-2018, 12:23 PM
jboggs jboggs is offline
What's HL7?
Join Date: Dec 2017
Posts: 5
jboggs is on a distinguished road
Question Code completion with loaded Java Libraries

Is there anyway to have the code completion dialog show for custom java libraries? If not, does anyone have any suggestions on how make using java libraries easier? The only thing I could think of was to create code templates with the same signature as the java classes. I'd appreciate any advise
Reply With Quote
Old 02-22-2018, 01:18 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Technically yes, the Administrator client will search for any JARs on the classpath ending in "userutil-sources.jar", and automatically parse through the Java source files within to add them to the auto-completion dialog. Note that JARs on the client-side should be signed with a proper CA cert.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote
Old 02-26-2018, 08:11 AM
jboggs jboggs is offline
What's HL7?
Join Date: Dec 2017
Posts: 5
jboggs is on a distinguished road

I'm sorry, This might be a dumb question, But would that mean recompiling my jar files after specifying the classpath to be userutil-sources.jar? I've never dealt with Classpaths so my understanding is limited.
Reply With Quote
Old 01-07-2019, 03:56 AM
kaktus kaktus is offline
What's HL7?
Join Date: Jul 2018
Posts: 5
kaktus is on a distinguished road
Default How to sign the jar?

I tried to add my jar to the code completion but unfortunately it didnīt work.
I tried following steps:
1. Compiled my jar file new
2. Renamed it to "myJar_userutil-source.jar"
3. Signed it with a self created certificate (Maybe this is the problem? )
4. Copied the file to ...\Mirth Connect\client-lib
5. Stopped and restarted Mirth Service and load the Administrator new from the Server Manager

When the Administrator starts I get an error:
JAR - Ressourcen in JNLP-File are not signed by same certificate

Does this error occurs because of my self signed certificate?
Or do I have another problem?
Reply With Quote

auto, completion, custom, java, library

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 12:04 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation