Could not find classloader

Hi,
I just installed WLS 8.1 and deployed my EJB jar file using the admin console.
According to the console the my service has been deployed successfully. However
looking into the server log I see the following error:
.DeploymentException: [Deployer:149233]An unexpected error was encountered during
the deployment process. - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not find classloader
for  MINAService.jar in {MINAService.jar=CLNode{[gcl], 18544571->10808772,[MINAService@],[MINAService.jar],[J2EEApplicationContainer$Component(MINAService)]}}
     at weblogic.management.deploy.slave.SlaveDeployer.throwUnexpected(SlaveDeployer.java:2222)
     at weblogic.management.deploy.slave.SlaveDeployer.access$700(SlaveDeployer.java:132)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2364)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
The server is running on port 7001. When I try to connect to the server at t3://localhost:7001
using my EJB client I get an excpetion saying:
We were unable to get a connection to the WebLogic server at t3://localhost:7001
Please make sure that the server is running.
Any idea what's going on?
Thanks very much.
Tony.

My client code was wrong.
Tony.
"Tony Blair" <[email protected]> wrote:
>
Hi,
I just installed WLS 8.1 and deployed my EJB jar file using the admin
console.
According to the console the my service has been deployed successfully.
However
looking into the server log I see the following error:
.DeploymentException: [Deployer:149233]An unexpected error was encountered
during
the deployment process. - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not
find classloader
for  MINAService.jar in {MINAService.jar=CLNode{[gcl], 18544571->10808772,[MINAService@],[MINAService.jar],[J2EEApplicationContainer$Component(MINAService)]}}
     at weblogic.management.deploy.slave.SlaveDeployer.throwUnexpected(SlaveDeployer.java:2222)
     at weblogic.management.deploy.slave.SlaveDeployer.access$700(SlaveDeployer.java:132)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2364)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
     at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
The server is running on port 7001. When I try to connect to the server
at t3://localhost:7001
using my EJB client I get an excpetion saying:
We were unable to get a connection to the WebLogic server at t3://localhost:7001
Please make sure that the server is running.
Any idea what's going on?
Thanks very much.
Tony.

