How to list the JAR files loaded into the Oracle Database ?
How to list the JAR files loaded into the Oracle Database ?
From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
JAVAJAR$
JAVAJAROBJECTS$
By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.
Similar Messages
-
How to get list of jar files loaded by servlet container.
Hi,
I need to display in my servlet program about the list of jar files loaded by servlet container. Does it vary for each servlet container or is it same. Where can I get those details.
I need to write code to support tomcat 4x, iplanet 5.0 and websphere 6.0.
Thanks & Regards,
Nasrin.NFor curious, here are output prints for all 3 methods:
1) parsing system property
2) tschodt
3) overcast SystemClassLoader to URLClassLoader
/home/espinosa/workspace/jboss_embedded_test1/target/test-classes
/home/espinosa/workspace/jboss_embedded_test1/target/classes
/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
package com.thoughtworks.qdox.directorywalker
package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
package java.util.jar, Java Platform API Specification, version 1.6
package org.testng.internal.thread
package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
package java.net, Java Platform API Specification, version 1.6
package sun.reflect.misc, Java Platform API Specification, version 1.6
package esp.ejb.samples1.test
package sun.security.provider, Java Platform API Specification, version 1.
file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
It prints not absolute paths but logical Java names. -
Error in downloading itunes in windows, all the .exe files turn into the itunes icon
Download the lnk registry fix from www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html. Reinstall iTunes. Should you find that all of your desktop shortcuts have again turned into links to the iTunes application apply the patch.
For further advice see Troubleshooting issues with iTunes for Windows updates.
tt2 -
Hi,
when I drag a pdf file (when working in Preview) into iBooks Author, the background colour in the pdf file changes into the background colour of the book.
This happens not consistently, sometimes the background of the pdf file does not change (and stays white), sometimes it's like the text in the pdf file is 'lifted' of the file, and put on the page in iBooks Author (with a brown/beige background).
All the pdf files are scanned pdf's, nothing comes out of Pages, Word, Excel,...
Anybody?
Thanks a lot!
WouterI have the same question (posted here: https://discussions.apple.com/message/25644741#25644741).
I believe this is because the PDFs have transparent backgrounds. As far as I can tell, the only way to fix it is to export the PDF as another file, such as an image file. Or perhaps convert it to Word and import it that way. -
How To Access a jar file present outside the war file through a jnlp
Aoa
I m new to this forum
I m having problem with my jnlp file
i want to know is there any way to access a jar file through jnlp.The problem is that my jnlp file is present in the war file
and i want to know how to acess a jar file through this jnlp.The scenerio is as below
I m using ear file on jboss.Its hirerchy is as
-PAN-war.war
-launch.jnlp
-PAN-app-client.jar
my jnlp file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="PAN/launch.jnlp">
<information>
<title>PanEmirates</title>
<vendor>M Fazal Ur Rehman</vendor>
<description>PanEmirates</description>
<description kind="short">PanEmirates</description>
<homepage href=""/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="PAN-app-client.jar" download="eager"/>
<jar href="lib/javafxrt.jar" main="true" download="eager" />
<jar href="lib/Filters.jar" download="eager"/>
<jar href="lib/javafx-netbeans-fxuserlib.jar" download="eager"/>
<jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
</resources>
<application-desc main-class="net.java.javafx.FXShell">
<argument>pan.Main</argument>
</application-desc>
</jnlp>
when i run launch.jnlp file it says unable to download resource http://localhost:8080/PAN/PAN-app-client.jar
how to access this jar file
Any help or comment would be highly appreciated
Regards
M Fazal Ur RehmanExcellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
Write another EAR file with the following structure:
ear:
META-INF/application.xml
util.jar
client.jar
client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
Points to note are:
you have to repackage util.jar again inside this ear file.
For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
Hope this helps,
Sahoo -
To add the JNI dll to the jar file and use the dll inside the jar file
Hi to everybody,
I am new to java.
I want to add the JNI dll to the jar file and use it in the java class.
How can I achieve it.
Please help me.
Thanks in advance.
Regards,
M.Sivadhas.can't be done because none of the known operating systems support reading binary libraries from .jar files ... you can add the binary to the jar but then you have to extract it...
besides, mixing platform specific and platfrom independent components is not a very good idea, i'd keep the dll out of the jar to begin with -
I downloaded the add on Downloadhelper and it worked for many video captures and then stopped. I reinstalled it but the icon will not load into the toolbar or the tools under View -> Toolbars -> Customize. I have gone through the troubleshooting guides and everything seems to be enabled properly. At the same time Firefox stopped allowing me to open more than one Firefox screen.
Contact the carrier and ask them what is going on.
-
Hi Experts,
I am using 11.1.1.6.0 version of Jdev.
I need to use oracle.iam.identity.rolemgmt.api.RoleManager API in my application, but i am not able to find out the library or the jar file required.
Somebody help me in adding the required libraries please.
Thanks
GopiHi Nishith,
I am a new joinee.
Not able to locate OIM_HOME. If you don't mind please give me the detailed steps to locate OIM_HOME.
Thanks
Gopi -
How to debug the jar files while developing the native extension for android
ANyone???
I'm having the same problem. I learned FB and Eclipse. I've read the tutorials, created an ane, and built it into a test app. I can debug my test app within FB 4.7 on my mobile device via USB. But there are bugs and they silently fail. Despite all my Log statements in my android java code, they won't output to the FB console. I'm blind, without even trace statements to help fix my ane. I've searched the internet and can't find anything. It must either be terribly obvious or arcane, because no one mentions it.
Can anyone tell me how to get trace out of an ane?
The Android reference claims debug and verbose priority are stripped out at runtime. I switched to Log.i() but still get nothing. I suppose for now I'll try throwing errors and see if I can report trace info that way if possible.
Anyone perhaps have a JUnit test that will mimic AIR using the ane jar file as an extension? Perhaps it will be easier to go full native until the android side is debugged.
Update Edit: Ok, now spending more time reading the Android developers website. I've found I can use logcat to get all kinds of useful system logs, including the log output of my embedded ane. I created a nice big command line window (180 char wide with a 500 deep buffer so I can scroll back through all the messages), then from the android platform tools directory I ran 'adb shell', then at the shell prompt $>logcat
Links to info that helped me:
http://developer.android.com/tools/debugging/index.html
http://developer.android.com/tools/help/logcat.html -
Where are the jar files located in the server in which the MS SQL Server is installed?
Hello All,
Please tell me the place where jar files are located in the system in which the MS SQL Server is installed.
Please help me as early as possible.
Thanks in advance.
Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.Check BOL page: Using the JDBC Driver
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
I've seen similar questions, but no answers. Most commonly, I've seen people wanting to know how to code a link on their website to make it open in the sidebar. That would be handy too.
My own goal here is to make all the pages I need open for work open where I want them, all in one click.I don't have a Recently Added playlist. However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes. I'm guessing iTunes pulled the full name of the piece from the internet. Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there. Thanks for your help.
-
How to delete a jar file after loading image files from it
Hi,
How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
Icon icon = new ImageIcon(url);
System.out.println("icon size ? " + icon.getIconHeight());
File file = new File("c:\\a.jar");
while(file.exists())
file.delete();
try
Thread.sleep(100);
catch (InterruptedException ignored)
System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
Justin JanI am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
try
URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
URLConnection conn = url.openConnection();
conn.setDefaultUseCaches(false);
conn.setUseCaches(false);
Icon icon = new ImageIcon(url);
System.out.println("icon size ? " + icon.getIconHeight());
url.openConnection().getInputStream().close();
System.gc();
System.runFinalization();
File file = new File("c:\\a.jar");
while (file.exists())
file.delete();
try
Thread.sleep(10);
catch (InterruptedException ignored)
System.out.println("file deleted.");
catch (Throwable t)
t.printStackTrace(); -
ODI - Multi development environment how to share the JAR files
Hi,
For some of our functionality, existing KM not sufficient so we created with our own KM and we have called some jave code which we created and place inside lib directory of ODI as a JAR file. there are four people in the development work. so we have four development environment(all are complete installation, i.e while installing we choosing Complete Option).
One of our developer created the our own KM and he placed the jar file in his own Dev environment's lib Directory. Since four Dev environment shares the some work rep we could see the new KM and all the ODI object in all the dev env. but if we run the the ODI interface which use the new KM from other Dev environment where we dint place the jar we are getting Error.
if we keep the jar file in all the other three Dev environment's LIB directory then respective interface working.
here my doubt, is there any other way to share the JAR file to all the Environment without copying into everywhere?
Thanks
KnidhiThanks you verymuch Cezar and Ratish, now almost i got the answer for my question.
i installed ODI Server into separate machine. it has folder structure as follows
Directory: D:/ODIServer/oracledi/ has the following subfolder
1.bin 2.drivers 3.lib 4.tools.
here i need to keep my Jar files under the lib folder. am i right?
and bin directory contains only Agent related batch files. (agent.bat, agentscheduler.bat,agentservice.bat,agentstop.bat,agentstart.bat,agentweb.bat and jython.bat and respective .sh files)
here dont know how to precede the following things
1. how to configure the Master and Work Repository information with ODI Server?(MR and WR i already created with the help of one the ODI Client)
2. how to configure the Client machine to Server?
3. Since ODI Server not having the Topology, how to create the Agent? do i need to use any one of the ODI Client for this task?
--Thanks
Knidhi -
How can i get the path to config folder placed inside the jar file?
Hi i have developed an RCP application using eclipse.
In my application config directory is there.
When i export my RCP application as JNLP Project the jar file is created which contains config folder inside it.
When i download the application using java web start , how can i get the path to config folder placed inside the jar file?
Will the config folder exists in local cache in my system?
Help needed.
-Deepak-- This works in CS6:
tell application "Adobe InDesign CS6"
set myDocument to active document
set selectedRectangles to selection of myDocument
set theGraphicsLink to file path of item link of (graphic 1 of (item 1 of selectedRectangles))
--> "Macintosh HD:folder/folder/filename.tif"
end tell -
How to build a jar file so the program can access its resources folder?
I have a java program written by someone else in which I have made a trivial change (I changed the background color). The jar file runs but it does not find one of the resources file.
Here is the project folder's structure
mainClass.txt (manifest text file)
folder resources (includes file Java does not find: order.txt, a text file)
folder CFPT ( includes .class files)
folder cpl (includes .class files)
folder results
I tried
jar cvmf mainClass.txt CFPT0.jar CFPT/*.class cpl/*.class resources results
I get a lot of "adding: resources/..."
including the one pertaining to the files which is later not found
adding: resources/order.txt(in = 411) (out= 169)(deflated 58%)
the code that chokes right now is the following,
Object i = new Object();
InputStream is = i.getClass().getResourceAsStream("/resources/" + resourceName);
when I run java -jar CFPT0.jar the program runs
but it soon gives an error, cannot find resourceName order.txt (is == null)
I have Core Java Volume 1 page 498 but it does not help me figure out what I am doing wrong.
Can somone help me build the jar file correctly so the program can find its resources?
Is this a classpath issue? What do I need to do?My last mainClass.txt file content:
Main-Class: CFPT.CFPTRunner
Class-Path: ./resources ./results
I also tried
Class-Path: resources results
Initially I only had the first line.
I put back /resources in the java file as the / is necessary to indicate absolute path.
Otherwise it looks relative to calling class.
I tried adding the path on the second line of the manifest file per Wikipedia example
http://en.wikipedia.org/wiki/Classpath
I looked at
http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
If you use the -sourcepath option, the compiler searches the indicated path for source files; otherwise the compiler searches the user class path both for class files and source files.
http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
resources
I took out the -d classes and compiled the .class files right with the java files in case that was the problem
javac -classpath . CFPT/CFPTRunner.java
jar cvmf mainClass.txt CFPT0.jar CFPT/*.class cpl/*.class resources results
java -jar CFPT0.jar
Still no go
Maybe you are looking for
-
EA4500 problem with https access
I am not able to access https sites (like banking etc.). Once I plug my old router back I have no such problem. I guess it must be router settings that I cannot figure out. Any help will be appreciated. Jan
-
Flashing pixels below menu bar?
After I updated to Mavericks I noticed that a strip of pixels will randomly flash at times right under the menu bar. The line is maybe 1/4 of the screen in the center. If I go into mission control or launch pad it goes away for a while but comes back
-
How do you know when you are using the internet?
If I am using an app that requries internet, and I press the middle button to get out of it am I still using part of my data plan?
-
Previewing graphics files in Finder
Hi. I'm not sure what happened, but in the "Icon" view of Finder, I can no longer see thumbnail previews of graphics files. I can see them fine in traditional view (not sure what you call that; the 3rd option) and in "iPod" view (the 4th option), alt
-
hi i have a popup pronlem its show me problems with my device accesory and interfirence and dont know what do do video sounds not working at all