NoClassDefFound Error in Windows NT

Hi all...I am having problem running my java programs.
Due to some technical problems, the help desk in our company had to rebuild my computer. Its an NT workstation.
And after the system is rebuilt, I installed the j2sdk1.4.0_01 when all the problems started. I am able to compile all the programs, but whatever I do I am not able to run the programs.
It is giving me the error ::
Exception in thread "main" java.lang.NoClassDefFoundError
i dont think there is any problem in my classpath. I checked and double checked it. I am able to run the programs from an IDE, but not from the command prompt.
And the most weird thing is: I am getting the same error even if I copy the class file into the j2sdk1.4.0_01\bin directory and run it with java.
Any kind of help on how I am going to solve this will be highly appreciated.
Thank you all
-shyam

I use NT. I agree this sounds like a classpath problem.
1. Go to a fresh command line. Type SET CLASSPATH. Check the results.
2. From the same command line type PATH. NT has its own Java unless you have removed it. If ..\winnt\system32 comes before the directory where you installed java then the old Java is going to be used.
The IDE will set up its own PATH and CLASSPATH before doing anything else. That is why programs run from the IDE but not the command line.
I normally create a batch file named JAVAPATH.CMD which overrides PATH and CLASSPATH. When I go to the command prompt I first execute JAVAPATH then I do my work.
Why you might ask. Permanently changing PATH or CLASSPATH in the System icon my interfer with other applications which depend upon the system setting of these values. By running JAVAPATH the PATH and CLASSPATH are changed only for that session.
Good luck

