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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:56:59+00:00 2026-05-30T02:56:59+00:00

I just upgraded to the latest Java > java -version java version 1.7.0_03 Java(TM)

  • 0

I just upgraded to the latest Java

> java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
> javac -version
javac 1.7.0_03

I am having issues to execute Java program from the command-line. For instance:

public class Tester {
    public static void main(String[] args) {
        System.out.println("in main");
    }
}

I compiled it on the command-line, then try to execute it:

> javac Tester.java
> java Tester
Error: Could not find or load main class Tester

Is this a bug?
Strangely, I have no problem to execute the program using Eclipse.

  • 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-30T02:57:00+00:00Added an answer on May 30, 2026 at 2:57 am

    Is your CLASSPATH environment variable set? When I do

    export CLASSPATH=/tmp
    java Tester
    

    I get a NoClassDefFoundError, though not the exact same error message you quoted.

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

Sidebar

Related Questions

I just upgraded to the latest Xcode version(3.2.5) and attempted to build and run
I have just upgraded my iOS sdk to the latest version 3.2.5 and I
I just upgraded to Xcode 3.2 and am using the Build and Analyze feature
I just upgraded jQuery to version 1.4.2 and I am now getting an error
I upgraded to Xcode 3.2.3 with the latest iPhone SDK version 4 and I
I've just upgraded to the latest git repo for emacs 24 and compiled it
Is it possible for every Android mobile to be upgraded to its latest version
I've just upgraded to the new version of gmail (v2.3.5) and I've got an
I just upgraded to the GM version of Lion. I've been using the previews
I just upgraded to the latest 4.3 Xcode. I have my plist.which is preprocessed

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.