"Could not find the main class" Java error on Windows 7, but not Windows XP

Hi all

It's the first app I try to package and virtualize with ThinApp.

It is an old business application that usually runs on Windows XP SP3 x 86.

The. MSI that I generated with Thinapp works very well when it is installed on a Windows XP SP3 x 86.

However, our main goal to use Thinapp is to install on a Windows 7 SP1 x 64.

But in doing so, the application triggers a Java Virtual Machine Launcher error message saying: "could not find the main class. Program will exit. »

I thought that it was because the app includes a 1.4.2 JVM and that my XP has not any JVM pre-installed, but the main image on my W7 has a 1.7 JVM. But even after I uninstalled the 1.7 and installed JVM 1.4.2 on the W7 machine, I kept getting the error message so I guess that it is not bound.

Y at - it an option that I missed during my MSI generation so that it can run on a Windows 7 x 64?

Thank you all for your help.

D.

With the help of Lachi, we found that the app natively works on W7, no need for ThinApp it if the goal is just to make it work on W7, from a XP world.

The only change we had to make (and the error was the same ThinApp-ed, which is what I originally shared) is that the application should work with Windows 7 in "classic" mode "of the screen (without Aero and the menu start XP-style). This is because the application runs an old integrated version of Java (1.4) and it makes the system calls seeking specific .dll to display, which are not accessible by default if Aero is enabled.

Closed topic

Tags: VMware

