Problem generating jar file

Hello everybody,
I have a problem with the generation of a jar file.
The script should run from the command line with a parameter but i get every time this error message when i try to run it:
Call is like that:
java -jar new.jar "some path parameter"
Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/ui/ApplicationFrame
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jfree.ui.ApplicationFrame
        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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
Could not find the main class: real_cell_search.Verify_TestRun. Program will exit.It seems that it cannot find the ApplicationFrame.class, but it is inside the jar file, inside the jcommon-1.0.16.jar which is included in the generated jar.
The *.classpath* file looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
     <classpathentry kind="src" path="src"/>
     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
     <classpathentry kind="lib" path="res/jcommon-1.0.16.jar"/>
     <classpathentry kind="lib" path="res/jfreechart-1.0.13.jar"/>
     <classpathentry kind="output" path="bin"/>
</classpath>I am generating inside Eclipse, can someone tell me what I am doing wrong?
Thanks in advance for your help!!!
greetings
nyyrikki

nyyrikki wrote:
It seems that it cannot find the ApplicationFrame.class, but it is inside the jar file, inside the jcommon-1.0.16.jar which is included in the generated jar.For standard jars to be execute using
java -jar generted-jar.jar
one cannot include dependent jars in the generated jar. Eclipse has a jar-in-jar extension to allow this so check the Eclipse documentation.

