Results 1 to 2 of 2
  1. #1
    DetRich is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default Pls. Help with finding Main Class

    Hello,

    I've been given a java program which I must use on a regular basis.
    The program is named jcoe.jar and was working fine. There was no installation, just copy everything to the root of the c: drive and double-click on the .jar file.
    I copied the entire directory structure to the network and had my workstation re-staged. I then copied it all back down to the same location. Now, when I run the program, I get the following error message:
    Title Bar: "Java Virtual Machine Launcher"
    Error Msg: "Cold not find the main class. Program will exit."

    I've seen others have had this same issue but I've not seen a solution.
    Can anyone explain this to me? I'm not a developer so I don't know the ins & outs of java. I'm running Java Runtime Environment, Standard Edition 1.4.2_07.

    Thanks in advance,
    DetRich

  2. #2
    DetRich is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default Additional Info

    From a command prompt, I navigate to the C:\Program Files\Java\j2re1.4.2_07\bin folder and run "java <path to my program> and get the message:
    "Exception in thread "main" java.lang.NoClassDefFoundError: C:\DatapowerDeployment\bin\j2eebuildgui/jar"

    DetRich

Similar Threads

  1. Finding Jar files in a class file
    By bnrkcdc in forum Jobs Discussion
    Replies: 4
    Last Post: 09-08-2010, 02:46 PM
  2. different multiple public class and main class
    By mr idiot in forum New To Java
    Replies: 2
    Last Post: 01-01-2009, 01:10 PM
  3. Class Reflection: Finding super class names
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:12 PM
  4. Class Reflection: Finding class name
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:12 PM
  5. Class Reflection: Finding class modifiers
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •