Something wrong with jar?

Hi,
I have the following problem when I want to execute my Jar file.
The command I use is:
java -cp . -jar Drain.jar
the error:
Exception in thread "main" java.lang.NoClassDefFoundError: Drain
My jar file contains 3 classes (1 public i.e. Drain.class) Drain.class has the main method. If I dont pack the files into a jar and just submit the command:
java Drain (CLASSPATH omitted)
Everything is cool the app works!
I create the jar file with the following contents in the manifest file
Main-Class: Drain
Class-Path: C:\Program Files\jaf-1.0.2\activation.jar C:\Program Files\javamail\javamail-1.3.3\mail.jar C:\Program Files\javamail\javamail-1.3.3\lib\imap.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar
with the command:
jar cmf Manifest.txt Drain.jar *.class
The jar is created but on execution it raises the NoClassDefFound error.
Any suggestions?

three classes
PopupAuthenticator.class
ByteArrayDataSource.class
Drain.class
the contents of MANIFEST.MF after unpacking it are:
Manifest-Version: 1.0
Class-Path: C:\Program Files\jaf-1.0.2\activation.jar;C:\Program Files
\javamail\javamail-1.3.3\mail.jar;C:\Program Files\javamail\javamail-
1.3.3\lib\imap.jar;C:\Program Files\Microsoft SQL Server 2000 Driver
for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Dr
iver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Serv
er 2000 Driver for JDBC\lib\msutil.jar;
Created-By: 1.5.0_04 (Sun Microsystems Inc.)
Main-Class: Drain
the ; as a separator is there because I tried (this time ) to define the class-path in that manner. The funny thing is that the order of the headers is different than the examples I encountered in this forum. I.e. Class-path is here before Main-Class
Man I'm going nuts over this one.

