How To Add External Dependency in Guidewire - docusignapi

I need an external library to be used in Guidewire. Below is the name of the library in which I am interested which is available on the maven repository.
I am not sure how to add an external java library inside ClaimCenter or PolicyCenter. Any suggestion will be much appreciated.
https://mvnrepository.com/artifact/com.docusign/docusign-esign-java

You can add external .jar files inside jdk installation directory.
Ex: jdk1.8.0_25\jre\lib\ext\docusign.jar.
Local machine - after adding the jar, Check in IDE: File->ProjectStructure->SDKs->Classpath. If added jar is not present, add it manually by '+'.
Higher env -> add the jdk1.8.0_25\jre\lib\ext\docusign.jar in same jdk dir, which tomcat is using.

Related

Finding the log4j.jar installed by rpm at client site and adding it to the classpath rather than including it in our rpm

Our company produces an rpm on red-hat Linux and there is a thought that we should redistribute as little 3rd party code as possible in our package. We are using log4j.jar and want to stop including it in our rpm, but instead have the log4j rpm installed at the client site. However, that means that my java program needs to know where the file is located so that I can import the file. Without knowing where the client installed the file, in case they installed it in a non-standard location, I cannot be sure it is on the classpath. Is there a standard way to determine that? Do rpm or yum have a command so that I can see where a specific file was installed or do I need our customer to tell me where it is so I can set the classpath value correctly? I can't just use the find command on their system to search their files. Any suggestions would be appreciated.
Thanks

How do you add plugins to SBT? [Ubuntu]

I am following the instructions on how to add plugins to Eclipse for SBT here:
https://github.com/typesafehub/sbteclipse
Add sbteclipse to your plugin definition file (or create one if
doesn't exist). You can use either: the global file (for version 0.13
and up) at ~/.sbt/0.13/plugins/plugins.sbt the project-specific file
at PROJECT_DIR/project/plugins.sbt
However, the directory does not exist in Ubuntu linux. All I see is ~/.sbt and inside of that a directory called /boot. What should I do? Is the /0.13 directory somewhere else on my computer?
Yes, just create folder next to boot under ~/.sbt/ with the full path, as it is asked in the documentation, just do
touch ~/.sbt/0.13/plugins/plugins.sbt
to create a global file with plugins.

Project-independent directories settings in VC++

I have a Visual C++ 2012 Express project on Git that uses an external libcurl (not included in the repository).
I added the library by adding the corresponding paths on my machine (D:\libcurl\XXX) to Include Directories and Library Directories in VC++ Directories of Project Properties. So these settings are saved in the .vcxproj file.
If someone whose libcurl path is different from mine wants to build the project, he would have to:
Change VC++ Directories settings in Project Properties.
(then the project file will become modified, which is not what I want.)
Move his libcurl files to match mine (D:\libcurl).
(library path is forced to be D:\libcurl, not so flexible)
My question is: Is there a way to avoid this?
(In old versions of Visual C++, I can set the paths in the global VC++ Directories of the Tools->Options dialog instead. But the feature is deprecated in recent versions.)
I believe u can achieve this by using environment variables.
For example, you can add an environment variable called: LIBCURL
You can then set the LIBCURL to any path u want: D:\libcurl or X:\lib2.3b ...
no matter what ur library path is, u can always use the same VC++ Directories: $(LIBCURL)\XXX

What is the development package for lua 5.1.4?

My machine has lua-5.1.4 installed (from source) but does not have lua.pc. What is the development package to download for lua 5.1.4?
I am new to this myself, so please bear with me while I explain what is 'lua.pc'. If you think some of the information here is incorrect, please make full use of the edit button.
lua.pc or any file with pc for an extension is a file that goes into either /usr/local/lib/pkgconfig/ or /usr/lib/pkgconfig directories. It is a text file containing different fields such as Description etc., information that is used by the make install process. The default installation of lua does not install the lua.pc file. That is because it is the 'normal' package. However, the development package contains this file. The development package creates additional dynamic links (for shared libraries etc.) that are needed during installation of other software where these shared libraries may be dependencies. For more information, read here and here.
Update: lua.pc is present in the etc/ folder within the source tarball.
The lua.pc is in the source tarbal, in the etc folder

installing xuggler java libraries in Tomcat on Linux

I'm trying to install xuggler Java libraries in Tomcat (version 5.5) on fedora-release-7-3
Should I install the binaries available for download on xuggler website or build my own (http://www.xuggle.com/xuggler/downloads/build.jsp)?
I took the easy step first and installed the readymade binaries downloaded from http://www.xuggle.com/xuggler/downloads/ in usr/local/xuggler folder on my Linux server and then copied the jar files from share/java/jars folder to Tomcat's $CATALINA_HOME/shared/lib directory (as recommended by
http://wiki.xuggle.com/Frequently_Asked_Questions#I_get_an_.22UnsatisfiedLinkError.22_when_I_run_Xuggler-based_Applications_in_Tomcat
These are some 6 .jar files, including xuggle-xuggler.jar
After restarting Tomcat, I'm still getting "java.lang.UnsatisfiedLinkError: no xuggle-xuggler in java.library.path" exception when my Java code attempts to invoke some xuggler method such as the one to find video duration of an flv file.
What am I doing wrong? Any help is very much appreciated!
Make sure that Tomcat can see the environment variables you have to set up with XUGGLE. In particular LD_LIBRARY_PATH.
Putting the xuggle environmental variables in the startup.sh is probably one of easiest ways to get this going. Also don't forget to put the xuggle jar only in the shared / common lib or you may run into classloader issues when you attempt to use xuggler in multiple webapps.

Resources