Jar  don't  run - NoClassDefFoundError

Hi,
my application is running. But when I run the jar file I get this error:
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: javax/xml/transform/TransformerFactory
at de.cas.mercatorintegration.MappingTransform.mappingTransform(MappingTransform.java:66)
I think this is a classpath problem but I don't know how to solve.
I want that the needed jars like e.g. xml-apis.jar are also in the jar-file so I can deliver it as a whole to the customer.
All data files are in the directory 'de/cas/mi'
The libs are in the directory 'lib'
The manifest file looks like this:
Main-Class: de.cas.mi.Main
Class-Path: lib.js.jar lib.bsf.jar lib.xml-apis.jar lib.xercesImpl.jar lib.xmlParserAPIs.jar lib/xalan.jar lib/xerces.jar
The first part of the application works and the user interface starts. But when the first time a jar from the lib-directory is used then the error occurs.
I used this command:
java -jar Jarfilename.jar
Has somebody an idea to solve the problem?
Thanks
Frank

roll back. found the solution in this news group : forum=22&thread=161143
danke
franke

Similar Messages

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    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)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • Using JAR file in running application and POI !

    Hi all
    I am trying to use POI HSSF f(for the first time, So pls bear with me!)or creating excel file from my java Application. I am using the jar file :
    poi-2.0-RC2-20040102.jar. Not sure if its the correct one. So If I am wrong pls correct me.
    Now I am creating a bat file to compile my application:
    @echo off
    C:\jdk1.3.1_04\bin\javac -classpath C:\POI\poi-2.0-RC2-20040102.jar MyApp.java
    pauseIt compiles fine. Now If I try to use the jar file in run.bat for running my application, it says NoClassDef FoundError:MyApp. Here is my run.bat
    java -classpath C:\POI\poi-2.0-RC2-20040102.jar MyApp
    pauseI am not able to run my application with this run.bat file . If I change the content to:
    "java MyApp.java"
    It runs but give me error: NOClassDefFoundError:import org.apache.poi.hssf.usermodel.HSSFWorkbook
    Pls suggest me about how to use jar file in running my app and how to rresolve workbook finding problem.
    Reagrds

    Try this:
    java -classpath .;C:\POI\poi-2.0-RC2-20040102.jar MyApp
    pauseNote the "dot semi-colon" at the start of the CLASSPATH. That puts the current directory in the CLASSPATH, which is where MyApp.class lives. (No package, right?)
    See if that works better.

  • I am trying to edit my music list and then sync it to my iPhone 5 so I don't run out of storage space. However, I see the check marks on the iTunes library but am unable to uncheck them? How do I manually edit what will be synced to my phone?

    I am trying to edit my music list and then sync it to my iPhone 5 so I don't run out of storage space. However, I see the check marks on the iTunes library but am unable to uncheck them? How do I manually edit what will be synced to my phone? (the check marks are not bolded, does this mean they are not in my library but only on my phone?)

    You uncheck the music in your iTunes library on your computer and along with sync only checked songs and videos selected under the Summary selection for your iPhone sync preferences with iTunes, only checked songs in your iTunes library will be transferred to your iPhone or remain on your iPhone and the unchecked songs in your iTunes library that are currently on your iPhone will be removed when syncing.
    Or make use of iTunes playlists and choose selected playlists, albums, artists under the Music selection for your iPhone sync preferences with iTunes and select the playlists below that you want transferred to your iPhone.

  • After updating to iOS 8.0.2, videos on YouTube and Facebook don't run

    I Have updated my iPad to iOS 8.0.2 - now videos on both Youtube and Facebook don't run - why?

    Hello there, Ad.
    The following Knowledge Base article offers up some great steps for troubleshooting issues with apps installed on your iOS device:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Applets which don't run

    Hello,
    I have any applets which run with Appletviewer or the development tool "Forte for Java" but they don't run on the web browser whereas I have others applets (with almost the same code) which run in the both cases.
    In fact, on the web browser, you can see the static components (buttons, choices...) but these ones have no effects.
    And, the access to the database seems not to run.
    I think it's an problem which doesn't come from the code but I don't know what.
    Can you help me ?
    Thank you.

    Browsers have in-built support for JDK 1.1 If you are using packages not suported by JDK1.1 for example Swing, the applets won't work without downloading a plugin. The first thing you should do is check if you are using packages not suported by the JDK1.1 Also check if your browser does use a plugin.
    You can download the plugin from this site:
    http://java.sun.com/getjava/download.html
    When you are downloading the plugin you can specify that it is used by your browser by default. This means that you do not have to modify your HTML file.
    The following is relevant if you intend to put your applet up on the web:
    The user may not have their browser set up to automatically use a plugin. This means that you may need to convert your HTML file so that the plugin is used to run the applet and it works corrrectly for different browsers. Also if the user does not have the correct plugin your web page prompts them to download it.
    This site explains how the HTML code is modified:
    http://java.sun.com/products/plugin/1.2/docs/tags.html
    There is a way to do this conversion process automatically - by using the HTMLConverter in the bin directory of your JDK. The following site gives directions on how to use it:
    http://java.sun.com/products/plugin/1.3/docs/htmlconv_01.html
    If you are putting the applet up on the web maybe you should consider rewriting it so that it only uses packages supported by the JDK1.1 That way the user will automatically be able to view the applet without downloading any plugin and you will not need to convert the HTML file.
    I hope this helps,
    RC

  • Video downloaded don't run

    video bought on itunes don't run on ipad

    Besides what stevejobsfan0123 has said about uninstalling of MacKeeper.
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
        [running]    com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist [Click for support]
        [running]    com.zeobit.MacKeeper.Helper.plist [Click for support]
    You have an unnecessary anti-virus package (Mac OS X has its own effect anti-malware software build-in).
        [not loaded]    net.kromtech.kext.AVKauth (2.3.7 - SDK 10.9) [Click for support]
        [loaded]    net.kromtech.kext.Firewall (2.3.7 - SDK 10.9) [Click for support]
        [not loaded]    com.avira.kext.FileAccessControl (1.0.0d1 - SDK 10.9) [Click for support]
    Time since boot: one day 8:0:59
        2.83 GB    Page-outs
    That is a lot of page outs for just a day and a half of being up.  It is most likely the reason why Mac OS X terminated a lot of its daemons to give more space to what you were doing at the time.  Did you do something in the 32 hours your system was up before the EtreCheck that would account for that high pageout number?  Something that is very VERY Memory Intensive?
    You Activity Monitor Memory display has Safari consuming a lot of RAM 1.6+GB.  That is a bit high.  How may tabs do you have open?  Is it possible you have too many open, or that one of the web sites you are visiting has Javascript that is consuming lots of RAM on behalf of the web site?
    You kernel_task looked about right for 8GB of RAM. Most of that is virtual memory page tables for the apps you are running.  As a point of comparison, I have 16GB and my kernel_task is 1.25GB of RAM.
    Ahat are these processes?
        NIHardwareAgent    Application Hidden (/Library/Application Support/Native Instruments/Hardware/NIHardwareAgent.app)
        Wondershare Helper Compact    Application  (/Users/[redacted]/Library/Application Support/Helper/Wondershare Helper Compact.app)

  • Some app don´t run

    some app don´t run suddenly, any idea?

    What exact behaviors are you seeing when you attempt to open the apps? Do they bounce in the Dock at all, or only bounce once, or do you see any errors or warnings pop up?

  • Java 1.1.5 applets don't run in Netscape 6.1/6.2

    I try to access a website with java-applets.
    With Netscape 4.7x it's no problem. Java-Console says "Java 1.1.5". No java-plugin's installed.
    With IE 5.x and 6 no problem.
    Java Virtual Machine Build 3234 is installad
    Systems NT4.0 and Win2000
    With Netscape 6.1 and 6.2 those applets don't run (there is only a grey-area open where the applet should build up the content). I've seen there are couple of java-plugin's loaded in the Netscape 6 (NPOJI600.dll, NPJava130_01.dll, NPJava130_01a.dll, NPJava130_01b.dll and NPJava130_01c). As an idea I temporarly deleted them in the hope it would use JVM, as I suppose happens in Netscape 4.7x, were no java-plugin's are installed. But unfortunately it doesn't work either. It looks like Netscape 6.x can not refer to those java-components that the Netscape 4.7x uses.
    Can I get somewhere the missing old plugin (1.1.5) or is there another way to make it work?
    My search in java.sun.com told me that there seems to be no java 1.1.5 at all, so how can
    Netscape talk about 1.1.5?
    Thanks for any help....
    Peter
    PS) I have no experience in Java at all.

    Hello,
    If you look at the release notes of Netscape they mention that Netscape 6.x will not run Java codes unless there 1.3.0_01 and above
    Sometime you wonder where they get these ideas, that means that if you have an old applet it won't run with the new browser. I guess they never heard about backward compatibility
    Yanick

  • I start the computer the screen has blue vertical stripes and says that the Adobe Air application can not be found. Some of my programs don't run and say: You: Error access violation at 0x0055F525

    I start the computer the screen has blue vertical stripes and says that the Adobe Air application can not be found. Some of my programs don't run and say:
    You: Error access violation at 0x0055F525. I reinstalled Adobe Air. No change. I went to the Adobe webside and they said to repair it with a program. I bought RegCure. Didn't change anything. What to do?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • Bridge and Acrobat pro don't run (CS6)

    I installed the Design Standard of Creative Suite 6 (Student and teacher edition) and after a time I wanted to work with Bridge and Acrobat Pro, but both don't run. The moment I click on their icon they seem like they want to start, but they just light up a short time in the task bar. I checked to start with administration rights, 32 bit and 64 bit and I started them from different sources (task bar, programs list and explorer). I'm happy about every help I can get and sorry for my maybe bad technical english!
    Greetings,
    Nico

    Thank you. I don't speak Spanish, but the translator does. I'm afraid you will have to reinstall OS X. Follow these instructions:
    Reinstall Lion, Mountain Lion, Mavericks or Yosemite without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, Mavericks, or Yosemite
    OS X Yosemite- Reinstall OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • I-tunes don't run anymore on pc. MSVCR80.dll is missing in program. the advice is to install I-tunes again and it will be fixed but after downloading I-tunes again on pc and start again program I receive  same default msg :-(

    I-tunes don't run anymore on pc.
    default msg that MSVCR80.dll is missing.
    after re instlation of I-tunes program it would be fixed but it isn't.
    somebody a solution?

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.
    iTunes 11.1.4 for Windows- Tips for Unable to install or open - MSVCR80

  • Wired 802.1x logon-scripts don't run

    I tested wired 802.1x authentication with a XP-client and a Cat 2960 switch. The authentication are configured with PEAP and MS-ChAP V2. The 802.1x authentication works well.
    The problem is that the 802.1x authentication starts after the windows logon. Due this problem, the logon script don't run.
    How can I force the 8021.x authentication befor the windows login starts?
    Regards
    Pascal

    With the XP-Client, this cannot be forced. You need to enable machine authentication. This way, network access is granted with machine credentials by the time the user logs on, and 802.1X authentication occurs during the user logon event.
    Hope this helps,

  • E2E_EXTRACTOR_CONTROLLER jobs don't run with SOLMAN EhP1

    Hi!
    I am using SAP Solution Manager 7.0 EhP1 and would like to use Solutio Manager Diagnostics functions there.
    I already installed Wily Introscope 8.0, the SMD agent. I configured all the satellite system and can already see some graphics and BI data within Workload Analysis, Change Analysis.
    My problem is that since almost one month no E2E_EXTRACTOR_CONTROLLER jobs
    are scheduled in SOLMAN.
    Question:
    Can some one explain how to schedule these  jobs in order to see actual data for WA, CA, etc.?
    What I already done:
    I run several times again the SMD Setup for Managing and Managed system without any errors
    I traced the entries in table E2E_ACTIVEEXTR (set for all the entries the "x" flag in field "Active")
    I have a look int the table E2E_ACTIVE_WLI. This table is not empty and contains a lot of entries.
    I have a look int the table E2E_ECSTATUS . This table is not empty and contains a lot of entries.
    It will be great to get some helpful information
    Thank you very much

    Hi!
    Many thanks for your response.
    Unfortunately when I access to
    http://<host>:<port>/smd  I can see only Diagnostic Setup tab.
    Question:
    Do you know whether with EhP1 the Extractor jobs are also calling "E2E_EXTRACTOR_CONTROLLER"?
    How can I manually schedule these jobs?
    Thank you very much!
    regards
    Holger

  • GPO don't run specified windows applications doesn't work to in win 8.1. any ideas why?

    GPO "don't run specified windows applications" doesn't work to in win 8.1. any ideas why?  it is enabled and list of progs is entered however I can still run all progs on list.  This is a local machine not on a domain.  I must
    have this work to disable games, IE, MSpaint, etc.  Computer has been restarted since enabling the GPO and also have enforced the GPO via CMD prompt.  worked fine on windows 8 and 7.

    Any success ?
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

