Solved

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

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

Technology Partners: 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

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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

710 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