Jar File for com.ibm.wsspi.resource - jar

Can you please the jar file name (preferably file location as well) for the Package com.ibm.wsspi.resource
Here is the package definition:
http://www-01.ibm.com/support/knowledgecenter/api/content/was_beta/com.ibm.websphere.javadoc.liberty.doc/com.ibm.websphere.appserver.spi.containerServices_1.1.0-javadoc/index.html?overview-summary.html

In the Liberty profile, this class is available for compilation in wlp/dev/spi/ibm/com.ibm.websphere.appserver.spi.containerServices_x.jar.

Related

How to upload dependencies jar in lib folder in apigee from Edge UI

I created one jar file and in that i have class files, .classpath file, .project file In sample on github, i see apiproxy, callout and lib folder. when i deploy it, i getting error that traffic can't flow , i get error like traffic.How to upload dependencies jar in lib folder However when i upload my main jar file in resources folder, i don't see any lib folder for dependencies jars. Should i place all jars in one resources folder. in my .classpath file, i can see all lib jars like message-flow-1.0.0.jar, expressions-1.0.0.jar and itextpdf-5.5.6.jar. However in documentation, its given to deploy by maven but i don't know maven, from UI how should i create lib folder and upload jars there.
Okay, in my understanding of your point.
You can upload jar file into apigee from Scripts > import file > in file type choose "JAR" > select jar file from your work space > and finally, define your jar name and then use policy Java Callout to call your jar.
If you have to modified your jar and want to deploy it, delete your existing jar in apigee and upload the new jar by following 1. In case of new jar has the same name of existing jar, you do not need to do anything with Java Callout policy. But the new jar has the different name, don't forget to modified Java Callout for refer to your new jar.
Please create the single jar file which contains jars like message-flow-1.0.0.jar, expressions-1.0.0.jar and itextpdf-5.5.6.jar. As per the apigee doc in create a Java Callout policy and make sure you have mentioned the package name & class name in Java Callout Poliy
<ClassName>package.ClassName</ClassName
<ResourceURL>java://SingleJar.jar</ResourceURL>

How to update a JAR file with a modfied Java file

I have one JAR named as abc.jar with 15 class files. In JAR file I need to modify xyz.class, so I decompiled to xyz.java and modified it.
How can I update that JAR with the modified Java file? While trying to create (compile) the JAR file I am getting errors.
You can add your newly compiled class to the jar and overwrite the old one, here is how to add xyz.class and xyz.java to the jar :
jar uf abc.jar xyz.class xyz.java
See here for more about updating a jar file.
Or simply you can use any archiving tool, like winrar to open and add files to the jar.
Compile the xyz.java and replace the xyz.class file directly in jar without building the jar again, if the single class has been modified.

Where do I place Scala jar libs in Windows?

I have installed scala-async.jar for Eclipse (it is easy to edit the .classpath file) but I also want to compile/run it with command line scala. Scalac says object async is not a member of package scala. Where do I place the jar?
Placing maven released-jar into C:\Program Files (x86)\scala\lib did the trick. I have figured out the folder location with Process Monitor.

where's the jar file in apache commons math 3.3.2?

Just downloaded apache commons math 3.3.2 zip (source as opposed to binary) and extracted it. I want to add the jar to classpath in eclipse, but I can't find any file that looks right- only jar is called test. maybe that's it but I was expecting something more like math.commons.3.3.2.jar.
the jar needed is in the binary (rather than source) download
In eclipse, right click your project in the explorer. Click properties, and in the left column click "Javadoc location". Enter the URL "http://commons.apache.org/proper/commons-math/" then it should add all the packages & jars to your project, allowing you to import and reference them with
org.apache.commons.math.(whichever package you would like);

Loading file from resource folder in jar

I have a .wav file in an audio package.
When I use ..//audio//sound.wav the sound plays when run from the ide but not when run from the jar.
I am sure the audio package is in the jar.
If I put the .wav in the same package as the class it works even from the jar.
How do I get the class to see the audio package when in the jar?
Try this
Check the jar (open it using winrar) and find the path to your .wav file. Lets say it is PATH...
Now use...
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputStream is = classLoader.getResourceAsStream(PATH);
It should work....

Resources