Solved

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

Posted on 2012-04-05
2
499 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
2 Comments
 
LVL 13

Accepted Solution

by:
Ashok earned 500 total points
Comment Utility
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
Comment Utility
I reinstalled eclpise that fixed it
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
array220 challenge 8 44
pairstar challenge 2 41
stringclean challenge 26 54
computer science syllabus 3 52
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now