Solved

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

Posted on 2012-04-05
2
508 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

749 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