Maybe you are looking for

  • Assamese language India in Adobe PageMaker 7 in Windows 8.1 Pro x64 environment

    How can I type 'Assamese language, India' in Adobe PageMaker 7 in Windows 8.1 Pro x64 environment ? http://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/assamese-language- india-in-adobe-pagemaker-7-in/3f97fbde-332c-48f1-a7f0-62f61

  • Adobe Reader could not open 'filename.pdf'" because it is either not a supported file type...

    I have a website that holds 23 different PDF's. They all download fine and open correctly when downloading from a Mac computer. They even download and open fine from a Mobile Phone. However my client is getting an error over and over again. I have te

  • Only "single display" possible

    i have a problem with my gf4 mx440! everything runs fine on my old  pIII800 but i cant clone my desktop to my tv! i alway got to change my primary monitor to watch films on it.the only option i have is "single display" under nview! i already changed

  • Communication between backend - kuba dave - get

    Dear Support, i am facing some problems regarding the communication between Backend and SRM/GeT. We want to change the quantity on PO (the PO has been already fully confirmed by GR) it is not accepted in SRM/ GeT This is transported by XML Please cou

  • Ccms agent on server with : FreeBSD, Linux ?

    Hi. i want to know if it's possible to manage a server with OS : - FreeBSD - SuSe - RedHat with SAP ccms agent. For example : it's possible to install a ccmsping on a server that have a FreeBSD like OS ? i know that it's possible with ubuntu. Thanks