Jar Directory?

This Might be the most new question I've asked thus far, but can a Jar File have directories in it? Even thou its a file?

Effectively. The aren't real directories, as such, but jar entries can (and usually do) have "/" separated paths.

Similar Messages

  • Standard.jar and jstl.jar directory

    First off I probably should apologize in advance because my problem might be an eclipse config issue.
    I created a simple servlet and I tried to include a jstl library import javax.servlet.jsp.jstl.sql.Result;. It compiled cleanly but, when I ran the application (through a browser accessing tomcat through eclipse) I was getting this error...
    The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
    I eventually found out what was wrong but I don't understand why it was wrong and that's my question. Originally I had jstl.jar and standard.jar in the projectHome/lib directory. When I moved those 2 files to the projectHome]/WEB-INF/lib directory, however, things ran correctly. Is this a setting somewhere within my tomcat config on eclipse perhaps? Or can someone point me in the right direction about this issue in general?
    Thanks in advance!

    Tomcat and Eclipse have different ideas of classpath.
    In Eclipse you set the classpath as part of the project properties: Java Build Path.
    Tomcat uses:
    - web-inf/classes directory
    - jar files in web-inf/lib
    - jar files in /shared/lib
    - jar files in /common/lib
    So in order to run on Tomcat, they need to be in the web-inf/lib directory.
    Cheers,
    evnafets

  • Loading properties in JAR directory

    I am trying to load properties files that are in the directory structure of the JAR file. The first properties object loads, but subsequent properties objects will not load. The code is as follows:
    public Properties loadProperties(String file_name)
    InputStream data = null;
    Properties props = null;
    try
    data = getClass().getResourceAsStream(file_name);
    //if(data==null) exit("ERROR: "+file_name);
    props = new Properties();
    props.load(data);
    data.close();
    data = null;
    catch(Exception e)
    handleException(e, file_name);
    if(DEBUG)
    printline("Property Loaded Successfully: " + file_name);
    printline(props.toString());
    return props;
    the file names have the following setup
    /directory/subdir1/subdir2/subdir3/file_name
    The code works fine when not JAR'd - any suggestions?

    If your program is in an executeable jar file then add the following in the manifest
    class-path: junk.jar
    junk.jar has
    pjb/props/myconfig.properties file
    To access the properties in junk from your executable jar file in your class, do the following
    Locale eng = Locale.ENGLISH;
    String myvalue  = java.util.ResourceBundle.getBundle("pjb.props.myconfig",eng).getString("greeting");That should work
    Or if you not using an executable jar file just set your CLASSPATH to the directory where that junk.jar is.
    java -cp c:\myjavalib\stash\                 <-----Assmuing junk.jar is in thereJava dynamically reads jar files.

  • Can you please help me find thethe aii map api.jar file

    Hi Experts,
    As a part of my scenario I must Import the aii_map_api.jar library.
    The file aii_map_api.jar is located in
    \toolkit\Java Mapping\Software\aii_map_api.jar directory. [In the XI Server installation directory].
    I do not have permissions to access this file.
    Can you help me out guys?
    Thanks in Advance,
    Thomas

    Hi Check the path
    usrsap<SID>DVEBMGS00j2eeclusterserver0appssap.comcom.sap.xi.services
    or some threads are
    aii_map_api.jar
    aii_map_api.jar
    Thanks!

  • How to bundle java help class into jar file ?

    Hi, all,
    I have some package in my project, with which I have a java help jar file as classpath, when I run my project, I need the jh.jar file in directory /jar/jh.jar.
    Now, I bundled all my class packages into a jar file, my.jar, together with the /jar directory. When i run my jar file with command:
    java -jar my.jar
    It tells me couldn't find javahelp class.
    What shall I do? How can I create my jar file with the jh.jar?
    Thanks in advance.

    I think you'd be better off just adding the jh.jar as
    a classpath argument and running it like that:
    java -classpath /myjavalibdir/jh.jar -jar myjar.jar
    ...otherwise you're stepping into redistribution of
    binary issues licensing-wise. That won't work either; when you run java with the -jar option, it ignores both the -classpath option and the CLASSPATH environment variable. However, it will see jh.jar automatically if you put it in the <path-to-java>/jre/lib/ext directory. But for distribution purposes, it might be simpler just to combime the contents of jh.jar into myjar.jar (if you use Ant, its <jar> task makes that very easy). Or, you can just run it this way:java -classpath myjar.jar;jar/jh.jar MyMainClassBTW, I don't think redistribution is a problem; otherwise how anyone even use JavaHelp?

  • JRockIt Deleting JAR files - Error loading class

    Hi there,
    Customer is facing a very weird issue. Their application has an application that contains some EJBs and Web applications that, apparently for no reason, it starts to unload classes and delete JAR files and WAR files from the Weblogic's "extract" directory. If I bounce the application, everything starts working fine until a moment where the issues starts again.
    I thought this was any kind of memory issue that was not allowing the JVM to free enough resource for loading the classes again after unloading it. But we gave enough memory for the JVM and it stills happening.
    Thoughts? Any idea that might help us on troubleshooting is very welcome at this time.
    Thanks in advance,
    Davi

    e-blade wrote:
    Manifest-Version: 1.0
    Class-Path: lib/tools.jar
    Created-By: 1.6.0_18 (Sun Microsystems Inc.)
    Main-Class: MainThe line in bold means: when app.jar will be run, it will look for additional classes in <same OS directory as itself>/lib/tools.jar.
    It does not mean that it will look inside itself in the JAR directory /lib/tools.jar.

  • This JAR is driving me crazy! Dukes to come...

    Hi all,
    I can create an executable jar, both programmatically and from the command line and the internal directory structure comes out fine, just as expected. However, If I double click on it, I get the dreaded "Cannot find main class, program will exit" error.
    I have checked and double checked my manifest and it seems fine too. This is what is created inside the jar:
    Directory called "jai" containing class files
    Directory called "META-INF" containing one file, "manifest.mf"
    Manifest looks like this:
    Manifest-Version: 1.0
    Main-Class: jai.Run
    including the empty line at the end. Run.class does exist inside jai. I have also tried changing the main class to jai/Run with the same result. I just have no more ideas on what could be wrong even after trawling through the many postings on this topic. Any suggestions would be reaaaallly appreciated. I am so desperate that I will definitely add Dukes to this topic when I next get some more, but at the moment I'm all out!
    Thanks in advance!

    buckman1:
    you may be on to something. There IS a jar inside the jar. The purpose of the main class is to extract the files from the outside jar, and run this one. (Frustratingly, the jar inside executes perfectly when double clicked!). Can you expand on what I have to do in the manifes? However, I don't think that's my problem as the error message is "Can't find main class", so it leads me to believe that the main class doesn't even get a chance to run.
    Here's the directory structure inside the jar:
    /META-INF/MANIFEST.MF (on checking, this always gets changed to upper case even if you add it in lower case).
    /jai/Run.class
    /jai/ua.jar
    /jai/data/installConfig.txt
    and that's it - only small.
    Below is the Run code (obviously untested as I can't get the jar to run!):
    package jai;
    import java.lang.Runtime;
    import java.io.*;
    import java.net.URL;
    import java.util.*;
    import java.util.jar.*;
    import java.util.zip.*;
    import java.security.*;
    public class Run {
      public Run() {
      public static void main(String[] args) throws IOException {
        extract();
      private static URL getJar() {
        Class theClass = new Run().getClass();
        ProtectionDomain pDomain = theClass.getProtectionDomain();
        CodeSource codeSource = pDomain.getCodeSource();
        URL loc = null;
        try {
          loc = codeSource.getLocation();
        catch (Exception ex) {
          ex.printStackTrace();
        return loc;
      private static void extract() throws IOException {
        String strJarFileName = getJar().toString();
        JarFile theJar = new JarFile(strJarFileName);
        Enumeration enuJarEntries = theJar.entries();
        while (enuJarEntries.hasMoreElements()) {
          JarEntry jeFile = (JarEntry) enuJarEntries.nextElement();
          //strTempDir is the Dir where the files are to be unjarred
          File oneFile = new File(System.getProperty("java.io.tmpdir") + "/" +
                                  "JAITEMP" + "/" + jeFile.toString());
          if (jeFile.isDirectory()) {
            oneFile.mkdir();
          else {
            CheckedInputStream cis = new CheckedInputStream
                (theJar.getInputStream(jeFile), new CRC32());
            FileWriter fw = new FileWriter(oneFile);
            BufferedWriter bw = new BufferedWriter(fw);
            for (int i = 0; i < jeFile.getSize(); i++) {
              bw.write(cis.read());
            bw.flush();
            bw.close();
            fw.close();
    }

  • Help can't add new jar files into BDK beanbox(plz see details)

    I am unable to load new jar files into bdk beanbox inspite of
    packaging bean class file and manifest file in a jar file and
    placing it in bdk jars directory. On trying to load it says(THE JAR
    FILE DOES NOT HAVA ANY BEANS).
    SEE THE EXAMPLE BELOW:
    I made a manifest file BeanTest.mf as
    Name: BeanTest.class
    Java-Bean: True
    Then the BeanTest Class comprises of
    import java.awt.Point;
    public class BrokenProperties extends Point
         public void setSpot(Point point)
              this.x = point.x;
              this.y = point.y;
         public Point getSpot()
              return this;
    Please help....

    you have many little errors in program. try as below and let me know..
    public class BrokenProperties extends Point implements serializable
    private Point xy;
    public BrokenProperties()
    public void setSpot(Point point)
    xy=point;
    public Point getSpot()
    return xy;

  • Controlling directory names of deployed application

    Hi ,
    When I deploy the application on the server it would be deployed under
    .../server1/applications/j2ee-apps/myApp_1
    Here If my EAR file is myApp "_1" or "_2"... would get appended to in the deployed directory . In the
    same way for war & jar directory "_war" & "_jar" get appended .
    Is there any way by which we can control this name generation. In my application I want to have the
    directory name same as EAR file ( as well as war & jar files).
    Thanks,
    Prakash

    Hi Chris,
    We are trying to migrate the application from 6.0 to 7.0 , in the current version we place few configuration files under /Apps directory in 6.0 and some files under few directory inside war file. I agree that this is not a best design / practice to follow. Though this problem can be solved by having application specific config files under server1/config/ directory, But this requires modifications to code of many files.
    I was just searching a way by which we can replicate the 6.0 environment, where we used to have directory names same a ear, war & jar files and we could use same config files on different systems.
    Thanks,
    Prakash

  • Using .jar files

    I was able to use .jar files in Java programs that I write on my computer. I could write a program that used an import statement to bring in classes contained in a .jar file.
    One day, I was trying to incorporate a jar file folder directly into my windows operating system by using the environmental variable called CLASSPATH. Unfortunately, I made the mistake of screwing up my PATH variable. I fixed my PATH variable back up by adding the directory to the bin folder inside of the Java folder as is described commonly by the documentation for installing the Java SE on windows computer.
    Since that day, I have not been able to use .jar files using an import statement. My computer is unable to find the .jar files even if I specify the exact directory. Even the IDE(netbeans) that I use is unable to find and use .jar files. I have found that I can open up .jar files and pull the contents that I need out of said .jar files, but I have a project that does not allow me to open up the .jar files and extract the needed classes.
    I have googled this problem so much that I have read hundreds of posts about .jar files, and I cant find anyone in a situation that is similar to mine. If I take my files to another computer with Java SE installed, then my source code can access the .jar files just fine. For some reason, my work computer seems to hate using .jar files. I have no idea what could be the problem. There is no information in the java documentation on troubleshooting with this problem, and the most confusing part is that it worked perfectly fine until That one day
    Does anyone have any ideas?
    Specific technical details:
    I need to pull the Stopwatch.class file from a stdlib.jar file. In the past I had done this by using an import statement inside of my program:
    "import stdlib.Stopwatch; "
    Using this command to compile:
    "javac -cp .;(directory path to .jar file); source.java"
    This used to work. Now when using the javac command I get error messages
    1. Error points directly to import statement. Arrow directed at the period after stdlib.
    "cannot find symbol"
    2. Error message pointing to all instances of the class that I was attempting to import into my program.
    Thanks for reading
    Edited by: 955611 on Aug 28, 2012 7:22 PM

    I read your post. I want to compile this project by using the "-classpath" option in the javac command. After screwing up important system variables once, I do not want to continually have to play with system variable in order to compile projects. To quote from the website that you linked:
    Using the JDK tools' -classpath option
    The JDK tools java, jdb, javac, and javah have a -classpath option which replaces the path or paths specified by the CLASSPATH environment variable while the tool runs. This is the recommended option for changing class path settings, because each application can have the class path it needs without interfering with any other application.
    The runtime tool java has a -cp option, as well. This option is an abbreviation for -classpath.
    For very special cases, both java and javac have options that let you change the path they use to find their own class libraries. The vast majority of users will never to need to use those options, however.
    Clearly, the "-classpath" option in the javac is intended to replace the need to play with important system variables. I guess my post boils down to the question of "Why doesn't this command work for me?". I followed your suggestion by removing the bin directories and adding the stdlib.jar directory directly into the system variable itself. Here is the following output from my command prompt:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Lelo>E:
    E:\>cd Programs\Java
    E:\Programs\Java>javac testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>echo %CLASSPATH%
    C:\Program Files\Java\jre6\lib\ext\QTJava.zip;E:\Programs\Java\stdlib.jar;
    E:\Programs\Java>javac -classpath .;E:\Programs\Java\stdlib.jar; testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>
    I still received the same errors. It seems that even adding the directories into the system variable will not work for me.

  • Invalid XML Character from Jarred file

    I have a server class that attempts to load an XML file and parse the same.
    The entire code works fine when the class is extracted and parses correctly. However, when
    a distribution jar is created, the extraction of the XML file fails with an invalid character
    exception.
    124.0.24,5,RMI Runtime]
    10/15/04 3:31:59 PM user=server stackTrace=org.xml.sax.SAXParseException: Illegal XML character:  &#x0;.
            at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
            at org.apache.crimson.parser.InputEntity.getc(InputEntity.java:360)
            at org.apache.crimson.parser.Parser2.getc(Parser2.java:3166)
            at org.apache.crimson.parser.Parser2.maybeComment(Parser2.java:1042)
            at org.apache.crimson.parser.Parser2.content(Parser2.java:1935)
            at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)Why this is happening I have no clue. The XML file in the jar is the same as the
    XML file in the un-jarred directory. Any assistance would be appreciated in advance :-).
    InputStream inStream = null;
            try {
                inStream = this.getClass().getResourceAsStream(
                        "/global/service/admin/" + "test-resource.xml");
                byte arr[] = new byte[inStream.available()];
                inStream.read(arr);
                inStream.close();
                String cfg = new String(arr);
                Document doc = null;
                DocumentBuilderFactory docFactory
                    = DocumentBuilderFactory.newInstance();
                DocumentBuilder parser = docFactory.newDocumentBuilder();                 
                doc = parser.parse(new InputSource(new StringReader(cfg)));
                handleDocument(doc);
            } catch (Exception exp) {
                Log.error(exp);
            } finally {
                if (inStream != null) {
                    try {
                        inStream.close();
                    } catch (IOException e) {
            }Thanks in advance

    Thanks for the input. Once I changed the code to directly use input stream, it worked like a charm even from the jar file.
    While experimenting, I found the following:
    <foos>
           <foo> test</foo>
           <foo>test2</foo>
    </foos>If the line between the two foo elements were removed, the jar one worked with my original code. However, with the input stream it seems to not care. I had build the XML file on a Solaris box using 'vi' and the application was also run from solaris.

  • Problem: Multiple jar files in Class-Path [ IOException: line too long]

    Hello Folks,
    I am trying to create a jar file using the following command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar lib/cog-abstraction-common-2.0.jar lib/cog-abstraction-examples-2.1.jar lib/cog-certmanagement-1.0.jar lib/cog-certrequest-1.0.jar lib/cog-grapheditor-0.46.jar lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar lib/cog-jglobus-1.2-050621.jar lib/cog-karajan-0.31.jar lib/cog-provider-clref-gt3_0_2.jar lib/cog-provider-clref-gt3_2_0.jar lib/cog-provider-clref-gt3_2_1.jar lib/cog-provider-clref-gt4_0_0.jar lib/cog-provider-condor-2.0.jar lib/cog-provider-gt2-2.0.jar lib/cog-provider-gt2ft-1.0.jar lib/cog-provider-gt3_0_2-2.0.jar lib/cog-provider-gt3_2_0-2.0.jar lib/cog-provider-gt3_2_1-2.0.jar lib/cog-provider-gt4_0_0-2.2.jar lib/cog-provider-local-2.0.jar lib/cog-provider-ssh-2.0.jar lib/cog-provider-webdav-1.0.jar lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar lib/cog-util-0.91.jar lib/commons-discovery.jar lib/commons-httpclient.jar lib/commons-logging.jar lib/concurrent.jar lib/cryptix32.jar lib/cryptix-asn1.jar lib/cryptix.jar lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar lib/jaas.jar lib/jakarta-regexp-1.2.jar lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in this dir.
    There are 59 jar files in the lib directory. When I try to create the jar file, I get the following exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at java.util.jar.Attributes.read(Attributes.java:356)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any restriction as to how many jar files (or characters) can be there in the Class-Path value in the MANIFEST.MF file?
    Please help.
    Thanks,
    Ana

    use as the following way to resolve the problem:
    (1) use separate lines, to avoid too long a line for java package name lists
    (2) type a preceding space before each folloing lines, for example:
    Class-Path: ...jar ...jar ...jar
    ...jar ..jar
    ...jar ...jar
    ...jar ...jar
    Hello Folks,
    I am trying to create a jar file using the following
    command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar
    lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar
    lib/cog-abstraction-common-2.0.jar
    lib/cog-abstraction-examples-2.1.jar
    lib/cog-certmanagement-1.0.jar
    lib/cog-certrequest-1.0.jar
    lib/cog-grapheditor-0.46.jar
    lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar
    lib/cog-jglobus-1.2-050621.jar
    lib/cog-karajan-0.31.jar
    lib/cog-provider-clref-gt3_0_2.jar
    lib/cog-provider-clref-gt3_2_0.jar
    lib/cog-provider-clref-gt3_2_1.jar
    lib/cog-provider-clref-gt4_0_0.jar
    lib/cog-provider-condor-2.0.jar
    lib/cog-provider-gt2-2.0.jar
    lib/cog-provider-gt2ft-1.0.jar
    lib/cog-provider-gt3_0_2-2.0.jar
    lib/cog-provider-gt3_2_0-2.0.jar
    lib/cog-provider-gt3_2_1-2.0.jar
    lib/cog-provider-gt4_0_0-2.2.jar
    lib/cog-provider-local-2.0.jar
    lib/cog-provider-ssh-2.0.jar
    lib/cog-provider-webdav-1.0.jar
    lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar
    lib/cog-util-0.91.jar lib/commons-discovery.jar
    lib/commons-httpclient.jar lib/commons-logging.jar
    lib/concurrent.jar lib/cryptix32.jar
    lib/cryptix-asn1.jar lib/cryptix.jar
    lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar
    lib/jaas.jar lib/jakarta-regexp-1.2.jar
    lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar
    lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar
    lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar
    lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar
    lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar
    lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar
    lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in
    e in this dir.
    There are 59 jar files in the lib directory. When I
    try to create the jar file, I get the following
    exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at
    at
    at
    at
    java.util.jar.Attributes.read(Attributes.java:356)
    at
    at
    at java.util.jar.Manifest.read(Manifest.java:167)
    at
    at
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any
    restriction as to how many jar files (or characters)
    can be there in the Class-Path value in the
    MANIFEST.MF file?
    Please help.
    Thanks,
    Anajust

  • Help with a question about making/running .jar files.

    First i have a question, can i make a .jar file that can run on a computer without JRE installed. And if i can, how do i make it. I have tried to make it on my computer, that has JRE but i keep getting the error when i run it: Exception in thread "main" java.lang.NoClassDefFoundError: Sample\FileSearchAnd im using the command:
    jar cvfm jarname.jar directory\manifest.txt directory\FileSearch.class directory\FileNode.classIt says it creates the .jar but is unable to run it.

    dford425 wrote:
    First i have a question, can i make a .jar file that can run on a computer without JRE installed. No, not unless you package the JRE with your dist. Hence the name JRE (Java Runtime Environment).
    And if i can, how do i make it. I have tried to make it on my computer, that has JRE but i keep getting the error when i run it: Exception in thread "main" java.lang.NoClassDefFoundError: Sample\FileSearch
    That simply means your not pointing the runtime to the classes. Set your CLASSPATH environment variable correctly and it will run (given you have a JRE which it appears you do).
    And im using the command:
    jar cvfm jarname.jar directory\manifest.txt directory\FileSearch.class directory\FileNode.classIt says it creates the .jar but is unable to run it.

  • LDAP Console: why are ds52.jar and ds522.jar needed?

    I updated Sun DS from 5.2 to 5.2 patchlevel 2, the server on Solaris and the LDAP Console on Windows a while ago.
    If I start the LDAP Console all is well.
    If I open the "Server Group" tree node, it wants to download admserv52.jar and ds52.jar
    which fails.
    There are admserv522.jar and ds522.jar (and others with 522 in their file name in the java/jars directory.
    If I copy admserv52.jar and ds52.jar by hand the LDAP Console is able to open the nodes under Server Group,
    but I guess they use the 5.2 and not the 5.22 Versions.
    As an experiment I removed all 5.2 Versions and renamed the 5.22 Versions to 5.2. Result: The LDAP Console does work and it only needs the 5.22 jars.
    Info on Main Console says Server Console 5.2
    Build 2004.007.1414
    Info an Directory Server Windows says Server 5.2
    Build 2003.143.0020(I use the german localized versions but I guess the problem is not relate to that fact)
    Question: How do I configure my setup to use only the new 5.22 Versions in the Console?
    Where did my update go wrong? Or do I really need the 5.2 and 5.22 Versions in /java/Jars?
    Thanks,
    Frerk Meyer

    By try and error I found out that even when I upgraded my
    Sun ONE Directory Server 5.2 to patch level 2, the configuration
    in the administration directory was not changed to the new
    version. So one couldn't connect with the new console
    version 5.2pl2 but used and needed the old one effectively.
    To use the 5.2 pl 2 console there need to be the following
    files in the client directory:
    <root of sun ldap console>/java/jars/
    ds522.jar (main console application)
    ds522_en.jar (english language resources)
    ds522_de.jar (german language resources, in my case, optional)
    ds522.icon (icon used in the console)
    and for the administration console:
    admserv522.jar
    admserv522_en.jar
    admserv522_de.jar
    admserv522.icon
    The old file with the '52' in their name may stay where they
    are to connect to unpatched 5.2 Servers and 5.2pl2 Servers
    without updated configuration.
    The configuration is under:
    cn=ResourceEditorExtension, ou=4.0, ou=Admin, ou=Global Preferences, ou=zentrale.edekanet.de, o=NetscapeRoot
    Search for the attribute 'nsclassname' in all subentries where there
    is a substring '@ds52.jar' and change it to '@ds522.jar'.
    With newer versions of the Sun Directory Server there are
    even jar files with names like 'ds523.jar'. Proceed like above.
    After the next start of the console you are using the new 5.2pl2
    Versions with all bugfixes and enhancements. To verify you may
    move the '52' files away, start and connect. If the directory server
    is configured the right way it won't try to download the '52' files
    to your local computer.
    Frerk

  • .jar netbeans

    hello all,
    I created a jar file using netbeans put in a classpath for a database driver (derby.jar). There are also 8 classes in this jar file, i specified which main should start everything is working perfectly. But some of the classes access audio and images in the jar file, but i get an exception saying that i am missing these files but they are in the jar file! Anyone know why?
    This is how the class access these files:
    AudioStream sound1 = new AudioStream(new FileInputStream("Test.wav"));And this is the exception:
    Exception in thread "main" java.io.FileNotFoundException: Test.wav (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at Splash2.sound(Splash2.java:89)
            at Splash2.<init>(Splash2.java:40)
            at Splash2.main(Splash2.java:124)Will appreciate any help since i really need to get this to work.
    Thanks all

    I have had this problem before also, the way i got it to work was using:
    AudioClip sound1 = Applet.newAudioClip(this.getClass().getClassLoader().getResource("SomeSoundFile.wav"));
    //It also works for getting images out of a jar file:
    ImageIcon imgicon = new ImageIcon(this.getClass().getClassLoader().getResource("SomeImage.gif") );
    Image img1 = imgicon.getImage();Calling this.getClass().getClassLoader().getResource("SomeImage.gif") returns a java.net.URL to the image in your jar file, then you need to call something that can accept a URL and get an image out of it (for example, I used ImageIcon for simplicity). (Note that you need to call it from an instantiated class, and not your main method, you would most likely make this call in a media loader class or something)
    The actual filename you submit as the getResource string is the path to the resource from the root jar directory, so if you had an image folder, you would just need to use something like "images/SomeImage.gif"
    Good luck, I hope this helps

Maybe you are looking for

  • ALBPM issue MP5 pack not getting installed

    Hi All, Recently we faced an issue under our project which has an ALBPM 6.0 project as its worklist app. We were not able to create participant for thr project to be more than 500. Somehow we got a support issue fix call telling us to install ALBPMs

  • Please help with chart query

    Hello, i am trying to display a line chart, for some sales data. I want a line (series) for each product, X axis should be the years in the data (2007, 2008, 2009 there is no more data than these years) The plan is to eventually use a "Function Retur

  • Read file for Compression

    Hi all, Had an idea on a homebrew compression routine and have been trying to test the results. But can't find any basic info on how to do the following. 1. Read any type of file and convert it to its basic numericl value 2. convert the numerical ver

  • Installed new hard drive now iTunes will not load my purchases on my iPod

    I installed a new hard drive on my computer and successfully transferred all my files to the new hard drive. The first time I tried to sync my iPod a message appeared that my iPod would have to be reformatted to operate with this version of Windows.

  • Homeshare login problems with my new Apple TV (2nd gen)

    My Apple ID is my first name, a space and then my last name. The problem is when I attempt to login, there is no space button (button is occupied by the "dot com" button). The underscore button and the dash button do not work. I spoke with tech suppo