Similar Questions

  • bad battery or DC power converter? the main battery (internal) (error 601) windows displays battery to

    defective battery or DC power converter?

    battery (internal) (error 601)

    Windows displays the battery to 100%

    laptop not boot battery, will start only on ac, but battery installed shows error 601

    HP eliteBook 6930

    no spare battery

    althefirst wrote:

    defective battery or DC power converter?

    battery (internal) (error 601)

    Windows displays the battery to 100%

    laptop not boot battery, will start only on ac, but battery installed shows error 601

    HP eliteBook 6930

    no spare battery

    This error is a bit confusing.  At first glance it seems to refer to the CMOS/RTC battery but actually refers to the main battery to the laptop.  Even if the computer indicates that the battery is at 100%, it would be a good idea to check that it is in working condition.  I think that it is a good first step, because although it doesn't show 100% charge, you say the laptop does not work unless it is on current alternative.  This paper addresses the issue further.

    As indicated in the document, the HP Battery Check will be performed to determine if the battery is faulty.

    To perform battery check do the following and display the result.

    1. Unplug the power cord and turn the computer off.
    2. Press on the button / stop to turn on the computer.
    3. Press the ESC key immediately seeing the HP or Compaq logo screen.
    4. The Start menu appears.
    5. Press F2 to select F2 System Diagnostics .
    6. Select battery Test in the list of diagnostic tests.
    7. Connect the power supply cable.
    8. Click Start Test Battery on the battery Test page.

    If your battery fails this test, it will need to be replaced.  To get a spare battery, you will have to contact HP Support.  If you are in the USA / Canada you can call to the 1-800-474-6836.  If you are located outside of this area, you will need to go to the HP support site and after selecting your country, search for "Customer Support" in the lower right corner to get contact information for your region.

    I hope this helps!

  • The main class is not found: HelloWorldSwing

    First lines of the file "HelloWorldSwing.java".
    package start;
    import javax.swing.*;
    public class HelloWorldSwing {
    I've successfully compiled the file.
    When I type the following command
    C:\>java HelloWorldSwing
    I get the following error Message:
    Could not find the main class: HelloWorldSwing.  Program will exit.
    I'm sure that the absolute path of the file is:
    C:\start\HelloWorldSwing.Java
    and I issued the command of
    C:\

    Your class is in a package. Its fully qualified name is start. HelloWorldSwing

    DB

  • Could not load the manifest attribute of the main class of C:\program files\frostwire\commons - connect

    original title: I need to know what means this message and I can remove it from my computer

    doess someone knows what this message means? Could not load the manifest attribute of the main class of C; \program files\frostwire\commons-logging, pot every time I look at this subject in my file, it appears, I'm not good at all with computers but I know im short-term memory or space on this computer and I tried to go into my programs and delete, can you please help me understand what I can and can not delete to give me more space? Thanks, im running Windows Vista! If you would like more information, I'm sorry, just ask me? Thanks again, I hope someone can help me! :(

    This discussion forum on Microsoft Security Essentials antimalware. You can get help in the Microsoft Vista answers forums - http://answers.microsoft.com/en-us/windows/forum/windows_vista

    Jim

  • The main class is not found

    Hi all
    I am facing problem when I try to create the JAR file.
    After creating the Jar file I tried to run but error message
    Main class not found.

    I follow these steps
    (1) my WordNetOK.java
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.Scanner;
    import edu.smu.tspell.wordnet.*;
    
    
    public class WordNetOK{
    
        public static void main(String args[]) throws FileNotFoundException {
    
    System.setProperty("wordnet.database.dir", "C:\\Program Files (x86)\\WordNet\\2.1\\dict\\");
    WordNetDatabase database = WordNetDatabase.getFileInstance();
          String result = "";
            NounSynset nounSynset;
            NounSynset[] hyponyms;
       
            //creating File instance to reference text file in Java
            File text = new File("C:/javacode/WordNetin.txt");
          
            //Creating Scanner instnace to read File in Java
            Scanner scnr = new Scanner(text);
          
            //Reading each line of file using Scanner class
            int lineNumber = 1;
            while(scnr.hasNextLine()){
                String line = scnr.nextLine();
          Synset[] synsets = database.getSynsets(line);
          for (int i = 0; i < synsets.length; i++) { 
          String[] wordForms = synsets.getWordForms();
         for (int j = 0; j < wordForms.length; j++) {
    System.out.println(wordForms[j]);
         }
              }

    //System.out.println("line " + lineNumber + " :" + line);

    lineNumber++;
    }

    }

    }
    2) Javac WordNetOK.java
    
    it create a class file
    
    3) i create Manifeast.txt 
    Main-Class: WordNetOK
    4) i run this
    C:\Javacode > jar cvfm WordNetOK.jar Manifest.txt WordNetOK.class
    Adding manifests
    adding: WordNetOK.class(in = 743) (out = 435)(deflated 41%)
    5) i tried to execute it as * java -jar WordNetOK.jar *
    
    But error appear could not find main class
    C:\Javacode > java-jar WordNetOK.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: WordNetOK
    Caused by: java.lang.ClassNotFoundException: WordNetOK
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    The main class is not found: WordNetOK. Program ends.

    C:\Javacode >
    Note : i execute the classpath at beginning
    set PATH = C:\Program Files\Java\jdk1.6.0_32\bin;
    set the classpath = C:\Program Files\Java\jdk1.6.0_32\bin;\javacode.
    Edited by: Ayham on Apr 6, 2013 7:39 AM
    
    Edited by: Ayham on Apr 6, 2013 7:41 AM
    
    Edited by: Ayham on Apr 6, 2013 7:45 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Why are you creating your own manifest file? Let just for you Java.

    It works for me using 1.6

    C:\Javacode>jar cfe WordNetOK.jar WordNetOK WordNetOK.class
    
    C:\Javacode>java -jar WordNetOK.jar
    Hello World.
    

    Generally, you should leave a tool (e.g., Netbeans, Ant) create the manifest because they know how to do it properly.

  • error message "cannot load the main class.

    I ran windows update yesterday and installed the recommended updates, restarted my laptop today the error message "Unable to load the main class" appears in a box and I couldn't do anything until I had closed this box, after the loading of firefox it displays a message not responding, then a bar indicating that plugin adobe did not start successfully so I clicked to reload page Then, I rebooted my laptop to see if this solves the problem, but the same error message appeared and firefox have responded in the same way, someone has an idea how I can fix this problem?  I run anti-virus software and malware from comodo and my OS is windows vista 32. I also downloaded an update for adobe flash yesterday but the problem has not produced until after I had done the updates of windows.  Thank you

    Hello Fiona,

    Thank you for your response.

    You are facing this problem might because of Java program on your computer.

    I suggest you perform the clean boot and check the status of the issue, which will help you identify the problem.

    Keep the computer in a clean boot and check the status of the issue. If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem. Continue with the remaining steps to pin-point on the third party service. After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8.

    http://support.Microsoft.com/kb/929135

    Note: please go through the section:How to reset the computer to start as usual after a clean boot troubleshooting section of Kb to start the computer to a normal startup after you fix the problem.

    Hope his helps.

  • Did not find the main: PluraRunner. Program ends.

    Hello..

    I use Windows 7 (64-bit). The problem is that I have a prompt with the error "did not find the main: PluraRunner.» Program will exit. "Here's a screenshot of the error:

    -By clicking on OK the prompt again in about 20 seconds. It never stops.

    I tried:

    -Restart and re-login
    -Uninstall and reinstall Java
    -Remove any redundant Java installation. So for the moment I only have a single installation of Java on my machine.
    -Defining the path and Classpath variables

    Whenever the prompt, I see files two following jar in the temporary location:

    If I click OK to the prompt and delete these files, they are re-created in the same place when the guest returns.

    Please me before I lose my sanity on this stupid problem!

    -Mitesh

    Solved!

    I was able to resolve the problem by disabling one of the start-up services in msconfig:

    Some people may find the same as that in their list of others, but the key has been one of the start-up services which kept causing the error message. I even rebooted my machine and made sure that the error does not return.

  • Need help to find the "main point size.

    Hello

    I need help to find the "main point size.

    Any style of Pará which is more than 2 points of my font size, I need the alert message "His more than 2 points for your font size". For example, the font size of my para 10 here is my attack should be 12 points rather than his 14 points, I need the alert message.

    Is it possible by script?

    by

    hasvi

    Hi Hasvi,

    Try this.

    var doc = app.activeDocument;

    var texts = doc.stories.everyItem ().textStyleRanges.everyItem () .getElements ();

    pstyle var = ' Suite of paragraph styles have more leadings: \r\r ";

    for (var i = 0; i)<>

    {

    PS var = text [i] .pointSize;

    If (texts [i] .leading > ps + 2).

    {

    pStyle += text [i].appliedParagraphStyle.name;

    }

    }

    Alert (pStyle)

    While it is true that mark as answer correct and do not select your question as a correct answer.

    Kind regards

    Cognet

  • Unable to save the family settings, error: the system cannot find the specified file 80070002 error code.

    Original title: Family Safety filter configuration problem.

    Hello.

    I got family safety works very well before a reinstall of Windows 7 Professional.  After I install windows essentials, I connect to my microsoft account, now I'm trying to set up the filter, monitored accounts are already checked, the only option is to save.

    When I click Save I get this

    The system cannot find the specified file 80070002 error code.

    I've tried everything.  Uninstall, reinstall Windows Essentials 2012.  First of all, I did a partial install with just the film and the family.  Uninstalled.  Re-installed full.  Always the same question.  I even tried to install Windows Essentials 2011.  No change.

    Help, please.  I appreciate it.

    Thank you

    GISIGER

    Hi Greg,.

    Thanks for the reply.

    Run the System File Checker tool.

    Use the System File Checker tool to repair missing or corrupted system files

    http://support.Microsoft.com/kb/929833

    Also reset Windows update components and check if this solves the problem.

    Refer to this link:

    http://support.Microsoft.com/kb/971058

     

    Important: Follow the steps in this section carefully. Serious problems can occur if you modify the registry incorrectly. Before you modify it, Save the registry restore problems.

    Keep us informed on the status of the issue.

  • Pass a variable to the main class to a MovieClip

    Hello!

    I have a document with the main class.

    I have also a few clips that have their own class and functions.

    I'm trying to pass a variable in my main class to one of these clips.

    I tried a few things, nothing has worked.

    Who can help?

    Match_Easy looks like a class name.  You must use the name of the instance.

  • How can I set the scope of the attributes are incompatible error in Windows 8 pro?

    How can I set the scope of the attributes are incompatible error in Windows 8 pro?

    Whenever I try to run a setup.exe file, it gives me this error. What can I do to fix this?
    Help, please!

    WOAH ARE RESISTING NOT EVERYONE!

    THERE IS A MUCH EASIER WAY TO DO THIS!
    Well, I looked for a solution on google (Yes google) for 20 minutes and found four sites that had a bajillion ways to solve this problem.
    Dang, I was wrong.  So, when I dropped, I searched it on youtube, and here's what I got it is frighteningly SIMPLE!
    These are the? indications that I give to you people of the video (easier to look at):
    1 right-click the volume in the taskbar icon, and select sounds
    2. scroll down about 3/4 on the events program: the list and select the option that says Windows user account control
    3. change the sounds: option ( no), and then click OK
    YOU ARE FINISHED NOW, AND THE PROBLEM IS SOLVED... I have no idea how it works, but it doesn't... I AM IN AWE IN FRONT OF
  • Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello

    The fastest internet connection depends on your internet speed provided by her Internet (ISP) Service provider. Therefore, contact them to receive a best speed of the internet.

    For more information:

    How to increase the speed of navigation: 7 ways to work faster on slow connections

    http://www.Microsoft.com/atwork/remotely/connections.aspx#fBid=TN-_TCHYDMB

    10 tips to help improve your wireless network

    http://www.Microsoft.com/athome/Setup/wirelesstips.aspx#fBid=1vrPRuhAhAg

    Internet Explorer is slow? 5 things to try

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

  • Error: Could not find the com.sun.deploy.ControlPanel of the main class when tried to open the Java Control Panel

    Original title: could not open the Java Control Panel

    I just downloaded a new update of Java 6 and it doesn't work. I use Java to view charts & graphs of changes in the stock market & it works with applications that I used before, but not for that I started to use after the new update has been installed.

    I tried to fix it by clicking on the Java Control Panel & I get this message:

    Class main com.sun.deploy.ControlPanel is not found

    How can I fix?

    Hi Chris240560,

    Try to Uninstall and reinstall java and check the result.

    For further assistance, we recommend you to make contact with The team of Support of Java for better assistance.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Computer XP does not start all of a sudden. Drive hard Self Test error #1-07 Fail. How can I find the meaning of this error of hard disk?

    Computer XP does not start all of a sudden.

    My computer is a HP Lap Top Model zd8000 bought in 2006.  Never had a problem with it before.

    Drive hard Self Test error #1-07 Fail.

    How can I find the meaning of this disc hard test error message?

    Thank you

    I tried the suggestion using chkdsk/r

    The computer ran for a long time, but the computer worked once the process is complete.

    First thing I did was back up my data, I was real worried.

    Thank you very much!!!

  • Can not find the file I'm looking in Windows 7 as I could in Windows XP

    Does anyone else find the useless "Search" in windows function or is it just me?  It worked great in XP, but since then it might be so not even a feature!

    Hello julopez6,

    Please see the steps in the link below with indexing and some other measures.  What you are looking for?  A file/folder/program/software?

    Windows 7 index do not email

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/Windows-7-not-indexing-emails/2e9262b7-107C-41DF-92f6-605ff42686d0

    Please let us know status.

    Thank you

    James

Maybe you are looking for

  • Sims 3 is not working after downloading the patch town on it.

    Original title: My Sims 3 usually work! My Sims 3 only works after I downloaded a new city for. He used just to open! Please help me!

  • How to create a backup CD?

    hey im using windows7 and I want to format my system (laptop) full and reinstall it if someone can please tell me how maka a backup for this CD?

  • VCS X8.1 search fields

    Updated our VCS to X8.1 according to the TAC suggests perhaps a problem and noticed that the search boxes on the registration pages are gone.  Haven't checked the other pages, but noticed when I went to see if someone has been registered on this page

  • XPS - L702X 32-bit drivers necessary?

    Hello, anyone knows where to find the drivers at least networking, so I can update the window 7 ultimate in windows update... Reference Dell seems to think that eveyone wants to only 64-bit, and I don't have any software a lot of 32-bit software and

  • Why logitech pro c910 webcam does not work in windows 8

    worked on windows 7. upgrade to windows 8. model pro c910 reported as compatible with windows 8. Downloaded the installation software appropriate for my 64-bit computer. followed the instructions carefully and installed cam. the first cam seemed to w