Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-04-05
2
Medium Priority
?
515 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

715 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