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 7710687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:11:17+00:00 2026-06-01T01:11:17+00:00

so I am having a noob moment here, I haven’t ever used the command

  • 0

so I am having a noob moment here, I haven’t ever used the command line to run a java program before but I need to right now. The problem I am having is that when I try to run the program I get a ClassNotFoundException. My class is called OmadUpdate. I already have compiled the OmadUpdate.java file into OmadUpdate.class using the javac command. I have checked the directory and they are both definitely there, however when I run the java OmadUpdate command, it gives me an error message saying

Exception in thread "main" java.lang.NoClassDefFoundError: OmadUpdate (wrong name:     org/openmetadata/main/OmadUpdate)
......
......
Could not find the main class: OmadUpdate. Program will exit

But its right there in the directory. When I type dir I have both OmadUpdate.class and OmadUpdate.java. I have even tried using “java org.openmetadata.main.OmadUpdate” because that is the package name that it is under. I am stumped. Thanks for the assistance.

  • 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-06-01T01:11:18+00:00Added an answer on June 1, 2026 at 1:11 am

    Your class appears to have been declared in the org.openmetadata.main package.

    To get java to load the class correctly, it needs to be in the correct directory structure that matches the package structure.

    So the classfiles for org.openmetadata.main.OmadUpdate should be in the directory org\openmetadata\main.

    Then, when you run the java command, the root of this directory structure should be on the classpath – for a simple example this just means that your current directory should be the parent directory of org\openmetadata\main.

    When running java you need to specify the full classname using periods not slashes, i.e.

    java org.openmetadata.main.OmadUpdate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Warning: Noob here. I know this is a trivial subject but I'm having a
I appreciate this is an incredibly noob question, but having Googled multiple combinations of
Sorry for the noob question, but I'm having problems with JPA+Hibernate so I thought
I'm sorry if this question is noob-ish but I'm not having much luck with
Ok, so I know this is a noob question but I am having trouble
Sorry for the kind of noob question but having issues trying to get a
I'm having trouble getting django-admin.py to work... it's in this first location: /Users/mycomp/bin/ but
I confess I am a noob to asp.net and web forms. I'm having an
I am a total C++ noob, and I am having some trouble returning an
Rails noob here so I'm not sure what I'm doing wrong. We're replacing a

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.