web stats
Code completion with loaded Java Libraries - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2018, 01: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
  #2  
Old 02-22-2018, 02:18 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,055
narupley is on a distinguished road
Default

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
  #3  
Old 02-26-2018, 09:11 AM
jboggs jboggs is offline
What's HL7?
 
Join Date: Dec 2017
Posts: 5
jboggs is on a distinguished road
Default

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
Reply

Tags
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 06:02 PM.


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