Similar Messages

  • 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: SearchExcel.  Program will exit.  ????

    sekic0429{uabudd_milou}[w10/rbssw/2.0] pwd
    /tmp/MyJava/jexcelapi
    sekic0429{uabudd_milou}[w10/rbssw/2.0] printenv CLASSPATH
    /tmp/MyJava/excelapi:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib
    sekic0429{uabudd_milou}[w10/rbssw/2.0] ls
    build ExcelSearch.java index.html resources SearchExcel.java~ tutorial.html
    docs ExelSearch.java~ jxl.jar SearchExcel.class src workbook.dtd
    ExcelSearch.class formatworkbook.dtd jxlrwtest.xls SearchExcel.java TestSpecification.xls
    sekic0429{uabudd_milou}[w10/rbssw/2.0] javac -extdirs . ExcelSearch.java
    sekic0429{uabudd_milou}[w10/rbssw/2.0]
    sekic0429{uabudd_milou}[w10/rbssw/2.0] java ExcelSearch
    Exception in thread "main" java.lang.NoClassDefFoundError: ExcelSearch
    Caused by: java.lang.ClassNotFoundException: ExcelSearch
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: ExcelSearch. Program will exit.
    sekic0429{uabudd_milou}[w10/rbssw/2.0] cat ExcelSearch.java
    import java.io.File;
    import java.io.IOException;
    import java.util.Date;
    import jxl.*;
    import jxl.read.biff.BiffException;
    public class ExcelSearch
    public static void main(String[] args)
    try
    Workbook workbook = Workbook.getWorkbook(new File("TestSpecification.xls"));
    catch (IOException e)
    e.printStackTrace();
    catch (BiffException e)
    e.printStackTrace();
    Regards Peter, hope for answer

    r035198x wrote:
    Where is SearchExcel.class?Excellent question, though I think I spotted a problem with the cp supplied.
    Note the documentation for -cp state (in part)
    For example, if directory foo contains a.jar and b.JAR, then the class path element foo/* is expanded to a A.jar:b.JAR, except that the order of jar files is unspecified.So instead of this..
    java -cp /tmp/MyJava/excelapi:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib SearchExcel..try this..
    java -cp /tmp/MyJava/excelapi/*:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib SearchExcelNotes:
    1) Adding the JRE classes to the classpath should not be necessary, but I left the rest of the cp unaltered to highlight the one specific difference I am suggesting.
    2) When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use them, select the sample text and click the CODE button.
    If that still fails, tell us more specifically where the SearchExcel class is by copy/pasting the output (within code tags) of the command..
    prompt>jar -tvf mysearchexcel.jarWhere, of course, you replace 'mysearchexcel.jar' with the actual Jar name it is supposed to be located in.
    Edit 1:
    Changed JavaDocs -> documentation.
    Edited by: AndrewThompson64 on Jan 11, 2010 7:12 PM

  • Could not find the main class. Program will exit!

    I have created many Executable Jar files before, and this one I did the same. When I run the jar file, (Clicking on it) I get the "Could not find the main class. Program will exit!" error message. When I run the jar file through DOS I get this Stack trace:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/ControllerListener
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
    Any Ideas? I did a search on google, and looks like others have had this problem but found no answer.
    US101

    There could be several reasons for getting this "Could not find main class" error message. From your stack trace it looks like the class javax/media/ControllerListener is not in your class path. Make sure your manifest file has a line like this:
    Class-Path: pathToTheJarFileWithControllerListenerClass.jar otherJars.jar
    This error message is also generated whenever any static initialization errors out giving the misleading error message implying that there is something wrong with the main class. Prior to starting your main class, static initialization of any static variables takes place. In my case, I was initializing a resource bundle, and forgot to include the property file in my building of the jar file. Well this failed of course and the generic error message appeared. It took many long hours to figure out it didn't have anything to do with the manifest file or the main class itself.
    HTH,
    John Bender

  • Could not find the main class: projectRFID.ProjectGUI. Program will exit.

    Hello,
    I'm quite new in Java. I have an application with GUI. When I'm using Eclipse version 3.4.0 to run the application, all it is working perfect.
    But after I generate the jar from Eclipse, using the manifest file option from there and added the ProjectGUI to it, where is the main class, and try to run from the command line I receive the next error:
    root@slax:~/workspace# java -jar rfid.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: projectRFID/ProjectGUI
    Caused by: java.lang.ClassNotFoundException: projectRFID.ProjectGUI
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: projectRFID.ProjectGUI. Program will exit.
    root@slax:~/workspace#
    I run this application on a SLAX system with jdk6 update 7.
    I tried to generate the jar file even from the command line using the manifest file option but I still receive the same error.
    I hope somebody can help me!
    Thank you!

    cojogrizli wrote:
    The structure of my project in Eclipse is src/project/files.java and in jar file is src/files.java bin/class.java Dati/ and META-INF/.That's wrong. You don't need the .java files in the jar (but you can have them, if you want, they are just not used by Java).
    And each .class file must be in a directory that reflects its package. So in your example ProjectGUI.class must be in the directory projectRFID/ inside the .jar file.

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

  • Could not find the OffLine WLST class (WL 10.3)

    Hi,
    I am confused about this scenario, please help me.
    I keep getting the below when I run the wlst.sh script.
    Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class
    So what I did was add weblogic.jar to the classpath in the script. But I still get the same error. However, if I run it from the command line without the -D option, I no longer get that error, but get one about abother missing class.
    Here is my wlst.sh
    # cat wlst.sh
    #!/bin/sh
    # set up WL_HOME, the root directory of your WebLogic installation
    WL_HOME="/exec/products/weblogic/v10.3/bea/wlserver_10.3"
    # set up common environment
    . "${WL_HOME}/server/bin/setWLSEnv.sh"
    CLASSPATH="${CLASSPATH}:${WL_HOME}/common/eval/pointbase/lib/pbembedded57.jar:${WL_HOME}/common/eval/pointbase/lib/pbtools57.jar:${WL_HOME}/common/eval/pointbase/lib/pbclient57.jar:${WL_HOME}/server/lib/weblogic.jar"
    echo
    echo CLASSPATH=${CLASSPATH}
    "${JAVA_HOME}/bin/java" -Dprod.props.file=${WL_HOME}/.product.properties weblogic.WLST $*and here is the properties file it is using
    # cat ${WL_HOME}/.product.properties
    #Mon Nov 30 13:34:33 CET 2009
    JAVA_HOME=/usr/java6_64
    WLS_JAVA_HOME=/usr/java6_64
    JAVAHOME=/usr/java6_64
    PLATFORMHOME=/exec/products/weblogic/v10.3/wlserver_10.3
    WLS_INSTALL_DIR=/exec/products/weblogic/v10.3/wlserver_10.3
    javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    java.vm.version=2.4
    LOCALE=en
    CONFIGWIZ_HOME=/exec/products/weblogic/v10.3/wlserver_10.3
    java.vm.vendor=IBM Corporation
    javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    WLS_JAVA_VENDOR=Unknown
    javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    DOCSWEBROOT=http\://e-docs.bea.com/wls/docs103
    NODEMGR_PORT=5556
    BEAHOME=/exec/products/weblogic/v10.3/bea
    WL_HOME=/exec/products/weblogic/v10.3/bea/wlserver_10.3So to sum up, when after adding weblogic.jar to the classpath, I still get the same error if I run the script where it uses the properties file.
    However, if I run it without using the properties file, then I get
    # java weblogic.WLST
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.descriptor.DescriptorClassLoader
            at weblogic.WLST.main(WLST.java:19)
    Caused by: java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorClassLoader
            at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
            ... 1 moreSo any ideas on how to get this working would be appreciated.

    Hi,
    If you need access to WebLogic container code on top of WLST scripting API such as the scenario where a plain SE Java class needs to call a remote method on a Stateless/Stateful session bean for example - I find it is easier to include the generated wlfullclient.jar - just don't use this jar in an application managed servlet context.
    For non-EE/ejb/web contexts (SE) use wlfullclient.jar generated from
    $WLS_INSTALL\wlserver_10.3\server\lib>java -jar wljarbuilder.jarThen run your client with the above jar in the classpath like
    java -cp .;wls/wlfullclient.jar org.eclipse.persistence.example.distributed.Clientthank you
    /Michael O'Brien
    http://www.eclipselink.org

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

  • Another "could not find main class"  thread

    Hello everybody
    I know there's tons of threads on this subject but none of them seem to be quite like mine.
    I'm trying to deploy an application that I developped with Jbuilder 2006 Enterprise (trial version). It automatically created the "ServerApp.jar" file and the manifest but when I try to run it I get the famous message: "Could not find the main class. Program will exit." My main class is "Application" and it's in a package called "serverapp".
    here's a copy of my manifest:
    Manifest-Version: 1.0
    Main-Class: serverapp.Application
    it has two extra lines at the end.
    I read on the other threads that I also needed a .bat file (don't know quite why) so I created one. It looks like this:
    @ECHO ON
    Set Path = C:\Program Files\Java\jre1.5.0_04\bin
    cd C:\Documents and Settings\Naby\My Documents\Travail\Synapco\BlackeBerry\ServerApp
    javaw -jar ServerApp.jar
    EXIT
    One last thing: when I run the .jar file from the command line using the syntax
    java -jar serverapp.jar
    I get this more detailled error message:
    C:\Documents and Settings\Naby\My Documents\Travail\Synapco\BlackeBerry\ServerAp
    p>java -jar serverapp.jar
    Exception in thread "main" java.lang.SecurityException: no manifiest section for
    signature file entry javax/mail/internet/AsciiOutputStream.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVe
    rifier.java:377)
    at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVeri
    fier.java:231)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
    .java:176)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
    at java.util.jar.JarVerifier.update(JarVerifier.java:188)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:318)
    at java.util.jar.JarFile.getInputStream(JarFile.java:383)
    at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:62
    0)
    at sun.misc.Resource.cachedInputStream(Resource.java:58)
    at sun.misc.Resource.getByteBuffer(Resource.java:113)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
    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)
    I don't know what is going on here.
    Any help would be really appreciated
    Thanks.

    Thanks for the reply martin
    what jar file are you refering to? I only have one jar file wich is "serverapp.jar" and that's the one I want to run.

  • Problem with message: Could not find the main class Program will exit

    I don't get why this isn't working. Any help is appreciated.
    //Code start
    public class hello{
    public hello(){
    public static void main( String args[] ){
    System.out.println("Hello");
    //Code end
    I compile it as so:
    javac hello.javaIt compiles fine and I now have hello.class in my current directory, but when I type the following:
    java helloI get this:
    Exception in thread "main" java.lang.NoClassDefFoundError: hello
    Caused by: java.lang.ClassNotFoundException: hello
    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: hello. Program will exit.

    mring001 wrote:
    That worked. Thank you very much!Good. You should read [_Setting the class path_|http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html] that tells you more about what the classpath is and how to set it.

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

  • Error when deleting file: Could not find this item. This is no longer located in ...

    We are setting up a new Windows 2012 server. Users access this server using a 'terminal services'. We have mapped some folders from a legacy server (different domain). Using group policy preferences, we map this folder as a drive for a user.
    When user wants to delete some files, he get's the error: 'Could not find this item ..' The error is displayed to the user and it looks like the file can't be deleted. But when I press the F5 (refresh) button, the file is gone. My problem is very similar
    to a problem in the following post: http://social.technet.microsoft.com/Forums/windowsserver/en-US/042e747a-0e25-4190-b0a2-82f3e9635eb0/can-not-delete-file-error-is-could-not-find-this-item?forum=w7itprogeneral
    When I create 'txt' (or 'pdf', 'zip') file, i can delete it without the error. When I create 'xlsx', 'docx', 'pptx', 'bmp', 'jpg', I get the error.
    Does somebody have an idea, how can I fix the cause of this problem? (I can't tell to users to hit the F5 button everytime when they face this issue)
    Thank you for your help in advance!
    Juraj

    Hi,
    Please check if the problematic files’ filename ended with a dot. If so, you could refer to the article below to troubleshoot the issue:
    Solved: “Cannot read from the source file or disk”
    http://blog.dotsmart.net/2008/06/12/solved-cannot-read-from-the-source-file-or-disk/
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Re:one or more project in the solution was not loaded correctly, Could not find a part of the path

    Please I have been having  problems loadig the adventuremultdime2012, I downloaded the visual studio 2013
    but it is showing me this path
    C:\Users\PC\AppData\Local\Temp\Temp5_AdventureWorks Multidimensional Models SQL Server 2012 (3).zip\AdventureWorks Multidimensional Models SQL Server 2012\Enterprise\AdventureWorksDW2012Multidimensional-EE\AdventureWorksDW2012Multidimensional-EE.dwproj :
    error  : Could not find a part of the path 'C:\Users\PC\AppData\Local\Temp\Temp5_AdventureWorks Multidimensional Models SQL Server 2012 (3).zip\AdventureWorks Multidimensional Models SQL Server 2012\Enterprise\AdventureWorksDW2012Multidimensional-EE\AdventureWorksDW2012Multidimensional-EE.dwproj'.
    I guess its a hidden file or I have deleted it, because I cant find it too, any help please

    Looks like you've either moved the file to somewhere else or it got deleted
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Infopackage Idocs in status 2 - could not find code page for receiver system

    Hi,
    We just migrated our production system from BW 7.01 non unicode to BW 7.4 on HANA.
    We now encounter issues with idocs while loading data into bw from our ECC5 source. When we analyze idocs in the source system it appears with the message "could not find code page for receiver system"
    One weird thing is that the idoc seems to have been created before we started the infopackage in bw.. We controlled system time and AS time and everything seems ok.
    We did not encounter this issues on our previous migration test runs..
    Hope someone can help
    Christophe

    Hi,
    Thanks for responding. We finally found out what the problem was.
    We have two applications servers on our ECC with 2 different OS. One of them could not reach the new BW HANA server.
    Regards
    Christophe

Maybe you are looking for

  • In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

  • White line at letterbox bottom

    Hi, I am having a problem when authoring with Encore CS3 on an Intel Mac. I have compressed a 16x9 SD movie in Sorenson Squeeze.  I bring it into Encore for authoring. When I preveiw the disc before building, with the preview set to show 16x9 letterb

  • Authorization issue won't allow me to read books on Kobo

    I just bought 2 new books from Kobo books. I loaded them on Adobe Digital Editions and transferred them onto my Kobo. However on my kobo, I cannot open the books its says that I am not authorized to view them. But both my Kobo and computer say they a

  • Built-in Isight on Windows Xp via Boot Camp

    Does anyone know how to make the built in Isight on my Intel Imac to work. Windows just doesnt pick it up and I cant fire it up using an program - if there is some kind of a software or patch availabble to get this thing to work would be great

  • Is This The Best Way To Put iMovie Effects On An FCE Clip?

    I have often suggested to other people that they should export clips from FCE to iMovie in order to make use of certain iMovie effects that FCE can't do. As with most things there are several different ways of "transporting" the clips. Bearing in min