Loading all jars in a folder at runtime
Hi...
Suppose , i have a folder in which there are many jars which depends upon each others....
I need to load all the jars at one go ....
I am using below code
public URLClassLoader loaderNEW(String jarFileName) {
File file = new File("D:\\ESTED JAR\\");
String libDir="D:\\ESTED JAR\\";
try {
File dependencyDirectory = new File(libDir);
File[] files = dependencyDirectory.listFiles();
URL[] urls = new URL[20];
for (int i = 0; i < files.length; i++) {
if (files.getName().endsWith(".jar")) {
urls[i]=(files[i].toURL());
//urls.add(files[i].toURI().toURL());
// Convert File to a URL
// Create a new class loader with the directory
ClassLoader loader = new URLClassLoader(urls);
// Load in the class; Class.childclass should be located in
// the directory file:/c:/class/user/information
Class cls = loader.loadClass("user.informatin.Class");
} catch (MalformedURLException e) {
return loader;
its is giving error
Exception in thread "main" java.lang.NullPointerException
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at LoadClass.loaderNEW(LoadClass.java:33)
at LoadClass.main(LoadClass.java:10)
Please help me out......
Thanks in advance
Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
} catch (MalformedURLException e) {
}Never swallow exceptions.
at LoadClass.loaderNEW(LoadClass.java:33)Something is null that shouldn't be at line 33 of LoadClass.java
Better go through some beginner tutorials before you play around with ClassLoaders and the like. Identifying the cause of a NullPointerException is much more fundamental than
Loading all jars in a folder at runtimedb
Similar Messages
-
Load Images Bundled in a SWC At Runtime?
If I have a SWC that has some images bundled into it that was
created using the compc compiler like:
compc -o=images.swc -include-file img1.png img1.png
Is there a way to load it into Flash at runtime and use the
Images?
The reason I'm doing this is that I want to allow an image
library to be dynamically loaded at runtime that has images which I
do not have at compile time.Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
} catch (MalformedURLException e) {
}Never swallow exceptions.
at LoadClass.loaderNEW(LoadClass.java:33)Something is null that shouldn't be at line 33 of LoadClass.java
Better go through some beginner tutorials before you play around with ClassLoaders and the like. Identifying the cause of a NullPointerException is much more fundamental than
Loading all jars in a folder at runtimedb -
How to load all the classes in a JAR file at runtime?
Any clues o:
"How can I force JVM to load all the classes in a specified JAR at once?"
Thanx!
-RajeevWell I was thinking may be there exists an option with "java", when I
am starting an application from a jar file, I could force it to load all
the classes in the JAR. I don't want to do it programically. Is there such
an option available?? Or in other words can I ask JVM to not do the dynamic
loading for the JAR??
Thanx.
List all JarEntries and convert the paths to fully
qualified class files
e.g file in jar
[1] /com/mycompany/proj/X.class
should become
[2] com.mycompany.proj.X
then for each entry issue
Class.forName( [2] ); -
How to Read all files inside resource Folder inside Jar?
I have a Jar file,,,, The program reads for resource files in the resource folder inside the Jar. I want my program to read all files inside this folder without knowing the names or the number of files in the folder.
I am using this to make an Applet easy to be updated with spicific files. I just want to add a file inside the resource folder and Jar the program and automatically the program reads what ever is in there!!
I used the File class to get all file names inside the resource folder. it works fine before Jarring the program. After I jar I recieve a URI not Herarichy Exception!!
File fold=new java.io.File(getClass().getResource(folder).toURI());
String[] files=fold.list();
I hope the question is clear!!How to get the directory and jar file that you class resides in:
// returns path and jarfile (ex: /home/mydir/my.jar)
public String getJarfileName()
// Get the location of the jar file and the jar file name
java.net.URL outputURL = YourClass.class.getProtectionDomain().getCodeSource().getLocation();
String outputString = outputURL.toString();
String[] parseString;
int index1 = outputString.indexOf(":");
int index2 = outputString.lastIndexOf(":");
if (index1!=index2) // Windows/DOS uses C: naming convention
parseString = outputString.split("file:/");
else
parseString = outputString.split("file:");
String jarFilename = parseString[1];
return jarFilename;
}If your my.jar was in /home/mydir, it will store "/home/mydir/my.jar" in jarFilename.
note: getLocation returns "file:/C:/home/mydir/my.jar" for Windows/DOS and "file:/home/mydir/my.jar" for windows, thus why I look for the first and last index of the colon so I can correctly split the string.
If you want to grab a file in the jar file and get an InputStream, do the following:
import java.io.*;
import java.util.Enumeration;
// jar stuff
import java.util.jar.*;
import java.util.zip.ZipEntry;
public class Jaris
private JarFile jf;
public Jaris(String jarFilename) throws Exception
try
jf = new JarFile(jarFilename);
catch (Exception e)
jf=null;
throw(e);
public InputStream getInputStream(String matchString) throws Exception
ZipEntry ze=null;
try
Enumeration resources = jf.entries();
while ( resources.hasMoreElements() )
JarEntry je = (JarEntry) resources.nextElement();
// find a file that matches this string from anywhere in my jar file
if ( je.getName().matches(".*\\"+matchString) )
String filename=je.getName();
ze=jf.getEntry(filename);
catch (Exception e)
throw(e);
InputStream is = jf.getInputStream(ze);
return is;
// for testing the Jaris methods
public static void main(String[] args)
try
String jarFilename=getJarfileName();
Jaris jis = new Jaris(jarFilename); // this is the string we got from the other method listed above
InputStream is=jis.getInputStream("myfile.txt"); // can be used for xml, xsl, etc
catch (Exception e)
// this is just a test, so we'll ignore the exception
}Happy coding! :)
Doc -
Loading all images from Jar include the directory structure.
Hi I would like to puts all my images in a Jar. is it going to improve the loading speed?
I have a ImageLibary that load all the images to a hashtable and access each image by their path and filename.
I only have to input the image root directory and it will load all the images including sub-directory. If I decide to put these directories in a JAR. is this still going to work? Do all the class files has to be in the same JAR?
use getResourse()?
My current ImageLibary is like this:
public class ImagesLibary extends Component
private Hashtable imagesBank;
private Vector imagesName;
private MediaTracker tracker;
public ImagesLibary()
imagesBank = new Hashtable();
imagesName = new Vector();
tracker= new MediaTracker(this);
loadImageFile("./images");
for(int i=0; i<imagesName.size(); i++)
String key = (String)imagesName.get(i);
Image image = getToolkit().getImage(key);
tracker.addImage(image, 0);
try
tracker.waitForID(0);
catch (InterruptedException e)
System.err.println("Loading image: " + key + " fails. " + e);
imagesBank.put(key,image);
System.out.println("Loaded: " + key);
System.out.println("Total of " + imagesBank.size() + " images.");
private void loadImageFile(String dir)
File imageDir = new File(dir);
File temp[] = imageDir.listFiles();
for(int i=0; i<temp.length;i++)
if (temp.isDirectory())
loadImageFile(temp[i].getPath());
else
imagesName.add(temp[i].getPath());is it going to improve the loading speed?depends :)
is this still going to work?some ajustments are needed... but thats done quickly.
Do all the class files has to be in the same JAR?no. but it's easier to handle.
use getResourse()?yes. don't know if u have to. but i do it this way :)
inside an application:
URL keyboardImagePath;
keyboardImagePath = (new Object()).getClass().getResource("/gfx/keyboard.gif");
Image kb=getToolkit().getImage(keyboardImagePath);inside an applet:
URL path = (new Object()).getClass().getResource( "/icons/right.gif" );
// now make the icon getting the gif from the url
ImageIcon = new ImageIcon( path );inside a hybrid:
URL keyboardImagePath;
keyboardImagePath = (new Object()).getClass().getResource("/gfx/keyboard.gif");
System.out.println("<-(application)load:"+keyboardImagePath); //if u wanna c what happens
if(keyboardImagePath==null)
keyboardImagePath=selfRef.getClass().getResource("/gfx/keyboard.gif");
System.out.println("<-(applet)load:"+keyboardImagePath); //if u wanna c what happens
Image kb=getToolkit().getImage(keyboardImagePath);hope that was helpfull :) -
Load all brushes in brush preset folder at startup
I'm wondering if this is possible or if there is a better solution for what I'm trying to do.
What I need to do is have a central repository of brushes or brush sets. I'll create a symlink inside the brushes folder to a space in the local drive. When photoshop is launched, we have scripts in place that will download the newest version of the repository folder to that local drive. (the users do not have permissions for the program files brushes folder) Is there a way to have photoshop load all the brushes automatically without a user having to select a set of brushes and save them?
I'm thinking also maybe there is a corresponding file that holds data for all the sets of brushes. Perhaps I could have a centralized version of this file that I could have downloaded.
We are using photoshop cs5 on a windows environment.
Thanks for any possible help!And here is the script to go with c.pfaffenbichler's suggestion.
// first make a path to the folde where the brushes are stored
// the user data folder does not need admin rights to read/write
var USER_PRESETS_FOLDER =
new Folder(Folder.userData + '/' +
localize("$$$/private/AdobeSystemFolder/Adobe=Adobe") + '/' +
localize("$$$/private/FolderNames/AdobePhotoshopProductVersionFolder") + '/' +
localize("$$$/private/FolderName/UserPresetsFolder/Presets=Presets"));
var USER_BRUSHS_FOLDER = new Folder( USER_PRESETS_FOLDER+"/Brushes" );
if(USER_BRUSHS_FOLDER.exists){
var brushFiles = USER_BRUSHS_FOLDER.getFiles('*.abr');
for(var b = 0; b < brushFiles.length; b++ ) {
app.load( brushFiles[b] );
// app root does need admin rights to write files
var APP_BRUSHES_FOLDER = new Folder(app.path+'/Presets/Brushes');
var brushFiles = APP_BRUSHES_FOLDER.getFiles('*.abr');
for(var b = 0; b < brushFiles.length; b++ ) {
app.load( brushFiles[b] ); -
Loading a jar via a custom classloader
Hi,
I have written a custom class loader that allows me to load a compiled java program as a collection of class files at runtime.
This is nice however I now need to consider the runtime execution of more complex java programs that have custom library dependencies.
This means loading a .jar library into the classloader. I can get the contents of a jar and load specific classes by name via reflection but I want to load the entire jar into the classloader so that its contents can be used 'as needed' much like a jar on the system classpath.
Is this possible? If so I would like to know how as I have been struggling with this problem and cannot see a solution.
Regards,
StephenHowever I still don't understand why you need to
actually load all those classes initially. Afterall,
URLClassLoader (which sounds a lot like what youare
describing) only loads classes as needed.i have just built a swing app that accesses an oracle
database, i jared together all the classes, and i did
something in the manfest file so that you can just
double clisk the jar and it fires up like an exe.
doing it this way everything is fine except it cannot
access the database, the reason is those oracle
classes are not loaded, even they are on the path - i
can run the app using a batch file but i dont like it
as it opens up a dos window. this is an example, as i
was told, where it is necessary to load all thoses
oracle database classes initially. Dear, daFei.
I believe that you are getting confused between the way the system will ignore that CLASPPATH environment variable when you run a java application packaged as a jar file with the -jar switch (the classpath for the jar can be set in the manifest) and what I am attempting to-do which is to run a compiled java program at runtime and dynamically load any dependant libraries.
Stephen -
Error loading dbwsclient.jar
I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
The database version is 10.1.0.4.2
The command used is:
loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
I get the following response with error message:
arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Any suggestions as for what's going wrong?
Regards, RobWhen I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
tmp\src\genproxy\HttpSoap11ClientJPub.java
plsql_wrapper.sql
plsql_dropper.sql
plsql_grant.sql
plsql_revoke.sql
Executing plsql_dropper.sql
Executing plsql_wrapper.sql
Executing plsql_grant.sql
Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
exiting : Failures occurred during processing
oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
It does appear to work when logged in as SCOTT in sql*plus:
scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
HELLO!! You just said :hey there
1 row selected.Can these errors be ignored?
Eric -
Dynamically adding jars to the classpath at runtime
Hi All,
I have a query regarding dynamically loading jars at runtime. I am developing an application that uses third party jars and there are a number of different versions that the utility is to support so I want to be able to load the jars relating to that specific version through selection on the gui. The jar files are the same name for all versions e.g.
v1 has app1.jar
and v2 has app2.jar
I have these in separate folders called app1jars and app2jars. I have tried a number of classloader examples but always get a classnotfoundException. Any ideas? Thanks in advance for repliesHi,
Sorry for being a bit vague. I have attached the code below that I was trying. Im confused about how to load the classes within each of the jars and use them do i have to use defineclass? AppSession is an interface.
import java.util.*;
import java.net.*;
import java.sql.*;
import com.app.AppSession;
import com.app.AppWorker;
import java.io.*;
import java.lang.reflect.Method;
public class JarTest {
public static File[] getExternalJars()
{ String jarDirectory = "C:\\JarLoaderTest\\1.1jars";
File jardir = new File(jarDirectory);
File[] jarFiles = jardir.listFiles();
return jarFiles;
public static void main(String[] args) throws Exception {
Method addURL = URLClassLoader.class.getDeclaredMethod("addURL", new Class[] {URL.class});
addURL.setAccessible(true);
File[] files = getExternalJars();
ClassLoader cl = ClassLoader.getSystemClassLoader();
for (int i = 0; i < files.length; i++) {
URL url = files.toURL();
System.out.println(url.toString());
addURL.invoke(cl, new Object[] { url });
cl.loadClass("AppSession").newInstance();
cl.loadClass("AppWorker").newInstance();
try
{ AppSession session = AppWorker.getConnection(username,password,port,server); // these are filled in with the actual details in my program
catch(Exception e) -
How to load a specific set of classes at runtime.
Howdy!
I want to load all the classes in a directory that implement a specific Interface, at runtime. Of course i can load all the classes if i know the String name.
Class t = Class.forName(ruleClass);
cnst = t.getConstructor( new Class[] { Session.class } );
try {
Object obj = cnst.newInstance(new Object[] {
m_fwkSession });
IRules rule = (IRules)obj;
...................where IRule is an interface.
How do i get all the files in that directory and find the classes implementing that interfaces ?You can either load all the classes and then test if they are assignable from IRule.class (isAssignableFrom())
(you could use a custom classloader if you wanted these classes to be garbage collected)
or
Open the class files and scan them to see if they contain
"myPackage/IRule"
(maybe you would have to parse the .class file, but just scanning it might be good enough) -
How to load a Jar file in the class path?
How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.
You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.
-
Unable to load "ejb.jar" to database
Hi All,
I am trying to load ejb.jar to database by using the following syntax.
loadjava -verbose -force -resolve -oracleresolver -user <uname>/<password>@<server>:<port>:<sid> -t ejb.jar
But it is showing error :
ksh: loadjava : not found.
In the server when i type loadjava it is showing the options, means loadjava will work i think. Is there any configuration needs to change to load ejb.jar to database ?
Machine details :
AIX 64 Bit 5.3
DB : Oracle 11g 11.2.0.2.0
Appreciated your help in this.
Thanks,
PrakashPrakash wrote:
Hi,
I did the following
export PATH=$ORACLE_HOME/bin
Then
loadjava -verbose -force -resolve -oracleresolver -user <Uname>/<Pwd>@<Server>:<Port>:<Sid> -t ejb.jar
But still i m facing the same issue.
Even the .profile also we have defined : export PATH=$PATH:$ORACLE_HOME/bin/
Can you please point me what is missing in the above steps i followed.
Thanks,
Prakash
PLEASE use COPY & PASTE so we can see exactly what you do & response from OS/Oracle
what is "-t" arguement?
bcm@bcm-laptop:~$ loadjava
loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-nativecompile] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] [-edition edition] classes..jars..resources..properties...
bcm@bcm-laptop:~$ -
Unable to load all MP4 movies located in iTunes
For some reason, I am no longer able to load all of my MP4 files to my iPod. They are all located in the iTunes video folder, but only about 18 randomly get loaded. Previously, I had over 24 MP4 files loaded, but since I have gone over that number, I can't even load that many anymore. I have ~20 GB of MP4 files, ~11 GB of MP3, and maybe 500 MB of photos that should be on my 60GB iPod. There is an additional 20+ GB of free space, so why won't they load? I reformatted the iPod, keeping it in version 1.0. I'm using iTunes 6.0.3.5.I reloaded iTunes and the library about a month ago. The only other quirky things that happens with it, is that it doesn't always shut down when I hold down the 'play/pause' button. Sometimes it takes 4-5 times to shut down. And, when its done updating, the only way to get rid of the 'do not disconnect' screen, is to shut the whole computer down. Does anyone have any suggestions? PLEASE
Generation 5 - 60GB Windows XP Pro
Windows XP ProI have almost the same problem, I currently have 67 movies on my 30Gb. But there are 4 movies in my library that won't go, you can watch it start to load and then it locks up and skips on to the next one. I've reset it many times, and have the current version of itunes and in my ipod. I've ripped and converted the movies all the exact same way and don't understand why the 4 won't go. I convert them with a psp program, I thought about letting itunes do it but it takes so long and the rest of them work fine.
-
Sup buddies,
How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
TY...Over N Out...hello, kiwi
quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
yes.
maybe,...
1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
or,
2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
victor -
Jinit not loading webutil jar files
Hello,
Our Application Server has had webutil installed on it for quiet some time now. I am implementing a custom Banner Form that requires webutil functionality. Well the form is all set, but the webutil portion does not function correctly. I have been working with the designers of this application and they recommended I make sure that my archive_jini and archive parameters be set in the file /u01/app/oracle/product/10gASforms/10.1.2/forms/server/formsweb.cfg as follows:
archive_jini=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall_jinit.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
archive=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
so I set these up as requested. When I look at my Java Console I only see the following load:
banicons.jar, bannerui.jar, banspecial.jar, banorep.jar and frmall_jinit.jar
I do not see gwucustom.jar, frmwebutil or jacob.jar load.
Is there something I am missing? Do I have to restart the Application Server?
Thank you much in advance for any guidance anyone can provide!
-StanI actually corrected this issue myself.
In the formsweb.cfg file I added these properties under the default section.
There is a section called jinit_pprd (My Pre-Production test server, I added these values under there and the .jar files are now loading.
-Stan
Maybe you are looking for
-
My old PC broke, it was the only pc my classic was sync with. New PC only shows 1 song (recent purchase) so am worried about syncing to new PC in case I lose the list on my iPod, which is still intacted. How can I transfer my list to new PC?
-
If i buy an iPhone 6 in Turkey can it be fixed/upgraded in The United States?
I am currently living abroad in Istanbul, Turkey, but I am an American citizen. My American iPhone 5 has had hardware issues (I have gone through all of the troubleshooting issues many times with many people and we have all decided it truly is a hard
-
Why does OS X 10.9 forget system preferences?
I'm new to Macs, having just transferred over from Windows, so please bear with me if I appear to be asking something very obvious. Anyway, I'm running OS X 10.9.4 on an Mac 21" 2.7 GHz, and have set up a few preferences in the System (such as mouse
-
Mac mini audio resets to 44.1khz after boot
Hi, I use my Mac mini with EyeTV sat and the best performance is reached by setting the audio out to 48khz. Now this is easy done with the midi program but I find it annoying that after a reboot the audio resets to 44.1khz. I searched for programs th
-
I recently received a Nokia 2330, which is pretty slow for a S40 phone. But these days I meet some one who had the same phone, but fast as a S40 phone should be. One thing, I observed is that my phone has a option Extra (when you press left button -