Java -jar NewOW.jar

Hello!
I get an error when trying to run my apps jar ...
Directory of F:\Documents and Settings\Richard\NewOW\dist
01/17/2006  07:38 PM    <DIR>          .
01/17/2006  07:38 PM    <DIR>          ..
01/17/2006  07:38 PM           595,646 NewOW.jar
               1 File(s)        595,646 bytes
               2 Dir(s)  46,755,405,824 bytes free
F:\Documents and Settings\Richard\NewOW\dist>java -jar NewOW.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G
roupLayout$Group
F:\Documents and Settings\Richard\NewOW\dist>I dont know what I need to check from this error
runs fine in the IDE
Thanks!

Just as reported, Java can't find
org/jdesktop/layout/GroupLayout$Group because
you aren't providing it. You must place a copy in
your NewOW.jar and create a Class-Path: entry in the
manifest file.
If your're going to use NetBeans, you really need a
good understanding of classpath and jars, and what
the IDE will do, and what you have to do.
If you replace your NB beta version with the RC1
version, it will do more for you.Running RC1 now ..... and jar run just great without me changing anything!

Similar Messages

  • Error while running (java -jar orion.jar -install)  Need yr help ?

    Hi,
    I have
    Win 2000 Professional
    Oracle 9i release 1and have the Pre-Requisites of MapViewer as follows.
    OC4J_extended (Pre-Requisite for MapViewer)
    XML Parser (Built-in OC4J)
    Oracle 9iI don't know whether I have Oracle Client or not which is also pre-requisite for MapViewer ? I think it is built-in with any of the above... most probably with Oracle 9i !!!
    I have JDK1.3 as wellI have Oracle9iAS release 1.0.2.2.2a, but I don't want to use it, as I have OC4J standalone...
    I want to have the configuration, for using Oracle Spatial/MapViewer.... How can I do that ? I need steps/procedure...
    I am having problems in configuring OC4J which I have downloaded. I have unzipped OC4J_Extended in Oracle 9i Database home directory (not in Oracle 9iAS home directory... because I dont have installed iAS)
    Its installation guide asks for installation through the following command
    java -jar orion.jar -installbut after unzip, I don't get any file named "orion.jar"
    What should I do ? Where am wrong ? Should I have to use 9iAS for using MapViewer in any case, if so which version ? I need the heirarchy of steps ?
    I m really stucked !!!
    Any help would be highly appreciated.
    Thanx
    Zaaf.

    Hi,
    If you are just using OC4J, you should only need to do:
    java -jar oc4j.jar -install
    Also note that you should not install oc4j in the oracle_home
    directory. If/when you upgrade oracle to apply patches, etc
    it will overwrite/cause problems with your oc4j install if you
    put it in the oracle_home directory. Put it in any other directory.
    The only part of Oracle9iAS needed to run mapviewer is oc4j.
    After that is installed, then follow the instructions in the MapViewer
    User's Guide (available on OTN).

  • Getting error while running command java -jar oc4j.jar -install

    java -jar oc4j.jar -install
    ON RUNNING The above command getting below error , is it because Java home is not set?
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: oc4j.jar
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __gcj_personality_v0 (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    at JvRegisterClasses (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
    navisdb.igglobal.com(express)$ javac
    ksh: javac: not found
    ENVIORNMENT DETAIL : RED HAT LINUX ENTERPRISE EDITION
    Extracted OC4J_extended.zip file at oracle 10g installation location.

    does this command work?
    /home/oracle:MCSE>gij --showversion
    gij (GNU libgcj) version 3.4.6 20060404 (Red Hat 3.4.6-11)

  • Java Access Helper Jar file problem

    I just downloaded Java Access Helper zip file, and unzipped, and run the following command in UNIX
    % java -jar jaccesshelper.jar -install
    I get the following error message, and the installation stopped.
    Exception in thread "main" java.lang.NumberFormatException: Empty version string
    at java.lang.Package.isCompatibleWith(Package.java:206)
    at jaccesshelper.main.JAccessHelperApp.checkJavaVersion(JAccessHelperApp.java:1156)
    at jaccesshelper.main.JAccessHelperApp.instanceMain(JAccessHelperApp.java:159)
    at JAccessHelper.main(JAccessHelper.java:39)
    If I try to run the jar file, I get the same error message.
    Does anyone know how I can fix this?
    Thanks

    Cross-posted, to waste yours and my time...
    http://forum.java.sun.com/thread.jsp?thread=552805&forum=54&message=2704318

  • Java -jar application.jar not finding file?

    I have an application program that contains the
    following two lines of code:
    FileInputStream sf = new FileInputStream "CustomWorld.ini");
    settings.load(sf);
    and when I run it as:
    java application
    it runs fine but if I run it as:
    java -jar -classpath .;application.jar application.jar
    it can't find the "CustomWorld.ini" file. Why is that
    and how can I fix it?
    Many thanks for your help.
    PS: to create the jar file I used:
    jar -cvfm application.jar application.mf application.class CustomWorld.ini

    Once your CustomWorld.ini file is in the jar, you can no longer access it directly with a FileReader. JDK 1.1 included resource locators to java.lang.Class...
    URL url = application.class.getResource("/CustomWorld.ini");
    if (url != null) { // resource was found
       InputStream in = url.openStream();
       settings.load(in);
    } else {
       // fail gracefully or use defaults
    }Note that the CustomWorld.ini file will need to be in the classpath or the root folder of the jar file for this to work.
    Regards,
    -Troy

  • Java -jar OrgFormatter.jar

    Hi All,
    I'm very new to Java. I'm trying to run this jar file and getting following error.
    java -jar OrgFormatter.jar VarshaTest060404.txt varshatest
    Failed to load Main-Class manifest attribute from OrgFormatter.jar
    OrgFormatter file takes two arguments <input file> and <output file>
    Please help me here.
    Thanks much
    Var

    if it doesn't work( the think is about the creating manifest file) you should study on the manifest files. I am wathching this topic

  • Java -jar -myApp.jar works but ....

    Hi there,
    I have a problem : using ant, I have exported my application into an executable jar file.
    When in the console, I type "java -jar myApp.jar" . Everything works well.
    But if, I do double click on the jar file, nothing happens. In fact, I can see a new Instance of javaw.exe in the "task manager" but nothing happens.
    It's kind of weird ...
    Has anybody an idea about that ??
    thanks in advance
    sylvain_2020

    I am having a similar problem.
    java -jar foo.jar works great, but double clicking seems to hang the app at a certain point.
    Unable to figure out what's going on, I've been putting some "JOptionPane.showMessageDialog()" calls to see how far it's getting. It appears to be hanging up when it tries to instantiate one of my classes that extends JPanel. I have a dialog appear right before calling the constructor (and I see that one), but I don't see the dialog that's in the constructor as the first executed line (so that it must hang up somewhere before that). I've also removed all constructors from the attribute declarations. That made me think it had something to do with the constructor of JPanel, over which I have no control.
    However, I can instantiate JPanel no problem.
    What the heck is going on???

  • Java -jar Test.jar  option is not identifing the CLASSPATH on UNIX BOX

    Hi All,
    java -jar Test.jar
    I am trying to execute Test.jar file using -jar option. I am able to excute the Test.jar file but it is not identifing the CLASSPATH set for other JAR files which is used in part of Test.jar. Saying java.lang.NoClassDefFoundError: for the class which are set in CLASSPATH.
    The same is able to identify the CLASSPATH if i excute the Test.class file directly with out -jar option like
    java Test. In this case everything is working fine.
    Can any one tell me why it is not identifying the classpath if i use or execute with java -jar Test.jar option.
    Thanks,
    sha

    When you use the -jar option, the only classpath that is used is the Class-Path in the manifest file of the jar. If there is no Class-Path, then only the jar is searched for classes. If there is a Class-Path, the paths must be relative to the jar file.

  • Java -jar oc4j.jar -properties

    hi,
    I run following this one. i got a error please rectify that
    java -jar oc4j.jar -properties
    *09/05/13 16:11:11 Invalid jsp taglib location: C:\Documents and Settings\nvinodh*
    *\Desktop\oc4j\j2ee\home\%s_javapOracleHome%\j2ee\home\jsp\lib\taglib does not ex*
    ist or is not a directory
    09/05/13 16:11:11 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    thanks
    with regards

    Greetings,
    From the error listed it appears that you have a path that is specific to your development machine which does not exist on your server. It is good practice to avoid placing jars and libraries that your application is dependent upon in directory structures which only exist on your development machine. So if you have oc4j on your dev box, put the taglib in a path relative to an ORACLE_HOME environment variable and deploy taglibs to same on the server.
    -Michael

  • Java classes in Jar and Cab files

    Hello all,
    Our product supply java classes in Jar and Cab files that the browser downloads each time.
    The files are big and it takes a long time.
    Do you know of a way to make the cab/jar files be copied in to the user computer and that the browser would know to download files again only if there is a new version (otherwise take it from the local computer)
    Please help me
    Tamg

    I think I've seen an option for this with manifest files (or was it something that had to do with the java plug-in). There was something about the version and only download a new version if it was newer than the one on your local computer. This version thing is something you define in the manifest file at least. Take a look at jar and manifest files, there might be something there.

  • Java.io.FileNotFoundException: JAR entry META-INF/wsdl/....

    Hi Guys!
    I am having the following problem with my webdynpro java application on CE 7.1:
    In one of my dc's i am calling another dc which is an ejb. The called ejb calls a webservice.
    (my dc --> ejb --> webservice)
    My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Although I am getting a deploymentexception when I try to deploy my dc:
    Caused by: java.io.FileNotFoundException: JAR entry META-INF/wsdl/....*.wsdl not found in /usr/sap/..../..wscl.war
    I have no idea where I should put the wsdl file ...
    Hope anyone can help me.
    Cheers,
    Andi

    Sir
    If I am not wrong you itself had mentioned that : My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Now I wanted to know about your workaround also request you to go at metadata file of your DC and chck that whether it contain the reference of the EJB or Webservice.
    One more point  : exception is FileNotFoundException so might you have manually put the reference of WSDL url/uri inside EJB xml file ??
    Best Regards
    Satish Kumar
    Edited by: satish jhariya on Mar 24, 2010 2:20 PM

  • Is it possible to zip and use java file in jar?

    there are 2 cases:
    1. only zip no-package java files in a jar file:
    i.e.
    ------------zip
    NoPack0.java (they are no package)
    NoPack1.java
    NoPackN.java
    ------------as NoPack.jar
    2. zip both no-package and packaged java files in a jar file
    i.e.
    ------------zip
    NoPack0.java
    NoPackN.java
    pack\HasPack0.java (they are packed in 'pack')
    pack\HasPackN.java
    ------------as HasPack.jar
    my question is:
    for 2 cases above, if both, one or none of them can be use as a jar file in -classpath for javac compiler?
    thx

    has my Q been answered?

  • How to run Java App in Jar file

    I can run Java App jar-ed into 1 jar file with java -jar App.jar
    But sometimes I need to jar only the app and bind the other classes from different place. So I tried to use:
    java -classpath c:\utils.jar -jar App2.jar
    where classes in App2.jar link to utils.jar. I just can't make it work. Any idea/help.
    thanks
    -ho

    hi HasanOen
    u need to edit the manifest file in yr JAR file u can do this by using the following cammand or by making the batch file but make sure all the files are in same folder.
    first of all u need to make a text file like below
    /////////// first file name: "THIS.txt" /////////
    Manifest-Version: 1.0
    Created-By: java // whatever here
    Main-Class: PUT YOUR MAIN CLASS NAME HERE (like MAIN)
    //////////////////// BATCH FILE "RUN.bat" //////////////
    jar cmf This.txt App2.jar MANIFEST.mf com
    com is the folder where your all the class file are.
    now double click the run.bat file. this will edit yr manifest file.
    hope this should work for u
    Note : Make sure yr jar file, txt file, bat file, and yr classes folder is in the same folder(I mean at same level)
    regards
    Satinderjit

  • Sun Java Classes  in Jars?

    Hi,
    Do we require to put all sun classes required by application like JButton, JTextField etc in Jars, that would be downloaded by JWS. I dont have such jars now and I dont see my application running.

    No you don't need to.
    One way to check if you have included all files into the jar is to run your application from the jar.
    java -jar myapplication.jar
    of course you have to add manifest file into jar.

  • Error when testing java -jar whitelist.jar -help

    I found an error when executing this commande
    C:\oracle-javacloud-sdk\lib>java -jar whitelist.jar -help
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/cloud/
    scanning/cli/ScannerMain (Unsupported major.minor version 50.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            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$100(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)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    what can be the origine of this error
    Thanks

    Try using JDK 1.7 - (version 51.0) as I have no problem running with 1.7.0_21
    /michael

Maybe you are looking for

  • After effects import failing and crashing

    After effects CC 2014.1.1 on imac i7 running OSX 10.10.1 Any actions within after effects evokes an error "warning undo group mismatch, will attempt to fix" This often either crashes software or deletes without trace all imported recent files. A conn

  • What is the best way to transfer libraries from Aperture?

    Hi, Apologies for what must be an increasingly common question. I've searched the forum but all I could get were returns from early 2013 and previous. I am asking this question because the offered tool on this site has an appalling rating after 37 re

  • Unable to import iPhone photos to iPhoto

    Hi everyone. Im on iPhoto 7.1.5, when I plug my iPhone into the computer and then open iPhoto, there is no option to import photos, I have in the past imported photos from the iPhone into iPhoto, but now for some reason it wont give me an option to i

  • WD My Book 2TB Drive & Type3 BT Hub

    I have a 2 TB hard drive that is formatted to NTFS. When Formatted to NTFS the router says "File type not supported" When the hard drive was formatted to FAT32 it worked fine but only with XP, does not work with Vista or Win 7. Is there a setting tha

  • Itunes drag n drop help

    I have some movies that I want to put on my computer. However, I cant put them into my computer because the movie section in Itunes just tells you to buy it. "Feature films and home movies you add to Itunes appeaer in Movies in your Itunes library. T