Solved

Could not find main class. Program will exit

Posted on 2006-10-29
9
4,463 Views
Last Modified: 2008-09-11
Hello all!!

I am trying to run a program which i downloaded from the internet.
When i try to execute it o get on my windows xp a window called "java virtual machine launcher", with the message: Could not find main class. Program will exit.

The strange thing is that in some other computers i can run this application with no problem. I already downloaded the JVM and install it again, but it didnt work.

Do you guys have any idea of what could solve this problem ?

Regards !
0
Comment
Question by:psiubest
[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
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17829880
how are you trying to run it?
0
 

Author Comment

by:psiubest
ID: 17829991
it is an exe !
0
 
LVL 9

Expert Comment

by:shinobun
ID: 17830186
What is the program?  Does it come with instructions on how to configure/run it?
0
Industry Leaders: 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!

 

Author Comment

by:psiubest
ID: 17830197
It's a program with no instrutions, but which i always run it in my pc before
0
 
LVL 9

Expert Comment

by:shinobun
ID: 17830295
Sorry, I wanted some information on the program itself, like the name, where did you download it from, etc.
0
 
LVL 10

Accepted Solution

by:
mbvvsatish earned 500 total points
ID: 17831916
try this
create path and classpath to your jvm under

control panel->system->advanced tab->environment variables->user variables
click on New. add variable name as "path" and varable value as ".;C:\Program Files\Java\j2re1.4.2_04\bin;"

click on New once again and add variable name as "classpath" and varable value as ".;C:\Program Files\Java\j2re1.4.2_04\lib;"
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

717 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