"Java Virtual Machine Launcher-   could not find the main class"

My system is working very slowly, especially during start-up.
During the start-up, a small pop-up appears that reads:
"Java Virtual Machine Launcher
could not find the main class. Program will exit"
Would this cause slow operation?
How do I fix this?
My system is Windows XP Professional, version 2002 SP1; Intel Pentium III Processor, 647 MHz, 128 RAM
Thanks for whatever help you can offer.
Lou
My experience level is
Beginner
Novice
Intermediate X
Expert
Guru

That popup message indicates that some program has tried to start the Microsoft JVM. When this occurs at startup, it often means that a spyware (or worse) program is operating. Go to this Sun site for more information.
http://java.com/en/download/help/spyware.jsp

Similar Messages

  • Java Virtual Machine Launcher could not find the main class - program will

    I have installed J2SE and followed all the instructions but upon restarting the PC I get a dialogue box with the messege Java Virtual Machine Launcher could not find the main class - program will exit.
    I have tried multiple times un-installing and re-intalling this but i still get the messege when i restart windows.
    Can anyone offer any suggestions as to what i may be doing wrong.
    When I do the verify installation I get the congtratulations you have the latest Java Installed.
    Help

    Something is being automatically started when the pc starts. Assuming Windows, to see what it is, learn to use the msconfig program:
    http://www.google.com/search?q=how+to+use+msconfig
    Apparently, whatever it is, it's not correctly configured.

  • JXDatePicker - could not find the main class?

    Hi all,
    I am trying to play with the JXDatePicker swinglabs.
    I wrote this trivial code:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import org.jdesktop.swingx.JXDatePicker;
    public class TestJXDatePicker implements ActionListener
        public JLabel label = new JLabel();
        public JXDatePicker datePicker = new JXDatePicker(System.currentTimeMillis());
         public TestJXDatePicker()
              label.setText("Choose Date by selecting below.");
              JFrame frame = new JFrame();
              frame.getContentPane().add(label, BorderLayout.NORTH);
              frame.getContentPane().add(datePicker, BorderLayout.CENTER);
         public void actionPerformed(ActionEvent arg0)
              if (arg0.getSource()==datePicker)
                   label.setText(datePicker.getDate().toString());          
        public static void main(String[] args)
             new TestJXDatePicker();
    }Unfortunately, I get this message:
    Java virtual machine Launcher
    Could not find the main class. program will exit.
    the trace is:
    java.lang.UnsupportedClassVersionError: org/jdesktop/swingx/JXDatePicker (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    ANY IDEA???
    JDK = 1.4 (also tried with compiler comliance lever 5.0) nothing :-(

    I had a look through the SwingX stuff and decided that it looks like the project has stalled (the main site says something about being overhauled - but it's been like that for ages).
    I'm using JCalendar - there's recently been a new release and it's brilliant.
    Check out http://www.toedter.com/en/jcalendar/.
    Hope this helps.
    Paul C.

  • Installer problems - Could not find the main class

    Hello
    I am trying to install openmq on vista and having problems. I've had the same problem with a nightly build of 4.3 and stable 4.2 build. The install kicks off fine until I get to the part where the install happens and then I get:
    Java Virtual Machine Launcher : Could not find the main class. Program will exit
    I have several sun JREs/JDKs installed and have tried all of them, the installer itself is not impacted:
    jre 1.7.0
    jdk 1.7.0
    jre 1.6.0.7
    jre 1.6.0.7 and jre 1.6.0.7
    Am I missing something obvious or is there a way of installing without the java installer ?
    Much obliged
    Edited by: Alphawave on Oct 14, 2008 11:39 AM

    Hi,
    I've seen this error before on vista. In the past the users saw this message when they didn't have write permission on the directory they were installing to. Even with administrator privileges, they still need write permissions.
    A quick test is to:
    login as the user you are installing as.
    cd to the directory you are installing into.
    touch foo // to see if you can write to the dir.
    Thanks.

  • Deployment - "Could not find the main class."

    I am trying to deploy an executable version of my project. From the IDE, I select Run-Deploy-New Deployment Profile; then I choose JAR File. I leave the default directory, and I've tried various names. I select "Include Manifest File" and then add my main class. I then go to Run-Deploy-[application].deploy. When I try to run the resulting JAR file with javaw, I get the following message:
    Java Virtual Machine Launcher
    Could not find the main class. Program will exit!
    When I try to run it from the command line using java -jar [application].jar, I get this message:
    -jar: illegal argument
    I am using JDev 10.1.3.0.4 on Windows 2000.
    What am I doing wrong?

    If you create a new project in JDeveloper.
    Add a new class
    public class Class1 {
    public static void main(String[] args) {
        System.out.println("It Works");
    [\pre]
    Create a new JAR file
    In the deployment profile point to Class1 as the Main Class
    Deploy the JAR file
    and then from the command line write
    java -jar works.jar Class1
    Does it work?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Could not find the Main Class. Program will exit. Eclipse w/ JDK 6 RC

    Hi all,
    I needed to upgrade to JDK 6 RC w/ Eclipse while encountering a java.lang.NullPointer exception.
    Now I would like to compile my code with the new VM. I set all preferences to VM Version 6.
    Now I have the following Error:
    Java Virtual Machine Launcher
    Could not find the Main Class. Program will exit.
    What do I do now? Attached you find the Error Message.
    Bye
    Gerrit
    ================================The System.error looks like:
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Exception in thread "main"

    i wouldn't report a nullpointer to sun unless you're fairly confident there's some sort of bug. if main() can't be found it sounds to me like a config issue. if nullpointer, sounds like a code issue. post the code if you want, but i don't think sun will help you debug this.

  • Error:-could not find the main class programe will exit(Java virtual mach)

    Hi,
    i changed the mainfest file for an executive jar file(judge.jar) using the command on dos :-"jar cvfm judge.jar c:\judge\MAINFEST.MF -C judge/ ." , but when i run this jar file again after making changes in mainfest file it is not working. an error encounter like "could not find the main class programe will exit how to solve"(Java virtual machine launcher).please suggest me how to solve this error.
    Thanks
    Ashwani Gupta

    Hi,
    mainfest file has a entry like "main -class: judge.repository.corpus"
    please tell me the solution of this error i am doing internship in national university of singapore......and my project is related to data mining.I am using judge.jar when i extract this jar files i saw there was no main-class in manifest file so i change it and make it again jar file using dos command.please suggest me how i can reomove this error.
    Thanks in advance.
    Ashwani

  • Java Virtual Machine. Could not find main class

    I am trying to install Oracle Data Access Components ODAC 11g 11.1.0.6.21
    on windows 2008. I get the dreaded could not find the main class. Program will ext.
    I have seen all the post, tried installing every conceivable Java version, removed all java version.
    Nothing works. Does anyone have THE solution for this on-going error?
    Thanks

    I fixed my problem by installed Oracle 11g ODAC and Oracle Developer Tools for Visual Studio 11.1.0.7.20

  • Could not find the main class: oracle.ide.boot.Launcher.  Program will exit

    Hi,
    I have installed Oracle11g_win64_11gR1, Database and Client.
    The issue is unable to invoke "sqldeveloper", getting the following error message. Could you please help ?
    FYI. I have already downloaded and installed installed JRE and JDK.
    ie. C:\Program Files (x86)\Java\jre6\ and C:\Program Files\Java\jdk1.6.0_24, still did not work.
    C:\Users\oracle>java -version
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    Let me know, if you need more information. Here is the error message.
    Error Message
    =========
    (1) if I invoke sqldeveloper, directly from the location " C:\app\oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin " using explorer, I do get error message
    "Unable to find a java Virtual Machine.
    To point to a location of java Virtual machine please refer to the Oracle9i JDeveloper Install Guide ( jdev/install.html)"
    (2) if I invoke sqldeveloper, directly from the locationC:\app\oracle\product\11.1.0\client_1\sqldeveloper, it prompts me to enter "full path for java.exe".
    When I enter full path and continue, still it continue to prompt and ask the same input.
    (3) if I invoke sqldeveloper from from command prompt using the batch file "sqldeveloper.bat"
    C:\Users\oracle>C:\app\oracle\product\11.1.0\client_1\sqldeveloper\sqldeveloper\
    bin\sqldeveloper.bat
    C:\Users\oracle>java -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10
    -XX:JavaPriority9_To_OSPriority=9 -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_F
    LAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -Dide.co
    nf="sqldeveloper.conf" -Dide.home.dir.name=.sqldeveloper -classpath ..\..\ide\l
    ib\ide-boot.jar;..\..\jdev\lib\xmleditor.jar;..\..\ide\lib\oicons.jar;..\..\..\j
    dbc\lib\ojdbc5.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\sqldeveloper\
    lib\jle2.jar oracle.ide.boot.Launcher
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ide/boot/Launc
    her
    Caused by: java.lang.ClassNotFoundException: oracle.ide.boot.Launcher
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: oracle.ide.boot.Launcher. Program will exit.
    OS
    ==============
    MS Windows 7 Home Premium
    sqldeveloper.conf
    ===================
    SetSkipJ2SDKCheck true
    IncludeConfFile ../../jdev/bin/ide.conf
    AddVMOption -Dapple.laf.useScreenMenuBar=true
    AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
    AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
    AddVMOption -Dcom.apple.macos.smallTabs=true
    AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
    AddJavaLibFile ../../jdev/lib/xmleditor.jar
    AddJavaLibFile ../../ide/lib/oicons.jar
    AddJavaLibFile ../../jlib/jewt4.jar
    AddJavaLibFile ../../jlib/share.jar
    AddJavaLibFile ../ide/jlib/xmlef.jar
    AddJavaLibFile ../../sqldeveloper/lib/jle2.jar
    AddJavaLibFile ../../sqldeveloper/lib/oracle.dbtools.logging.jar
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dwindows.shell.font.languages=
    IncludeConfFile sqldeveloper-nondebug.conf
    SetJavaHome C:\Program Files\Java\jdk1.6.0_24
    Edited by: sivapara on Feb 16, 2011 1:08 PM

    I was able to resolve this issue by performing following.
    1. Go to the location where sqldeveloperW.exe is being executed from.
    2. You will find a file sqldeveloper.conf in that location. Edit this file and change the value of IncludeConfFile to point to actual place. For me following were old and new values.
    OLD (Wrong) : IncludeConfFile ../../jdev/bin/ide.conf
    NEW (Correct) : IncludeConfFile ../../ide/bin/ide.conf
    After making above change in the sqldeveloper.conf file. Save and close it. Restart SQLDeveloper. You will not get the error anymore.
    Thanks
    Ravi

  • Could not find the main class. & java.lang.NoClassDefFound error:

    sir / madam
    I am facing problems with j2ksdk1.4.0 beta instalation on my windows 2000 advance server.
    while installing pops up a message saying could not find the main class.
    while using java or javac it says
    Exception in thread main
    java.lang.NoClassDefFound error:
    com/sun/tools/javac/main
    even when double clicking java plugin from the control panel
    I get the Java virtual machine launcher saying could not find the main class.
    I don't have any other java sdk installed.
    And i have my environment variables (classpath, path and java_home) set correctly.
    this same j2sdk1.4.0 version is installed in the windows 98 system and it's working fine.
    Kindly do help me to solve this problem.
    eagerly awaiting for your response.
    Thanking you
    Sajeev Nair
    [email protected]

    you must check with the classpath
    please see that you have not repeated %classpath%
    at the end of the class path like you do in win98.
    similiarly with %path%
    in win2000 it is automatically taken care off.

  • Java Access Bridge 1.1 Could not find the main class

    When I try to load Java Access Bridge 1.1 I receive the following error:
    Could not find the main class. Program will exit.
    Does anyone know why?

    you must check with the classpath
    please see that you have not repeated %classpath%
    at the end of the class path like you do in win98.
    similiarly with %path%
    in win2000 it is automatically taken care off.

  • Executable JAR file: Could not find the main class.

    Hello,
    I have a problem with making an executable JAR file.
    I have written a JAVA program that consists of five different classes of which User.java is the main class and I have saved a text document with Main-Class: User and a blank line after that.
    If I try:
    jar cmf MainClass.txt User.jar User.class Beheerder.class Operator.class Manager.class MaakVisueelSchema.class
    it makes a executable jar file which actually works! :)
    But when the Operator class trys to open the MaakVisueelSchema class the screen stays blank.
    I can run MaakVisueelSchema with java MaakVisueelSchema.
    So I tried to make an executable JAR that consists only of MaakVisueelSchema, the same way as I did for User:
    Main-Class: MaakVisueelSchema
    jar cmf MainClass.txt MaakVisueelSchema.jar MaakVisueelSchema.class
    Then I get the error message:
    Could not find the main class. Program will exit.
    from the Java Virtual Machine Launcher.
    The big difference between MaakVisueelSchema and the other classes is that MaakVisueelSchema contains a PaintComponent method and an ComponentListener. Is it possible that one of those creates the error?
    Can anyone help me with this problem?
    Thanks in advance!
    Bye!

    Yes,
    I tried:
    jar xvf MaakVisueelSchema.jar
    and it returns:
    META-INF/
    META-INF/MANIFEST.MF
    MaakVisueelSchema.classN/G. You need to manually create a manifest file in a text editor, have it point to your main class, and enter it in your jar command as an argument.

  • Can not start WebLogic in Eclipse. Error: "Could not find the main class."

    I have installed Eclipse 2.0 and WebLogic Server 6.1. and the WebLogc plug in from GENUITEC (and jdk1.3.1_04, on Win2K Server). After I have done the configuration, the WebLogic start/stop buttons are integried into the Eclipse Toolbar, but when I click on the start button to start Weblogic, it pops up a dialog box "Java Virtual Machine Launcher" with message: "Could not find the main class. Program will exit!"
    Starting WebLogc Server from the Start panel works fine.
    Does any one have seen this before or have a suggestion what I should do?
    Many many thanks in advance.
    Huan

    Weblogic must be started with a full JDK; otherwise
    JSPs and dynamic EJB stubs could not be deployed. The
    error message
    indicates you are attempting to use a JRE. Configure
    Eclipse JRE to point to a JDK. The product
    documentation will help you with this process. It does not work for me. :-(
    I have tried JDK 1.3.1 and 1.4.1: same result: I get a "Could not find the main class: Program will exit"
    For free expert support please consider contacting
    Genuitec at [email protected] If just want any
    answer ask a newsgroup.
    WayneI'll try the support at '[email protected]' :)
    Michel
    Michel Szybist
    [email protected]
    Fax: +33 (0)173729897
    SMS: http://www.szybist.net/

  • Executable JAR sometimes could not find the main class.

    I have a little task, that seems to be trivial- but I have no idea how to solve the current problem.
    With a double click on my jar, a message comes up: JVM could not find the main class. Program will exit.
    The executable JAR is an export result from eclipse, with a manifest file that contains the right entry to the main class.
    But the curious thing is, that I have tested the little Swing-Application with 3 JRE versions: 1.4.2._06, 1.4.2_09 and 1.5 on Win2K and XP. Every time it works fine, but on one system it fails. (Normally it requires no external classpath settings, no path-entries to work.)
    The ugly system is Win XP with JRE 1.4.2_06 installed.
    Is there anybody with a good hint?
    Please let me know.
    Christiane

    OK, I ll try to explain it in other words:
    It is an executable jar file, with a manifest file that specifies the Main-Class. No other external files or jars or settings needed. Only a simple JDialog initialized from a parent JFrame.
    I d like to start it with a double click from the Win-Explorer, not from command line!
    As a result a dialog from "Java Virtual machine Launcher" displays
    "Could not find the main class. Programm will exit."
    My Problem is, I don t understand the launching process in depth. But I can reproduce the message with the following command:
    wrong:
    javaw -cp OrderAlertTest.jar OrderAlertParentDialog
    -> Error dialog appears
    correct:
    javaw -cp OrderAlertTest.jar apo.order.OrderAlertParentDialog
    -> OK
    Any idea?
    Christiane

  • Could not find the main class Error

    Hi all,
    I think that JRun compiles something to jsp files if the jsp
    folder does not contain jsp files. Is that right? I started a
    server running in JRUN4. And later at some point (I don't know what
    I was doing), I got this Error Dialog that said "Could not find the
    main class. Program will exit." In addition, the title of that
    dialog was "Java Virtual Machine Launcher". What does this message
    mean? Please help me. Thank you.

    Okay, I created a simple hello jsp file in the test folder.
    Then I ran the command:
    D:\JRun4\bin\jspc at the current directory of C:\Documents
    and Settings\user\Desktop\test>
    The result that I got this:
    C:\Documents and
    Settings\user\Desktop\test>D:\JRun4\bin\jspc
    Compiling: /index.jsp
    java.io.FileNotFoundException: C:\Documents and
    Settings\user\Desktop\test\WEB-IN
    F\jsp\jrun__index2ejspa.class (The system cannot find the
    file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at
    jrunx.compiler.SMAPAttributeWriter.writeSMAP(SMAPAttributeWriter.java
    :49)
    at
    jrunx.compiler.JavaCompiler.processSMAP(JavaCompiler.java:184)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:151)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:100)
    at jrun.jsp.Translator.compilePage(Translator.java:176)
    at jrun.jsp.Translator.translate(Translator.java:254)
    at jrun.jsp.Translator.translate(Translator.java:101)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:693)
    at jrun.jsp.JSPC.compile(JSPC.java:85)
    at jrun.jsp.JSPC.main(JSPC.java:223)
    C:\Documents and Settings\user\Desktop\test>
    What is wrong?

Maybe you are looking for

  • Can i open eps file in photoshop element 12 and convert it into jpeg?

    can i open eps file in photoshop element 12 and convert it into jpeg?

  • Problem with Shuffle erased songs from library!!

    The Shuffle would not eject from within iTunes. I tried dragging it off the desktop to eject it that way and it would not budge. iTunes would not respond and when I tired to force-quit the program, it would not respond. The entire computer froze - ve

  • How cal I get Skype click-to-call to install on Firefos 10

    i JUST UPGRADED TO FIREFOX 10. As happens every time i upgrade, Firefox says it cannot install the add-on skype click-to-call. I used to be able to add it using tools, but now skype is not even listed there; something called SIP click-to-call is (bet

  • Duplicating a file in Acrobat DC (iOS)

    How do you duplicate a file in the new version of Acrobat DC (iOS)? We have a master file that we use to create estimates off of but then save the new version so we can always build a new quote for someone off of the master. One used to be able to du

  • WRT54GS - Unable to connect no matter what I try

    OK, I give up. After a VERY brief power outage during a storm, (it didn't even last long enough to have to reset the microwave), I can't for the life of me connect wirelessly.  First off, I DO have internet service when I connect directly via etherne