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/

Similar Messages

  • "Could ntot find the main class : PdfToImage"

    I am trying to produce a jar that I can execute from the command line. Currently it executes fine if I hit F6 to run the code in the Netbeans IDE.
    I read this article:
         http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html
    but still can't get it to run from the command line. The error I get when clicking on the jar file is:
    "Could not find the main class PdfToImage"
    The source code is this:
    package converttoimage2;
    ...import statements here
    public class PdfToImage{
         public static void main(String[] args) {
    To build a jar file I navigated to the NetbeansProjects folder and typed the following (is this wrong?)
         jar cfm PdfToImage.jar ConvertToImage2\manifest.mf ConvertToImage2
    No error messages occured here. The manifest file originally was this (BTW I don't understand what that X-comment is trying to say)
         Manifest-Version: 1.0
         X-COMMENT: Main-Class will be added automatically by build
    so I added this line:
         Main-Class: PdfToImage
    and yes, I pressed Enter at the end of this line. This is the manifest that generates the error. I get the same error this way:
         Main-Class: converttoimage2.PdfToImage
    The code I'm using from the Windows command line to execute the jar (after I copy the jar file to the c-drive) is this:
         java -jar C:\PdfToImage.jar
    This errors out with
         Could not find the main class: PdfToImage
    I've also tried this;
         java C:\PdfToImage.jar
    The next thing i tried was to navigate to the class folder containing the PdfToImage.class. I copied the manifest into this class folder as well.From there I typed:
         jar cfm PdfToImage.jar manifest.mf PdfToImage
    This produced a jar file with no error messages, but I get the original error messsage when I try to execute. Also I doubt this last jar file is complete since it is only 2KB in size (My code references a library called PdfRenderer which is a 2MB jar).
    I'm completely lost here.

    I am trying to produce a jar that I can execute from the command line. Currently it executes fine if I hit F6 to run the code in the Netbeans IDE.You can make a jar from NetBeans, "Build > Build Main Project" (Shortcut - F11). Or right click the project in the project window and select "Build".
    I read this article:
         http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html
    OK, if you want to create a jar without Netbeans, then following link would help you a lot:
    [http://java.sun.com/docs/books/tutorial/deployment/jar/index.html]
    Thanks!

  • Can not open photshop CC 2014     ERROR  could not initialize Photoshop because of a program error

    Hi
    I can not open Photshop CC 2014
    ERROR
    could not initialize Photoshop because of a program error

    I've had the same error happen to me.  I deleted the preferences file, updated JAVA, etc.  none of which worked.
    I've spent days systematically working to isolate the variable that seems to make Photoshop work one day and "not initialize" the next.  I simply can't afford to stop work when Photoshop doesn't want to initialize due to: PSOWLListenerProxyBaseCocoa.mm : 52 : REQUIRE failed
    Apologies, but I REQUIRE YOU TO INITIALIZE!
    I think that I've isolated the problem.  I have a dual monitor set-up.  Sometimes I use the second monitor and sometimes I don't, sometimes monitor 2 is powered on and sometimes it's not.  It's really the only thing with any variance on my system.  I disconnected my second monitor.  Then I clicked the Photoshop icon and the program opened...
    I am running OS X 10.9 and Photoshop CS 5.1
    There appears to be a link between Photoshop not wanting to initialize and Graphics Card / Monitors. 

  • Could not find the main class error with executable jar

    Hello,
    I have troubles creating an executable jar file and I ran out of ideas how to solve it so I would appreciate some help.
    I have created a jar file with the export function in eclipse
    the Manifest.MF file contains:
    Manifest-Version: 1.0
    Main-Class: view.AppTennisViewI tried starting the file with a batch file which contains following code:
    @echo off
    javaw -classpath c:\TennisHSQLDB_GC2\tennisApp.jar
    @start javaw -jar tennisApp.jar
    exitthe batch file and the jar are both located in c:\TennisHSQLDB_GC2.
    When i try command line I get the same result.
    I also tried alternate statements such as SET CLASSPATH iso javaw -classpath and including the classpath in the manifest file but no luck. It keeps given me the error: could not find the main class. program will exit
    Anyone any suggestions for my problem?

    nevermind, found it.
    classpath in manifest was incorrect

  • 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.

  • Could not find the main class in Eclipse

    Hey,
    I've been working with Java for a few years now, but I recently set-up a new Eclipse-environment and now my Application won't run...
    "Could not find the main class. Program will exit."
    If I compile and run the source myself it works fine, so it must be a setting in Eclipse somewhere...
    It doesn't work, even when I put the class in the default package...
    It must be something very stupid, but I can't seem to find out what the problem is :(

    It was only the basic Hello-World-concept;
    public class Game extends JFrame {
         /** A default SerialVersionUID */
         private static final long serialVersionUID = 1L;
         public Game() {
              addKeyListener(new GameController());
              MainView view = new MainView(...);
              add(view);
          * @param args The game-options
         public static void main(String[] args) {
              Game spel = new Game();
              spel.setSize(1024, 768);
              spel.setTitle("Java Rally");
              spel.setResizable(false);
              spel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              spel.setVisible(true);
    }

  • 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

  • Help Me Urgent...Error: "Could not find the main class. Program will exit."

    Am using Eclipse 3.3.2
    I have a project called: SWDS
    Initially i have JDK1.6 installed in my system. At this time the project is running succesfully.
    But when i removed(uninstalled and environment path also removed) JDK 1.6 and installed JDK 1.5 and path also given.
    No changes are made in the project code.
    When I Run the project SWDS then showing an alert "*Could not find the main class. Program will exit*" and then getting error messages like:
    {color:#ff0000}java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(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"{color}
    Pleez help me how to rectify this error.

    The manifest file is missing from the project.
    I searched the net and read about the manifest file and I saw that it is supposed to be located in META-INF/MANIFEST.MF. I suppose that means project_root/META-INF/MANIFEST.MF, right ?
    I am asking this because I haven't got that much experience in Java and this is the first time I hear about a manifest file.
    Does anyone have any Ideea how I add a manifest file to a project with Eclipse SDK? I searched the menus and I didn't find anithing of such sort... o
    Does Eclipse have support for editing manifest files at all?

  • 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?

  • Error: "Could not find the main class: Files\NetBeans"

    I am working on a WorldWind mapping application but I think this issue is more of a straight Java question. I was attempting to add a web service reference by means of the NetBeans IDE. The reference compiled as it should have but then the application would not run. I deleted the reference, commented out all the code that used the web reference, basically restored all the code to how it was before trying to add the web service. The applicaiton still will not run with the message that it can't find the main class. I do, however, get a clean build. What should I do to fix this?
    Here is the error: "Could not find the main class: Files\NetBeans"
    thanks!

    nigel25840 wrote:
    I am working on a WorldWind mapping application but I think this issue is more of a straight Java question. I was attempting to add a web service reference by means of the NetBeans IDE. The reference compiled as it should have but then the application would not run. I deleted the reference, commented out all the code that used the web reference, basically restored all the code to how it was before trying to add the web service. The applicaiton still will not run with the message that it can't find the main class. I do, however, get a clean build. What should I do to fix this?
    Here is the error: "Could not find the main class: Files\NetBeans"
    thanks!Sounds like something (a .cmd file or .bat file, perhaps) is set up to launch NetBeans with a command line like this:
    java -classpath ... c:\Program Files\NetBeans ...
    So since the path has embedded space(s) in it, it thinks you are wanting to run a class named "Files\NetBeans", which does not exist.
    You need someone there who knows what they are doing to look into it for you.

  • Error msg Could not find the main class.Program will exit. in jar execution

    Hello,
    I have created a jar so that I can used it in the webapp.
    but when I click on it it says "Could not find the main class.Program will exit."
    I searched a lot in the net and found that it has to do with the manifest file.
    I even updated the manifest file using the command "jar umf main.txt filefolderupload.jar" with the class name mention along with the package heirarchy.
    (pakage heirarchy in /,\ and .)
    I am using JDK 1.5 . and have Updated JRE 1.6.
    Also tried with extending the class with JApplet, but in vain.
    Kindly help me in the above mention issue.
    tia,
    Sarwa

    This post hints at a number of misunderstandings on your part, and raises a couple of important questions.
    Note that this 'simple question' has a complicated answer. Given the complexity of it, it might pay to add Dukes to it, ..a lot of Dukes.
    The important questions are.
    1) Does this file/directory uploader need to provide the end-user with a file dialog in which they can choose a local directory to upload, or will a multi-file chooser do?
    2) Does this uploader need to upload to foreign sites, or does it upload back to its own server?
    Looking at this table I prepared to describe the [uploader/local file access|http://pscode.org/test/uploader/fileuploader.html] possibilities, if the answers to the questions are 'multi-file chooser will do' and 'home site only', the best option is a sandboxed app. launched using webstart (JNLP) - option 5. If either of those questions go the other way, option 6 (digitally signed with extended permissions) is needed.

  • "Could not find the main class" Error While installing 11g in windows 7

    Dear All,
    I am getting error message while installing oracle 11g R1(32 bit) on Windows 7(32 bit)
    I have downloaded from oracle website only..
    After Clicking the OUI I am getting the Error Message pop up is "Could not find the main class.Program will exit"
    I don't know what is the reason behind this error .
    what would be the reason for this error..
    Pls help me....
    By
    Muthu

    I think you need to download oracle software again...
    Oracle Universal Installer - Could not find main class

  • 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.

  • Help: error: can not find the main class!

    when I run the class, the following error message comes up:
    java.lang.NoClassDefFoundError: j2sdk1/4/1
    and also a dialogue window (title is "java virtual machine launcher") comes up: could not find the main class, program will exit! After I click ok button, another error message shows up: Exception in thread "main" .
    Could anyone help me figure out what's wrong with my program? If you need any other informaiton, please email me: [email protected], Thanks a lot!!!

    Hi, thank you very much for your reply. Here is the program:
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.lang.Object;
    public class CatalogConnect{
    Statement stmt, st, mast, ques;
    ResultSet rset, orgset,maset, quesset;
    String organization = null;
    String sponsor = null;
    String interMethod = null;
    String year = null;
    String collection = null;
    String country = null;
    String countryName = null;
    String archNO = null;
    String codeBook = null;
    String td = null;
    String todate = null;
    String month = null;
    int studyID, quesID, sponsorID, orgID;
    public CatalogConnect(){
    connect();
    makeXMLFile();
    public CatalogConnect(String codeBk){
    codeBook = codeBk;
    connect();
    makeXMLFile();
    public void connect(){
    try{
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Class.forName(oracle.jdbc.driver.OracleDriver);
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.37.146:1521:ipoll",
    "catalog", "catalog");
    stmt = conn.createStatement ();
    st = conn.createStatement ();
    mast = conn.createStatement ();
    Connection conn2 =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.36.171:1521:ipolljr2",
    "catalog", "catalog");
    ques = conn2.createStatement ();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void main (String args[]){
    CatalogConnect c = new CatalogConnect();
    public void makeXMLFile() {
    PrintWriter out = null;

  • [newbie] [error] Could not find the main class

    This program does not compile on the command line, however they run within Eclipse 3.4.2 IDE. JDK does not seem to be installed in the usual path under C:\Program Files\Java..jdk, however I have installed the following which I presume should include the jdk:
    Eclipse 3.4.2
    SunGlass Fish Enterprise Server 2.1.1
    Any ideas? Is this a bug?
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\Java\JavaDev>di
    r
    Volume in drive C has no label.
    Volume Serial Number is D80F-8634
    Directory of C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\J
    ava\JavaDev
    08/12/2009 11:31 <DIR> .
    08/12/2009 11:31 <DIR> ..
    28/04/2009 18:32 <DIR> corejava8
    08/12/2009 10:42 2,505 Java CLI.lnk
    20/04/2008 11:44 241 Java Platform SE 6.url
    28/04/2009 18:32 <DIR> myCode Snippets
    08/12/2009 11:43 480 TestPassword.java
    3 File(s) 3,226 bytes
    4 Dir(s) 39,149,547,520 bytes free
    C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\Java\JavaDev>pr
    ompt $g
    dirVolume in drive C has no label.
    Volume Serial Number is D80F-8634
    Directory of C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\J
    ava\JavaDev
    08/12/2009 11:31 <DIR> .
    08/12/2009 11:31 <DIR> ..
    28/04/2009 18:32 <DIR> corejava8
    08/12/2009 10:42 2,505 Java CLI.lnk
    20/04/2008 11:44 241 Java Platform SE 6.url
    28/04/2009 18:32 <DIR> myCode Snippets
    08/12/2009 11:43 480 TestPassword.java
    3 File(s) 3,226 bytes
    4 Dir(s) 39,149,547,520 bytes free
    javac TestPassword.java'javac' is not recognized as an internal or external command,
    operable program or batch file.
    java testPassword.javaException in thread "main" java.lang.NoClassDefFoundError: testPassword/java
    Caused by: java.lang.ClassNotFoundException: testPassword.java
    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)
    Could not find the main class: testPassword.java. Program will exit.
    type testPassword.javaimport java.io.Console;
    public class TestPassword {
    public static void main(String[] args) {
    Console cons;
    char[] passwd = {'x','x'};
    if ((cons = System.console()) != null &&
    (passwd = cons.readPassword("[%s]", "Password:")) != null);
    if (passwd.equals("joe"))
    {System.out.println("password is fine");}
    //Clear password array (Security note)
    java.util.Arrays.fill(passwd, ' ');
    javap'javap' is not recognized as an internal or external command,
    operable program or batch file.
    javac'javac' is not recognized as an internal or external command,
    operable program or batch file.
    echo $PATH$PATH
    echo %PATH%PATH
    echo %PATH%C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
    DOWS\system32\WBEM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\WINDO
    WS\system32\WindowsPowerShell\v1.0;c:\Program Files\Microsoft SQL Server\100\Too
    ls\Binn\VSShell\Common7\IDE\;c:\Program Files\Microsoft SQL Server\100\Tools\Bin
    n\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsof
    t Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Sun\SDK\bin;C:\PROGRA~1\MI
    CROS~2\Office12
    DIRVolume in drive C has no label.
    Volume Serial Number is D80F-8634
    Directory of C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\J
    ava\JavaDev
    08/12/2009 11:31 <DIR> .
    08/12/2009 11:31 <DIR> ..
    28/04/2009 18:32 <DIR> corejava8
    08/12/2009 10:42 2,505 Java CLI.lnk
    20/04/2008 11:44 241 Java Platform SE 6.url
    28/04/2009 18:32 <DIR> myCode Snippets
    08/12/2009 11:43 480 TestPassword.java
    3 File(s) 3,226 bytes
    4 Dir(s) 39,149,498,368 bytes free
    javaw TestPassword.java
    dirVolume in drive C has no label.
    Volume Serial Number is D80F-8634
    Directory of C:\Documents and Settings\Jon\My Documents\My Archives\My eBooks\J
    ava\JavaDev
    08/12/2009 11:31 <DIR> .
    08/12/2009 11:31 <DIR> ..
    28/04/2009 18:32 <DIR> corejava8
    08/12/2009 10:42 2,505 Java CLI.lnk
    20/04/2008 11:44 241 Java Platform SE 6.url
    28/04/2009 18:32 <DIR> myCode Snippets
    08/12/2009 11:43 480 TestPassword.java
    3 File(s) 3,226 bytes
    4 Dir(s) 39,149,494,272 bytes free
    java HelloWorld.javaException in thread "main" java.lang.NoClassDefFoundError: HelloWorld/java
    Caused by: java.lang.ClassNotFoundException: HelloWorld.java
    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)
    Could not find the main class: HelloWorld.java. Program will exit.
    type HelloWorld.javapublic class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello world!");
    echo %PATH%C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
    DOWS\system32\WBEM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\WINDO
    WS\system32\WindowsPowerShell\v1.0;c:\Program Files\Microsoft SQL Server\100\Too
    ls\Binn\VSShell\Common7\IDE\;c:\Program Files\Microsoft SQL Server\100\Tools\Bin
    n\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsof
    t Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Sun\SDK\bin;C:\PROGRA~1\MI
    CROS~2\Office12
    java -versionjava version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
    >

    java testPassword.javaThe JRE doesn't run source code. You haven't installed a JDK. Forget Eclipse, you need to revisit some fundamentals, my friend.

Maybe you are looking for