Jvm Launcher Could Not Find The Main Class Error
Contents |
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Beginning Java Error: Could not find the main class. Program will exit. Niraj Chaudhary Greenhorn Posts: 5 posted 5 years ago could not find the main class program will exit oracle installation Hi, I have a java application that is started from an executable. When I try
Java Virtual Machine Launcher Could Not Find The Main Class Windows 7
to run that, This error pops up "Title: Java Virtual Machine Launcher" saying "Could not find the main class. Program will exit." could not find the main class program will exit eclipse This error is coming when the application is tried to run on some machines (that's what I think), and not for all the users. Following are the steps that have been suggested, but the error still
Could Not Find The Main Class Program Will Exit Jar File
persists: 1.Uninstall any older/ multiple versions of java from the Windows machine and keep only the latest one. 2.Point the environment variable "CLASSPATH" to the directory where "java" is present, and also to the main class of my application. 3.Try installing the tool on a different machine (in the same network domain). I have seen many posts in this and other forums on this topic, and the solutions suggested above have been taken jvm.dll download from them, but the solution for my problem here is not there. It may be a trivial mistake or something else, but please help me out, as I am only a beginner in trying to solve such problems. Also, if you can please tell me how do I get this error, on my machine, that would be great? Something to understand the steps causing the problem. I don't get the error pop-up on my system. Thank you so very much in advance! Campbell Ritchie Sheriff Posts: 50585 82 posted 5 years ago Welcome to the Ranch Any suggestions about setting a CLASSPATH are likely to be unhelpful. In fact a system CLASSPATH can do more harm than good. The sort of error you quote suggests you have nothing wrong with the Java™ installation, but there is a problem with your own file. You are not clear about what you are running. Are you running a .jar or a .exe? If a .jar, what is in its manifest file? Please print that out. What is the fully-qualified name of the class with the main mathod in? Niraj Chaudhary Greenhorn Posts: 5 posted 5 years ago I am trying to run a ".exe". And the main class called from the exe is present in a .zip file. The
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Jvm.dll Failed To Load
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Could Not Find Main Class Program Will Exit Executable Jar
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, jvm.dll download for windows 7 64 bit just like you, helping each other. Join them; it only takes a minute: Sign up “Could not find the main class. Program will exit” up vote 18 down vote favorite 1 I'm trying to run SQuirreL SQL. https://coderanch.com/t/526005/java/java/Error-find-main-class-Program I've downloaded it and installed it, but when I try to run it I get this error message: Java Virtual Machine Launcher. Could not find the main class. Program will exit. I get the gist of this, but I have not idea how to fix it. Any help? more info: I'm on Windows XP pro. I have java 1.6 installed, and other apps are running OK. The install ran OK. I believe I've followed http://stackoverflow.com/questions/120662/could-not-find-the-main-class-program-will-exit the installation instructions correctly. To run it, I'm invoking the squirrel-sql.bat file. Update This question: http://stackoverflow.com/questions/1417328/could-not-find-the-main-class gives some background on this error from the point of view of a java developer. java squirrel-sql share|improve this question edited May 2 '12 at 10:36 Mr Lister 25.1k85381 asked Sep 23 '08 at 12:28 AJ. 6,152134063 What exactly do you mean by "try to run it"? Exactly what command do you type/ui action do you perform? –tgdavies Sep 23 '08 at 12:30 1 20k views, 0 votes. WOW. –Alon Gubkin Jun 28 '10 at 17:22 4 A vote! Somebody voted on my question! After 2 years and 4 months, and with nearly 40,000 views, I finally get a vote! Hooraah! –AJ. Jan 13 '11 at 17:06 @AJ, do they have a badge for that? :D –aitchnyu Jan 20 '12 at 7:21 @aitchnyu, I think they should, don't you? –AJ. Jan 20 '12 at 11:26 add a comment| 9 Answers 9 active oldest votes up vote 17 down vote accepted Is Java installed on your computer? Is the path to its bin directory set properly (in other words if you type 'java' from the command line do you get back a list of instructions or do you get something like "java is not recognized as a ....
be down. Please try the request again. Your cache administrator is webmaster. Generated Tue, 18 Oct 2016 10:56:00 GMT by s_ac4 (squid/3.5.20)