Similar Messages

  • Error:"exception in thread main:java.lang.noclassdeffound error.

    Hi,
    I am new to this java tech and programming. I just started learning and installed j2sdk1.4.0_03. I wrote a small hello world program and compiled it without any errors. When I execute the same using java hello command, I am getting an error like this: exception in thread "main" java.lang.noclassdeffound error. I am not able to resolve this issue. Please let me know the sol.
    thanks
    venkatraman

    send the program u have typedUmm... Why?
    Anyway @NovaKane: Welcome. Together with seifist and sunny we have at
    least three new posters who show enough intelligence to find chuck's
    solution (or one of the many hundreds of others like it) and the politeness
    to thank him for it. What's the forum coming to?
    If you need it there is a description of the classpath here:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
    Again, welcome. And thanks for raising the intelligence level (and politeness
    quotient) of the fora.

  • Another NoClassDefFound Error. Nothing worked!

    Hi. I'm a newbie. I've gone thru the forums but cant find anything to overcome this error msg.I tried the divelog tutorial but when i tried to run using the command line
    C:\divelog.java -classpath C:\ divelog.DiveLog
    the following error occured:
    Error occured during initialization of VM
    java/lang/NoClassDefFound Error: java/lang/object
    I have J2RE 1.4.1_03 and JDK1.3.1_07 running on Win XP. My env variables are pointed to the J2RE location. Is there a compatibility problem involved?
    Please help me to get rid of the error.
    Thanks in advance.
    Regards,
    azareen

    I had this problem after installing 1.4.2_01 on Linux under slackware9.1.
    I found the resolution by running 'java -verbose' as root and as a user and comparing the output, as java ran fine for root.
    Turns out that for the user 'java -version' stoipped after loading a couple of jars, and as root it didn't.
    These jars in the JAVA_HOME/jre/lib directory only had root read/write permissions. After changing these permissions to all read and root write it worked fine for the user (so far)
    Maybe you could look into something similar if you are not the admin on the Windows environment you're working on.
    John

  • NoClassDefFound error

    I have a problem when I try to execute a java class file.
    I get the NoClassDefFound error. I went in and set my Classpath in windows xp and pointed it to my bin. I am able to compile the program but when I try to run it I get the NoClassDefFound error. I have tried various means to get it to run.
    I can see the class file in the directory I am in in the CMD prompt. I can not run any java class file.
    Once again I have set the Classpath and am using the same version of compiler and java.exe. I am not adding the extension .class to the end I even tried Crimson Editor and set the java.exe path and set the argument to $[FileTitle].
    I unistalled all my java and reinstalled it and still have problems with running any class file even the examples that java has included.
    Any help would be gratefully appreciated.

    set my Classpath in windows xp and pointed it to my bin.The above is incorrect.
    Delete the CLASSPATH environment variable. Do not set it again until you understand how to use it. Read the documentation here to learn that:
    http://java.sun.com/javase/6/docs/technotes/tools/index.html#general
    Change to the directory that contains the .class file and use this command:
    java -cp . <nameOfTheClass>
    IMPORTANT: include the period and surrounding spaces.

  • Could not find the main class. & java.lang.NoClassDefFound error:

    sir / madam
    I am facing problems with j2ksdk1.4.0 beta instalation on my windows 2000 advance server.
    while installing pops up a message saying could not find the main class.
    while using java or javac it says
    Exception in thread main
    java.lang.NoClassDefFound error:
    com/sun/tools/javac/main
    even when double clicking java plugin from the control panel
    I get the Java virtual machine launcher saying could not find the main class.
    I don't have any other java sdk installed.
    And i have my environment variables (classpath, path and java_home) set correctly.
    this same j2sdk1.4.0 version is installed in the windows 98 system and it's working fine.
    Kindly do help me to solve this problem.
    eagerly awaiting for your response.
    Thanking you
    Sajeev Nair
    [email protected]

    you must check with the classpath
    please see that you have not repeated %classpath%
    at the end of the class path like you do in win98.
    similiarly with %path%
    in win2000 it is automatically taken care off.

  • TS1368 I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    Click here and follow the instructions.
    (98897)

  • Itunes wont open - Error 7 (windows error 127)

    When downloading the lastest version of itune my computer crashed and now itunes will not open. It says itunes was not installed correctly. Please reinstall. Error 7 (windows error 127). Reinstalling intunes has not fixed the problem. Please help!

    Follow these instructions to completely remove Apple software
    http://support.apple.com/kb/HT1923
    Then use free Ccleaner to repeatly repair your registry until it's fixed.
    http://www.piriform.com/ccleaner/download/standard
    download iTunes again from Apple.
    Your content will remain.

  • When I plug in my Ipod touch to my computer a warning appears "The program cant start because MSVCR80.dll is missing."  I can not access my Itunes library.  Also, an "error 7 Windows error 126" appears as well.  Any ideas?

    When I plug in my Ipod Touch to my computer I can not access my Itunes library.  The following message appears "The program cant start because MSVCR80.dll is missing."  Also, another message appears as well - "Error 7  Windows error 126" as well as APSDaemon.exe.
    I have NO IDEA what the heck to do.
    Any ideas?
    Thanks!

    Issues installing iTunes or QuickTime for Windows
    solving MSVCR80
    iTunes 11.1.4 for Windows: Unable to install or open
    Troubleshooting issues with iTunes for Windows updates

  • ITunes no longer works on my Windows VISTA system.  Get error msg saying C runtime library incorrectly... Error 7, Windows error 1114..

    iTunes no longer works on my Windows VISTA system.  Get error msg saying an application is attempting to access C runtime library incorrectly... Error 7, Windows error 1114.  Same msg, or one that says unable to install, when trying to update or reinstall iTunes.  iTunes worked well up until about a month ago when this error msg starting appearing.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Cant open itunes. get error message 7 followed by error message windows error 127.     i have redownloaded new updates with luck.   window xp

    cant open itunes. get error message 7 followed by error message windows error 127.     i have redownloaded new updates with luck.   window xp

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT1222 I installed the most recent ITunes update after which Itunes no longer worked.. I received an error message   Error 7  Windows 193.  I did a system restore to eliminate the update.

      Apple support had not responded to my requests for clarification.  The update corrupted both ITunes and Office Outlook mobileme.  The error message when I tried to start up I Tunes was Error 7 Windows 193.  I un installed I Tunes and re installed the latest ver and encountered the same error message.  I finally did a system restore.  Was this a one time problem or is the update bad.  In over 30 years I'd never had a problem with any Apple update.

    Hi Lutacrew,
    If you are having issues with iTunes after an attempted update, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Regards,
    - Brenden

  • ITunes Windows Vista - Error 7 - Windows error 998, DEP

    Trying to install iTunes on windows vista laptop, iTunes installs but when i try to open it i recieve:
    Error 7
    Windows error 998
    Data Execution Prevention
    Have tried all solution given on apple solution website. Desperate for some help if any has some.
    Thanks

    (Apologies for barging in, wha.)
    In this context (launching itunes), DEP errors can indicate that some other program (other than QuickTime itself) has sprayed old versions of QuickTime componentry into unorthodox locations on the PC.
    Although the error 7 is most commonly associated with Apple Application Support or .NET framework problems, it can also be associated with QuickTime trouble ... so that's consistent with the old, misplaced QuickTime componentry troubles as well.
    So I think we'd better check on that possibility.
    You'll need to check some view settings on the PC first.
    1. From the Start menu, click Open.
    2. In the Organize menu, click Folder and Search Options.
    3. Click the View tab.
    4. In the "Advanced settings" pane under "Hidden files and folders" make sure that the "Show hidden files and folders" option is selected, and the "Hide extensions for known file types" option is unchecked.
    5. Click OK.
    Now go "Start > Computer".
    In Computer, open "Local Disk C:" or whichever drive your operating system is installed on.
    Open the "Windows" folder.
    *If you have a 32-bit Vista,* open the "System32" folder.
    *If you have a 64-bit Vista,* open the "SysWOW64" folder.
    What files or folders can you see in there with QuickTime in the file or folder name? (In a standard installation of QuickTime, you should see precisely two files ... QuickTime.qts and QuickTimeVR.qtx ... and no QuickTime folders whatsoever.)

  • MacBook Air running Bootcamp getting ACPI errors in Windows

    We have a number of MacBook Air 13" mid-2014 A1466 models running Bootcamp with Windows 7 64 bit Enterprise.
    (We image them with Windows & Bootcamp, no Mac OS X partition)
    We are using latest Bootcamp 5.1.5640 drivers
    They work fine for most applications.
    We are regularly getting ACPI errors
    The error in Windows System log is
    Source: ACPI
    Description: The embedded controller (EC) did not respond within the specified timeoutperiod. This may indicate there is an error in the EC hardware or firmware that the BIOS is accessing the EC incorrectly. You should check with your computer manufacturer for an upgraded BIOS. In some situations, this error may cause the computer to function incorrectly.
    The error we are seeing is when a user is logged into a Windows domain it should pass the Windows password to other applications like Outlook, Lync, etc. Instead, on these Macs, they regularly prompt for the Windows password to re-connect to the source. We don't get this issue with normal Windows PCs.
    Also booting has a slight delay of around 10 seconds before Windows begins loading. Don't this delay with older MacBook Airs.
    Have looked at repairing Bootcamp drivers. EFI & SMC looks up to date, had to use Mac boot USB to check this info.

    VikingBrad wrote:
    Just re-reading my post and I was unclear. Yes we do use EFI and boot directly into Windows.
    This is good to know.
    The Windows partition is joined to an AD domain and logs in fine with AD credentials.
    The only problem being that when we open Outlook or Lync or other apps that require AD authentication the user is prompted for their AD credentials.
    We have cleared Credential Manager in Windows, tried different users with no success. It works with older MacBooks and Windows PC. Seems to just be these latest MacBook Air 2014 models with the issue. After user re-enters AD credentials they can connect to Outlook, etc.
    This may be a bit off-topic, but Macs do not "officially" support Enterprise versions of Windows. Can I suggest using a test 2014 MBA, installing W7/W8 64-bit, and configuring for AD authentication and testing. Are there any known DNS issues on this Macs? In all the applications which do not function correctly, does the username show up correctly populated, when prompted for login?
    The only error we see in Event log is the ACPI error so suspect it is related. But we have latest Bootcamp drivers from Apple perhaps we are off track.
    If the user successfully enters credentials when prompted for say, Outlook, and the computer is made to sleep or hibernate, is the connection to Outlook/Lync still up if the timeout for sessions (if any) has not yet expired and the computer is woken up?
    It may also be worthwhile to look for requests being made for authentication before the applications prompt the user for credentials.

  • IM GETTING A MESSAGE ITUNES WAS NOT INSTALLED CORRECTLY. PLEASE REINSTALL. ERROR 7 (WINDOWS ERROR 1114) I TRYED TO REINSTALL IN APPLE SUPPORT BUT I GET TANOTHER MESSAGE. SERVICE APPLE MOBILE DEVICE FAILED TO START. VERIFY THATSUFFICIENT PRIVILEDGES TO STA

    I'm getting a n error message when I try to open Itunes. Itunes was not install correctly. Please reinstall itunes. Error 7 (Windows error 1114) This happened after I unsuccesfully tried to install an update. I have had itunes on this computer for three years. When I try to reinstall the latest version I get another message.Service Apple Mobile Device (Apple mobile Device) failed to start. verify that you have sufficient privileges to start system services. Abort, Retry, Ignore Does anyone know how to solve this problem?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Service 'Apple Mobile Device' (Apple Mobile Device) failed to start.  Verify that you have sufficient privileges to start system services. and 'iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 193)

    Hi!
    So i think i closed the wrong service at some point a few weeks back (apple mobile device) but iTunes remained working after that for another week. I then updated iTunes and i get the same  "Service ‘Apple Mobile Device’ (Apple Mobile Device) failed to start.  Verify that you have sufficient privileges to start system services." every time. If i click ignore, just so i can access iTunes with out syncing my iPod (touch 2nd gen) i then get 'iTunes was not installed correctly. Please re-install iTunes. Error 7 (Windows error 193)" when it has all installed. I don't understand what the problem is anymore as I have looked at other questions on the apple website, carried out the advice and it hasn't work. Any of them.
    Tings I have done:
    - Wiped all iTunes and Apple data from my computer (if you search for 'iTunes' or 'Apple' nothing comes up apart from applets from system code.
    - Attached iPod before iTunes install and updated drivers.
    - Installed iTunes as 'Run as administrator'
    - Uninstalled and re-installed the software nearly 20 times now and rebooted the computer in between everytime.
    Please someone help because i really need to get music on my ipod and i enjoy the ease of use of iTunes compared to spotify or Windows Media Player.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for performance issues or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    Regarding AMDS failures there is a hint in another thread that disabling the Windows Firewall before attempting to reinstall may help, otherwise take a look at the steps outlined in this post. Re: Can't install iTunes 12.1 on Windows 7 64-bit. I know they look a little daunting, but the process of generating the logs themselves isn't that hard to do. Extracting useful information from them is still a challenge but maybe something will leap out. If you want to post the log for the failed components for me to have a look at here or in the other thread please edit out any personal information, particularly your email address, first.
    tt2

Maybe you are looking for

  • HT4009 Charged twice for an in-app purchase

    Recently I made a in-app purchase for the game Infinity Blade, the item is the bag of gold 150,000. When I checked my purchased histroy it show two transactions of the item. In game it only reflects that I bought only 1 item. Who do I contact and how

  • FLV video in a single keyframe.

    hello, I have loaded an external FLV video into my project however, my video starts immediately as soon as I go to the keyframe with the video on it. It can still be heard playing after I leave that keyframe. Should I return to the keyframe it begins

  • Solaris 8 7/01

    When will the 7/01 release be available for download? Alex

  • Updating a CLOB using the JDBC 8.1.6 driver

    I have two issues on which comments are welcome. ( I am using the thin driver ) 1. Using the JDBC 2.0 way of updating a CLOB is not possible as the manuals state that this can cause "serious corruption". 2. Using the Oracle specific way ( using Oracl

  • Serious issue wherein every program lags for excessive periods of time

    so i have a bit of a serious problem but am very confused about it. last night i put my computer to sleep (possibly during an electrical storm, i'll admit) and when i went to wake it up this morning, i realized it was turned off. so i turned it on, a