Solved

Eclipse - Running Java program receiving "could not find main class" error

Posted on 2012-04-05
2
512 Views
Last Modified: 2012-04-05
I developed a java program in eclipse.  When I run it I receive a "Java Virtual Machine Launcher Error" - "Could not find the main class:  test.JRivera.  Program will exit"

How do I resolve?
Eclipse-Error.jpg
0
Comment
Question by:CipherIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Ashok earned 500 total points
ID: 37814746
Try  changing your classpath to e.g( C:\program files\java\jdk1.5.0_05\lib ) change the path accordingly..

to change classpath, you can click on:
1) control panel
2) system
3) advance system settings
4) enviroment variables
5) find classpath in system variables
6) change accordingly

Also try

Project - Clean...
0
 
LVL 1

Author Closing Comment

by:CipherIS
ID: 37814788
I reinstalled eclpise that fixed it
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question