Similar Messages

  • My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    If it says your billing info is wrong that means that your credit card issuer is refusing to approve your account. You will have to solve the problem with your bank or credit card company.

  • I have a Mid 2009 Macbook Pro 13 with no restore disk; it has OS 10.8.4 I believe there is something wrong with the OS due to I can not install flash player to view Youtube videos and the when we plug in a Bose headset the sound out will work sometimes

    I bough a used Macbook Pro mid 2009 that came with OS 10.8.9 it didn't have a backup restore disk with S/N W8******66D
    When trying to view some youtube videos; a window would pop up saying "it needs adobe flash player is required for video play back get the latest flash player" but after downloading the file and during installation would have errors and will not installed.....tried to reboot and install again.....but still the same.
    The othe thing I had noticed is when using a good Bose headset with mic the sound output would noticed the headset and then switch from headset to Internal speekers and headset.....thinking that there might be something wrong with the plug in port of the computer or the headset.....the headset works with no issues on my iPad so there must be something wrong with the computer.....tried to move the plugin around the port but no change....while the headset is plug in can hear a short clicking noise and the sound would get lost and back again......but with nothing plugin to the port there is no issue with the sound or mic.
    Thanks for your feed back......it looks like I have two different issues one is a software issue and the outher is a hardware issue
    <Edited By Host>

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • I'm not able to down load free apps without money on a credit card but the app is fee is this correct or is something wrong with my ipad

    I can not download apps that are free without money on a credit card. Is this right or is something wrong with my ipad

    Read here... https://discussions.apple.com/thread/5979741
    Keeka36 wrote:
    is something wrong with my ipad
    No.

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • There is always a blue screen appears after the Apple logo during the booting process. And then everything is back to normal. What is this thing? Is there something wrong with my screen or something?

    There is always a blue screen appears after the Apple logo during the booting process. And then everything is back to normal. What is this thing? Is there something wrong with my screen or something?

    Nah - that's just the normal boot process.
    Clinton

  • I synced. All my music disappeared. Now it will only sync my apps and not my music. Is something wrong with the port on my ipod, the USB cord, or Itunes?On Itunes it says I still have all my music. :(

    I synced my ipod to my computer and all my music disappeared. I tryed resyncing it and it would only sync my apps and not my music. I cant add music to my ipod. I something wrong with the USB port in the IPOD, the USB Cord, or ITUNES itself. Itunes still shows that all my music is there on my ipod. Itunes is recognizing that my ipod is connected, but it doesnt recognize that theres no music on my ipod anymore. Im so sad. Someone please help me. I miss my music.

    The music sync is one way - computer to ipod.  The only exception is itunes purchases.
    The ipod is not a storage/backup device.  It simply mirrors the selected content of your computer.
    As the music came from your computer in the first place, it should still be there and in your backup copy of your computer.

  • "The file 'Acknowledgements.rtf' cannot be installed because the file cannot be found in the cabinet file 'iTunes.cab'.  Is there something wrong with the latest installer? (11.3.1)

    Getting error message as shown: "The file 'Acknowledgements.rtf' cannot be installed because the file cannot be found in the cabinet file 'iTunes.cab'.  Is there something wrong with the latest installer? (11.3.1)

    Installs fine for me, so I'd guess you got an incomplete or corrupt download. See the Further Information area of Troubleshooting issues with iTunes for Windows updates for direct links and download a fresh copy of the installer.
    tt2

  • Something wrong with my CD/DVD drive??

    I think there is something wrong with my CD/DVD drive. here are the things I notice:
    At time the CD drive will act up and make a little noise (same normal noise as when mac starts up) but for no reason
    When I put my mac on stand by, my CD drive decided to make some noise and then it woke the computer from sleep mode
    Any suggestions? What could be the problem here?
    Thanks.
    Dorian

    well i live in a small town so finding an apple repair service is out of the question....but i will probably just make an appointment....now my biggest problem is i cant find the receipt from best buy where i bought it from. but as soon as i got home and turned it on i registered it online and when i went to check it earlier and typed the serial number it says its still under limited warranty until january 18 2008...can i just tell them the serial number since i dont have the receipt anymore or will they charge me since i dont have the receipt? should i just buy applecare before i make an appointment and bring it in? thanks for all of your help

  • I just purchased Final Cut Pro X and I want to burn a dvd but the tabs do not see the option of SHARE. Is there something wrong with my Final Cut Pro X?

    I just purchased Final Cut Pro X and I want to burn a dvd but the tabs do not see the option of SHARE. Is there something wrong with my Final Cut Pro X?

    It's also under the File menu.

  • Just got an Ipad and am working on setting it up.  the one issue I am having with it is my screen will not rotate no matter what I do to the settings, I can't figure out if the settings are wrong or if there really is something wrong with my Ipad.

    just got an Ipad and am working on setting it up.  the one issue I am having with it is my screen will not rotate no matter what I do to the settings, I can't figure out if I have a setting wrong or if there really is something wrong with my Ipad.  any help would be greatly appreciated.

    Double click the home button (square)  and all the things you did are there.keep sliding the bar that will come up on the bottom to the left till it cant go anymore there should be a icon looking like this.press that and it should work
    Good luck hope it works.

  • Is there something wrong with this table row definition?

    I have am supporting a coldfusion app that manipulates several forms.  One one particular page, there is a form that consists of several tables.  The last 3 lines of the last table are
        <tr>
                <td height="35" align="right" valign="middle">Description:</td>
                <td align="left" valign="middle"><input name="tmpPurpose" class="RptStd" size="70" maxlength="100" value="" onblur="document.ExpnDtl.Purpose.value = this.value;" onchange="ChkName(<cfoutput>#Session.CCWarn#</cfoutput>)" /><input type="hidden" name="Purpose" value="" />
                             <a href="#" id="aDesc" onclick="ShowHelp('9')" style="border:none; display:inline; padding: 0px 0px 0px 0px"><img src="/images/Help_Icon.gif" height="14" width="13" border="0" /></a>
                            </td>
          </tr>
          <cfif IsDefined("form.ExpnsCntrb")>
              <tr id="CntrbErr">
                   <td colspan="2" class="Error"><cfoutput>#form.ExpnsCntrb#</cfoutput></td>
              </tr>
          </cfif>
          <tr id="expnContrib">
                  <td align="left" valign="middle" height="35" class="RptStd" colspan="2">Is expenditure a contribution to a candidate, officeholder, or political committee?    <input type="radio" name="rdoCntrb" value="Y" /> Yes    <input type="radio" name="rdoCntrb" value="N" /> No</td>
           </tr>
          <tr id="COHInfo">
              <td colspan="2" class="RptStd" align="left" valign="middle" height="35">
                  <input type="checkbox" name="chkCand" id="chkCand" value="X" onclick="if (this.checked) document.ExpnDtl.btnCOH.disabled = false; else document.ExpnDtl.btnCOH.disabled = true;" />Direct expenditure to benefit a candidate or officeholder    
                  <input type="button" name="btnCOH" value=" Enter C/OH Information " class="RptBtn" onclick="window.open('/Testing/Test_COHBenefit.cfm?Parent=' + document.ExpnDtl.ItemID.value + '&Type=EXPN&Form=' + document.ExpnDtl.ExpnCode.value, 'CandidateInfo', 'width=730px,height=475px,scrollbars,resizable,location')" disabled /> <a href="#" id="aDirExpn" onclick="ShowHelp('11')" style="border:none; display:inline; padding: 0px 0px 0px 0px"><img src="/images/Help_Icon.gif" height="14" width="13" border="0" /></a>
              </td>
         </tr>
         </table>
    Now whne the form is displayed on my page, I always see the line of text Description and the line of text Direct expenditure to benefit a candidate or officholder (in bold above).  But I never see the line of text  Is expenditure a contribution to a candidate... (in italics above).   It seems so simple but I can't figure out why that line does not display!!  Is there something wrong with that tr/td definition?

    Have you tried removing the ID?  Just to see if some CSS might be using that ID with a display:none or visibility:none statement?

  • Is there something wrong with a Oscar Gomez Fuentes 2Channel oscilloscope

    Is there something wrong with a Oscar Gomez Fuentes 2Channel oscilloscope or are my devices configured wrong. I have DAQCard-6036E and SCC-2345 with SCC-Ft01 and SCC-A10 modules. The problem is that when I am measuring with A10 it effects to FT01's RMS and DC values. But when I am measuring with Ft01 everything is ok. So what's wrong?? I attached a picture of a front panel.
    Attachments:
    front_panel.JPG ‏132 KB

    Neuvos,
    Do any of the signals you are measuring have high output impedances (> 1 kOhm)? If so, you may be seeing cross-talk (or ghosting). Below, I have included links to a number of documents that discuss this issue and methods for eliminating it:
    Data Acquisition: Troubleshooting Unexpected Voltages or Cross-talk in Analog Input Channels
    Using a Unity Gain Buffer (Voltage Follower) with a DAQ Device
    Is Your Data Inaccurate Because of Instr
    umentation Amplifier Settling Time?
    Good luck with your application.
    Spencer S.

  • Is there something wrong with my Retina Macbook Pro?

    I have been looking at the Geekbench scores for the new retina model with 2.6GHz and 8GB of RAM and they are getting around 11-12 thousand as there final score. When I do it (I have the 2.6GHz model), I receive a score between 5-6 thousand. Is something wrong with my computer, or what?

    You can't really do a benchmark on your MB if you're running on batteries.
    Keep in mind, when you're running on batteries, your MB is not using your CPU's full potential since it's on power saving mode.
    Too do a proper benchmark, your MB must be plugged in to take advantage of your CPU's full power and your graphic card's power.
    I for one do not follow benchmarks anymore.  I used to when I used to build my own gaming rig with all the bells and whistles.
    But to be honest, you will never, ever put your MB in such extreme.
    If you're still not satisfied with your MB's performace, you can either follow or ignore my or sig's comments.

  • Is there something wrong with my battery?

    Hi everyone! I have an Iphone 5 that was newly "remodeled" for tmobile. I was wondering if there was something wrong with my battery after a recent decline in performance. I am updated to the latest iOS and I recently restored all of my settings on my phone in an attempt to increase battery performance, leaving only wifi on location for weather. With my current usage and standby, do I have something to be concerned about? I know some individuals that have my usage and will have a standby time of over a day. Advice and opinions is very much appreciated.

    Usage and Standby the same means that there is an app on your phone that is running continuously. Usually its an app choking on bad data, or trying to send and failing. There are a few troubleshooting steps you can try:
    Mail is a common culprit, especially if you have a Microsoft Exchange email account. If you do, go to Settings/mail,contacts,calendar, tap on the Exchange account, and turn off the switches. Then back out of settings and restart the phone (hold HOME and SLEEP until an Apple logo appears). Then turn the switches back on. This clears the mail, contacts and calender queues. It will take a while to resync content, so don't check battery condition until the resync is finished. And its best to do this with a WiFi connection as a lot of data may go by.
    If that doesn't fix it do the same with your iCloud account, and any other Push accounts you may have (Yahoo, gmail, hotmail, AOL).
    Next, look for apps that run in background (most of the apps in the Quick Launch ribbon do not run in background, but a few do - music and video streaming apps, Facebook, Twitter, Yahoo Messenger, Whatsapp, etc). Kill them in the quick launch ribbon by pressing HOME twice to display it, then hold your finger on any app until they all wriggle, then tap the "-" on each one. It won't do any harm to kill them all.
    Note that if you have Google Maps installed and you asked it for directions it won't stop tracking you until you actually kill it in the Quick Launch ribbon.
    good luck and report back!
    BTW, you will see a lot of posts blaming some specific version, now 6.1.4 (because it's the newest). But you will see just as many reports for 6.1.3, 6.1.2, ...5.1,...4.1...3.0, etc. It's nothing wrong with the version (except for 2.1, which had a real bug), it seems to be caused for some people by the upgrade process itself. But there are also many people who encounter this symptom far away in time from any upgrade.

Maybe you are looking for

  • Many of my songs are incomplete and will cut out towards the end

    I've had this problem for several years now. I have over 4,000 songs (most of which were purchased through iTunes and the rest imported from CDs). A lot my songs will play for a little while and cut out at the end. Sometimes it's just silence but lat

  • I have lost all my videos by mistake. so how do i get them all back? please respond asap.

    hello, i have lost my videos by mistake from my ipad. please respond to this ASAP.

  • Sharing My IWeb Pages

    I posted my resume on iWeb and when I originally finished the webpage, iWeb allowed me to announce the web page through Apple Mail and attached within the e-mail the name of my webpage that hyperlinked anyone that clicked on my name to the webpage th

  • Microsoft Visual C++ Runtime Library erro

    When ever I try to open quicktime I get the following error messege Buffer Overrun detected! Program: C:\Program Files\Quicktime\QuicktimePlayer.exe A buffer overrrun has been detected which has corrupted the programs's internal state. The Program ca

  • Versioned repository

    Hi All, We had a non-versioned Designer9i repository with Headstart added on. We subsequently moved to a versioned Designer 9i and migrated applications in the non-versioned repository to the new versioned one. The question is what about Headstart? W