Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6389899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:27:41+00:00 2026-05-25T03:27:41+00:00

I get a Exception in thread main Exception in thread main java.lang.NoClassDefFoundError error when

  • 0

I get a Exception in thread “main” Exception in thread “main” java.lang.NoClassDefFoundError error when I try to run a batch file as a scheduled task on windows server 2008. The batch file runs a java program. when I run the batch file regularly it runs fine.

@ECHO OFF

:start

:playback
java -cp ../lib/*; example

:end

Tue 08/30/2011 9:29:23.19:
C:\Windows\system32;C:\Windows;C:\Windows\System32\W bem;C:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files
\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\100\ DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\100\Tools\Binn\VSShell\Com mon7\IDE\;C:\Program Files
(x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program F iles
(x86)\Microsoft Visual Studio
9.0\Common7\IDE\PrivateAssemblies\;C:\Windows
\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows
Imaging\;C:\Pro gram Files (x86)\IBM\Director\cimom\bin;C:\Program
Files (x86)\Common Files\ibm\ icc\cimom\bin;C:\Program Files
(x86)\IBM\Director\bin;C:\Program Files\System Ce nter Operations
Manager 2007\ ;C:\Program Files (x86)\Java\jdk1.6.0_25\bin;C:\Pr ogram
Files\System Center Operations Manager 2007\

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:27:43+00:00Added an answer on May 25, 2026 at 3:27 am

    The account that runs the batch does not seem to have its PATH configured properly. Can you add:

    echo %DATE% %TIME%: %PATH% >> %TMP%\DebugFile.txt
    

    to see that the value in path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the error Exception in thread "main" java.lang.NoClassDefFoundError: When I try and
I get the following error when I run a java program: Exception in thread
I've got a Polish version of Windows installed and therefore I get exception messages
I get this exception on my Windows 7 64bit in application running in VS
The problem: I can't get my java app to run after compiling. My guess
I'm trying to run Nutch on my Windows machine. I have Nutch, Java, Tomcat,
I am trying to run a class I made however I get this error:
I am currently trying to read an ofx file with java. But I get
I get security exception when using System.Net.WebClient to do HTTP requests, which is due
I get an exception thrown at runtime when I set AllowsTransparency=True I get an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.