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.

Similar Messages

  • 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 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.

  • 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 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"?

  • Problem in jar file with respect to operating systems

    Hi all,
    I am creating a jar file in windows operating system, When I deploy it in AIX machine the application is not starting up? There is any operating system specific commands to create jar files?
    Any ideas.
    Thanx in advance for your help.
    Sekhar

    I am starting the application through websphere admin
    console. When I am starting it is showing error
    message that the application unable to start.That you are using WebSphere is a very important bit of information you failed to provide!
    WebSphere can be configured to be very picky about what it allows! If your program does not require WebSphere to run then try running it outside of WebSphere.
    Also, make sure that the WebSphere container is executing using a version of Java that is compatible with your Application.

  • Problem executing .jar file

    My program was runnable before by executing the jar file and it doesn't work for some reason now. My manifest file is shown below. The error it gives is "Can't find main class, program will exit". Have I declared my main class wrong or something? It worked fine earlier.
    Manifest-Version: 1.2
    Main-Class: DHolidaysDatabase_SWiNG/SWDHolidays
    Name: DHolidaysDatabase_SWiNG/Setting.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: oWg6g03EbjaxldIbXSrTD72js3A=
    MD5-Digest: wcAFPTlHlvUxF0EqC7xyaw==
    Name: DHolidaysDatabase_SWiNG/SWDHolidays.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: oWfxPN8XfEwj9XVbud5ga0JNJp8=
    MD5-Digest: d8GH20JQt+46GDTNEJ66Gw==
    Name: DHolidaysDatabase_SWiNG/Booking.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: XQ8yb35VKGudeY3F6wAeAZUneoc=
    MD5-Digest: W9gN8T6hR0X1pMhNwowrQQ==
    Name: DHolidaysDatabase_SWiNG/Itinerary.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: 1IrzPAHQZPU/O8YYytImJRMNs48=
    MD5-Digest: QzpFCTfG2i/C27wMdLQLIw==
    Name: DHolidaysDatabase_SWiNG/
    Sealed: True
    Name: DHolidaysDatabase_SWiNG/Stop.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: kSaxqmDnhm5IcnQFuy43NKN1BmA=
    MD5-Digest: h9VwllxGY+PFAJJMyElOQQ==
    Name: DHolidaysDatabase_SWiNG/HotelDataManager.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: zUs+YJsPGVFAaezdIpvTSeKPsZo=
    MD5-Digest: gDkFwZczx3w99Gar4NS3sQ==
    Name: DHolidaysDatabase_SWiNG/DBaseException.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: nD5NlvfB7t6O8Z81kZEMK2qXeyI=
    MD5-Digest: +3YHy7dGiJAK5LLHiEQViQ==
    Name: DHolidaysDatabase_SWiNG/Hotel.java
    Java-Bean: False
    Digest-Algorithms: SHA MD5
    SHA-Digest: 1QTjvzw4Qnm0JuMJbeTmEJmSjd4=
    MD5-Digest: 8eU7VibFyYLk4CdOH436gg==

    main-class header should have a class name.
    Main-Class: DHolidaysDatabase_SWiNG.SWDHolidays

  • Problem running jar files of java in Linux

    I cannot run jar files in java/jdk1.3.1_01/demo in Readhat Linux 6.2
    The command is :--
    [root@localhost Notepad]# java -jar Notepad.jar
    java.lang.NoClassDefFoundError: javax/swing/JPanel
    at java.lang.Class.forName(Class.java:33)
    at kaffe.jar.ExecJarName.main(ExecJarName.java:58)
    at kaffe.jar.ExecJar.main(ExecJar.java:61)
    [root@localhost Notepad]#
    My ~/profile setting is :---
    PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3.1_01/bin:/usr/java/jdk1.3.1_01/jre/bin:/usr/java/jre/lib"
    export JAVA_HOME=/usr/java/jdk1.3.1_01
    export NPX_PLUGIN_PATH=/usr/java/jdk1.3.1_01/jre/plugin/i386/ns4

    [root@localhost Notepad]# java -jar Notepad.jar
    java.lang.NoClassDefFoundError: javax/swing/JPanel
    at java.lang.Class.forName(Class.java:33)
    at
    at
    at kaffe.jar.ExecJarName.main(ExecJarName.java:58)
    at kaffe.jar.ExecJar.main(ExecJar.java:61)
    [root@localhost Notepad]#
    My ~/profile setting is :---
    PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3.1_01/bin:/u
    r/java/jdk1.3.1_01/jre/bin:/usr/java/jre/lib"
    export JAVA_HOME=/usr/java/jdk1.3.1_01
    export
    NPX_PLUGIN_PATH=/usr/java/jdk1.3.1_01/jre/plugin/i386/n
    4Add the line:
    export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar
    Then, run the command "source ~/.profile" and then the jar file should be able to run.
    Bhav

Maybe you are looking for

  • How to disable Caps Lock?

    I am tired of constantly hitting the Caps Lock key by mistake. I know there is a way to disable it with a Unix command. Unfortunately, I've forgotten what it is. Please Help.

  • ICal shuts down when I edit an entry, without taking the edit

    Since installing Leopard on my Macbook, I have had a whole list of problems. Here's one: iCal shuts down when I edit an entry. In particular, I'm trying to remove an alarm from a recurring event. I click "none" and then before I can click "done" the

  • Need info about tool"/OpenSPARCT2_Arch/hypervisor/src/hypervisor-tools/bin"

    Hi, I am looking in to the source code of the hypervisor, I am looking for information on various tools used in the source code, which are located in "hypervisor/src/hypervisor-tools/bin" -rwxr-xr-x 1 durgam 25078 2284760 Nov 15 01:35 as -rwxr-xr-x 1

  • Nast table use

    Hi , what is the use of Nast table in smartforms?? when we use this table?? regards,

  • Opening URL application in same window without using plugs.

    Hi, I am working on ESS and MSS. When user click on a button , an application has to open in the same window. As it is standard application I do not want to create plugs in the windows. Please let me know is it possible or not. If yes please give me