Similar Messages

  • Adogjf Unable to generate jar files under JAVA_TOP error while patching

    Hi,
    I'm upgrading my version of Java from 1.3.1_19 to 1.5.0_17. I downloaded the jdk-1_5_0_17-linux-i586.bin file and unpackaged it to /u0/<SID>/<SID>db/10.2.0. It unpackaged it to a new directory jdk1.5.0_17 (/u0/<SID>/<SID>db/10.2.0/jdk1.5.0_17), whereas the old version is in a directory jdk (/u0/<SID>/<SID>db/10.2.0/jdk).
    Having done that I had to run an interoperability patch (4372996). Upon running this patch I received an error at the end:
    adogjf() Unable to generate jar files under JAVA_TOP
    There were no other errors.
    I think the problem has to do with where my new java version is located but I'm not sure. I'm thinking that it's still looking under the old JAVA_TOP (/u0/<SID>/<SID>db/10.2.0/jdk) when I want it to look under the new JAVA_TOP (/u0/<SID>/<SID>db/10.2.0/jdk1.5.0_17). So, should I move the contents from the new directory (jdk1.5.0_17) to the old directory (jdk) or is there a way to 'point' it to the new JAVA_TOP.
    Please let me know if I'm totally off base and there's another solution. We're currently on EBS 11.5.10.2, DB 10.2.0.4 and RHEL 4 Update 5.
    Thanks,
    Lia.

    Here you go. Hope this helps you to help me :-). Thanks.
    +
    ** Generating the product JAR files...
    STRT_TASK: [Generate JAR files] [] [Fri Mar 27 2009 09:20:32]
    STRT_TASK: [Generate JAR files under JAVA_TOP] [] [Fri Mar 27 2009 09:20:32]
    Signing product JAR files in JAVA_TOP -
    /u0/mary/marycomn/java
    using entity Customer and certificate 1.
    Calling /u0/mary/marycomn/util/jre/1.1.8/bin/jre ...
    Successfully created javaVersionFile.
    Generating product JAR files in JAVA_TOP -
    /u0/mary/marycomn/java with command:
    adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @/u0/mary/maryappl/admin/mary/out/genjars.cmd
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
    Temporarily resetting CLASSPATH to:
    "/u0/mary/maryappl/ad/11.5.0/java/adjri.zip:/u0/mary/marycomn/util/jre/1.1.8/lib/rt.jar:/u0/mary/marycomn/util/jre/1.1.8/lib/i18n.jar:/u0/mary/marycomn/util/jre/1.1.8/lib/tools.jar:/u0/mary/marycomn/java/appsborg.zip:/u0/mary/marycomn/java/apps.zip:/u0/mary/maryora/8.0.6/forms60/java:/u0/mary/marycomn/java"
    Calling /u0/mary/marycomn/util/jre/1.1.8/bin/jre ...
    The JDK version is 1.1.8
    Validating the files/directories specified for -areas option
    Validating the files/directories specified for -outputSpec option
    Validating the directory specified for -lstDir option
    About to Analyze the input areas : Fri Mar 27 2009 09:20:36
    WARNING: Will not load stale resource unit META-INF/services/javax.xml.parsers
    WARNING: Will not load stale resource unit META-INF/services/javax.xml.transform
    Done Analyzing the input areas : Fri Mar 27 2009 09:20:43
    About to Analyze/Generate jar files : Fri Mar 27 2009 09:20:43
    About to Analyze fndnetcharts.jar : Fri Mar 27 2009 09:20:43
    Up-to-date : fndnetcharts.jar
    Done Analyzing fndnetcharts.jar : Fri Mar 27 2009 09:20:44
    About to Analyze fndtdg.jar : Fri Mar 27 2009 09:20:44
    Up-to-date : fndtdg.jar
    Done Analyzing fndtdg.jar : Fri Mar 27 2009 09:20:44
    About to Analyze fndjgl.jar : Fri Mar 27 2009 09:20:44
    Up-to-date : fndjgl.jar
    Done Analyzing fndjgl.jar : Fri Mar 27 2009 09:20:45
    About to Analyze fndjle.jar : Fri Mar 27 2009 09:20:45
    Up-to-date : fndjle.jar
    Done Analyzing fndjle.jar : Fri Mar 27 2009 09:20:47
    About to Analyze fndlrucache.jar : Fri Mar 27 2009 09:20:47
    Up-to-date : fndlrucache.jar
    Done Analyzing fndlrucache.jar : Fri Mar 27 2009 09:20:47
    About to Analyze fndgantt.jar : Fri Mar 27 2009 09:20:47
    Up-to-date : fndgantt.jar
    Done Analyzing fndgantt.jar : Fri Mar 27 2009 09:20:47
    About to Analyze fndpromise.jar : Fri Mar 27 2009 09:20:47
    Up-to-date : fndpromise.jar
    Done Analyzing fndpromise.jar : Fri Mar 27 2009 09:20:48
    About to Analyze fndforms.jar : Fri Mar 27 2009 09:20:48
    About to Generate fndforms.jar : Fri Mar 27 2009 09:20:49
    Done Generating fndforms.jar : Fri Mar 27 2009 09:20:50
    About to Sign fndforms.jar : Fri Mar 27 2009 09:20:50
    ERROR: Javakey subcommand exited with status 1
    Javakey standard output:
    Adding entry: META-INF/MANIFEST.MF
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java Key Generation
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    Javakey error output:
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
    Successfully created javaVersionFile.
    Customer not found in database.
    java key error:
    adjava -ms128m -mx256m sun.security.provider.Main -gs /u0/mary/marycomn/java/oracle/apps/fnd/jar/fndforms.jar.tmp /u0/mary/marycomn/java/oracle/apps/fnd/jar/fndforms.jar.uns
    The above Java program failed with error code 1.
    Done Analyzing/Generating jar files : Fri Mar 27 2009 09:20:51
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    Failed to generate product JAR files in JAVA_TOP -
    /u0/mary/marycomn/java.
    adogjf() Unable to generate jar files under JAVA_TOP
    AutoPatch error:
    Failed to generate the product JAR files
    You should check the file
    /u0/mary/maryappl/admin/mary/log/4372996.log
    for errors.
    +

  • How to generate jar file?

    Dear All
    I developed a java mobile application and it contains an xml file and it works fine on mobile. But when I open it with WinRar and change some data in the xml file and then save it, it doesn�t work on the mobile. So, is there any windows application to generate jar file??
    Please help me
    Many thanks

    The trouble is, it does everything for youMore than "everything". I had Thumbnail view set in
    Windows ExplorerNo windows for me. Linux ;)
    and ended up with Thumbs.db in my
    jar. lol
    Since it was a very small app, that increased
    the size of the jar by more than 20%, which I
    consider unacceptable considering that most installs
    would be via a GPRS connection.Windows and it's crappy stuff
    and I hate it.In spite of all that, I still love it :) Expescially
    when I use 'reformat' on code posted by somebody
    newer to java than I am, just to be able to read it
    and see where the braces line up.Yes. In such cases we need it. But I still relish the console. The first IDE I used was Eclipse and now I am on Netbeans. But if any beginner uses and IDE I won't hesitate to spank him. I used the console for such a long time before shifting to an IDE. And moreover I shifted to an IDE because I have no other alternative here at office. Otherwise it would still be the console for me. But back on my laptop it's my good old buddy, the console ;)
    Using an IDE, imho, makes a lot of things easier, but
    using it blindly is, in the long run, going to create
    more problems than it solves.
    Just my 0.02, db

  • Error while generating JAR files during upgrade from 11.5.9 to 11.5.10

    Hi,
    We are getting the following issue after applying 11.5.9 CU2 patch set during the process of upgrade from 11.5.9 to 11.5.10.
    -     3171663: 11.5.9 Oracle E-Business Suite Consolidated Update 2
    Executing: /u01/app/tinst/tinstcomn/util/java/1.6/jdk1.6.0_18/bin/java -Djava.security.egd=file:/dev/urandom sun.security.tools.JarSigner -keystore ******** -storepass ******** -keypass ******** -sigfile CUST -signedjar /u01/app/tinst/tinstcomn/java/oracle/apps/fnd/jar/fnddssgraphgui.jar.sig /u01/app/tinst/tinstcomn/java/oracle/apps/fnd/jar/fnddssgraphgui.jar.uns CUSTOMER
    ERROR: JarSigner subcommand exited with status 1
    No standard output from jarsigner
    JarSigner error output:
    Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner
    Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: sun.security.tools.JarSigner. Program will exit.
    Can you please advice regarding this issue....????
    Regards,
    Sreenivasulu.

    Please see these docs.
    Generate Jar File causes NoClassDefFoundError sun/security/tools/JarSigner [ID 393306.1]
    Generating Jar Files Fails with a NoClassDefFoundError: sun/security/tools/JarSigner Error [ID 801014.1]
    Thanks,
    Hussein

  • Problem downloading JAR files after PIX 7.2(3) upgrade

    Hello, I have upgraded a PIX 515 Firewall from Version 6.3(4) to
    7.2(3) and am now experiencing problems downloading .jar files from
    some web servers. I have tried disabling the "inspect http" option but
    still not joy. I also tryied this:
    http://www.cisco.com/warp/public/110/pix-asa-70-browse.pdf
    But no luck.
    Have anyone had similar problems.
    Thanks in advance.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings
    3. Settings>General>Reset>Reset All Settings

  • Problem  in jar file creation

    I have create the jar file, but it show the following error mesage since i start to run it.
    Java Virtual Machine Laugcher
    Failed to load the main class manifest attribute from
    E:\j2sdk1.4.2\bin\test.jar
    What the problem for this?
    my manifest.mf file contain the information
    Manifest-Version: 1.0
    Main-Class: mysystem.MainFrame
    note, my directory is javac mysystem/MainFrame.java to run

    What's the name of the manifest file in the jar file?
    What do you get when you do
    jar tvf test.jar

  • Problem with jar file

    Hello,
    I have create successfull an executeable jar and it orks fine on my pc
    I try to run it on other pc whoe winrar is installed
    the jar can not run and the jar will be extract
    who is the problem ??????

    The problem and the solution are both the same as in your previous post about being unable to create an executable jar file (http://forum.java.sun.com/thread.jspa?threadID=744829).
    The solution is still given in the following thread:
    http://forum.java.sun.com/thread.jspa?threadID=287560&messageID=1127643
    The program is now WinRar instead of WinZip, but the solution is the same.

  • Signed applet : problem signing jar files that are in build path

    Hello,
    I have a problem while trying to create an ftp applet.
    I use org.apache.commons.net.ftp and i build path for commons-net-1.1.4.jar and then i build my classes.
    When i create a jar file with my classes and after signing it, it works under eclipse but not on a web page.
    I had signed commons-net-1.1.4.jar before to build the path in eclipse but commons-net-1.1.4.jar is not in my jar file.
    What is the way to sign applet correctly even if some jar ressources are in eclipse build path.
    Thank you

    You were right!!!
    I'm not sure what to write down in the formsweb.cfg (configuration file) , following the instructions on the on-line help of Developer Forms 10g , in step 9..
    The step 9 says...
    Because in this release the JACOB code is in an external Jar file and not incorporated into frmwebutil.jar, it needs to be downloaded. To do this, change the WebUtilArchive setting to read: webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar
    The doudt is pointed to the fact that the frmwebutil.jar isn't in the ORACLE_HOME\forms\webutil path but it is ORACLE_HOME\forms\java path.
    Also , these paths referenced in webUtilArchive are physical paths in a Unix system or they are logical paths in a url?
    Simon

  • Problems importing Jar files

    Hi
    I have tried to implement a sample version of jfreechart which is a component for graphing but unfortunatly there is an error with importing some of the libraries i have added all the . jar files to the Class Path and i have opened the .jar file in net beans so i dont know what the problem is
    Problem is with the lines
    import org.jfree.ui.ApplicationFrame;
    import org.jfree.ui.RefineryUtilities;
    It tells me that org/jfree/chart/demo/LineChartDemo1.java [60:1] package org.jfree.ui does not exist
    C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\jfreechart-0.9.16.jar;
    C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\jcommon-0.9.1.jar;
    C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\servlet.jar;C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\gnujaxp.jar
    Refereence at http://www.jfree.org/jfreechart/index.html

    Check to make sure that the jar files have the above mentioned classes.
    Do a jar -tvf to find the contents of the JAR file.
    Next check your classpath entries again. Also adding these libraries to the JDK lib directory will not automatically add them to the classpath. So check to make sure they are added and if you are using an IDE, check the command line the IDE produces (most IDE's do that) to make sure your classes are there in the -classpath option.
    Vijay

  • 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

  • Problem whit jar-file

    I made one project whit DB on NET BEANS, but when i start my jar file, who is automaticly generated by NET BEANS my DB jobs doesen't work and when i start my jar file on oder computer the images on icons disappear.

    I agree - you need to post more information.
    Check out http://forum.java.sun.com/thread.jspa?threadID=5173326 and http://forum.java.sun.com/thread.jspa?threadID=5156691&messageID=9593420 for examples.

  • PROBLEM WITH JAR FILES!!! QUICK HELP NEEDED!

    Hi guys
    What problem could I have if I can run a program with java.exe (I use JDK 1.5) but not in a JAR-File (I added the Main-Class-key to MANIFEST.MF)???
    Please answer fast!!!
    Thanks

    What problem could I haveThat depends a lot on what you did wrong. What did you do to run the Jar file, and what error message(s) did you then get?

  • Download problem on jar file

    i have put a jar file on my web server,
    and put following link in my web page
    a jar file
    i my local machine, this link work.
    my IE5.5 ask me do i want to excute it directly....
    but when i put it in to web server
    the file renamed as "abc.gtz" on download....
    why this problem come?? is this cause by the browser or the IIS server ??

    can you switch to apache?

  • Intermittent problem deploying .jar files

    OC4J 9.0.2
    Seemingly random, I get this error when I deploy a jar file
    Auto-deploying MyJar.jar (No previous deployment found)... Error compiling
    MyOC4J/j2ee/home/applications/MyApp/MyApp.jar: Syntax error in source
    To deply a jar file I do the following:
    Copy the .jar file to /applications/MyApp/ directory
    Delete the contents of /application-deployments/MyApp/MyJar.jar/
    Start OC4J
    The only way around this I have found is to keep restarting OC4J until it works, so the same .jar file will sometimes work and sometimes not.
    I have copied the same .jar file to four different OC4J environments and have had one work and three fail. Then I restart the three and have two of those work and one fail. Then I had to restart that one three more times until it worked.
    Any ideas as of what might be happening??

    I just tried the command you mentioned to start OC4J but I still get that problem.
    It's really weird because I have had this process of deployments working for months with no problem, then all of a sudden it started acting up.
    I don't think anything has changed but there must be something. I just don't know where to look.
    any other suggestions?
    -Isaac

  • I am having a problem in Jar file

    there ar my file which i have to put in jar file:-
    IeEmbed.exe
    IEInJava.class
    IEInJava.java
    jawt.dll
    jdic.dll
    jdic.jar
    nspr4.dll
    MANIFEST.MF
    my MANIFEST file code is this :-
    Manifest-Version: 1.0
    Class-Path: jdic.jar
    Main-Class: IEInJava
    my compiling code is
    D:\java\browser\IEInJava>jar cfm Browser.jar MANIFEST.MF *.*
    after this i am having error which is :-
    Failed to load Main-Class manifest attribute from
    D:\java\browser\IEInJava\Browser.jarand after using this command:-
    D:\java\browser\IEInJava>jar tf Browser.jari got this:-
    D:\java\browser\IEInJava>jar tf Browser.jar
    META-INF/
    META-INF/MANIFEST.MF
    IeEmbed.exe
    IEInJava.class
    IEInJava.java
    jawt.dll
    jdic.dll
    jdic.jar
    MANIFEST.MF
    nspr4.dll
    D:\java\browser\IEInJava>So plese solve this problem
    and tell me what is this means
    Thanks
    Edited by: myharshdesigner on Oct 30, 2007 7:48 PM

    Does your Manifest file have a blank line at the end?
    Does your application work when it is not jar'ed? Do you launch it like "java IEInjava"?

Maybe you are looking for

  • Data entered in the custom field in the SRM portal not getting saved..

    Hi Experts, I have added a custom field in Contract Screen of the SRM portal by adding the field as an append structutre in structure INCL_EEW_PD_HEADER_CSF_CTR. The custom field now appears in the header (basic data ) of the 'Process contract' scree

  • Java.sql.SQLException: This object was closed() and cannot be used anymore.

    Hello All, The code bellow works fine on our production server (WebLogic 5.1 sp12, SQL Server 7), but it fails on our development server (same configuration): Product.java 383: java.sql.ResultSet rs = null; 384: java.sql.CallableStatement cs = null;

  • Time constraint classes and  screen number for absence type

    Hi all, What should be the Time constraint classes and  screen number for absence type. The different absence types are annual leave, sick leave , study leave , personal leave, maternity leave , juryduty leave nad leave without pay etc Kindly help. R

  • Restrict size of payload for OSB Proxy

    Hi, I have a requirement where I need to restrict the size of payload my OSB Proxy should accept. Example anything > 1 MB should not be accepted. I know there we can set the HTTP " Max Post Size"  in weblogic but that would be at Domain level . I wou

  • 2 problems: either sealed violation or NoClassDefFoundError

    Hi all, i'm trying to run the JSP/XML web application mentioned by developers.java.sun.com. It consists of a jsp page, a ParserBean and a helper class. I tried to run the bean alone with a little test driver and it was all fine, but combined with the