Trying to create Executeable jar file.Exception in thread main NoClassDef

Hi,
I am trying to create an executeable jar file.While running i am getting exception.
Exception in thread "main" java.lang.NoClassDefinitionFoundError: jartest
my java file: jartest.java
public class jartest
public static void main(String args[])
System.out.println("Weldone Phani");
I created a jar file name jartest using following command
jar cf jt.jar jartest.class
and then i created an manifestfile m.txt the following is m.txt
Manifest-Version: 1.0
Main-Class: jartest
Created-By: Me And My Family
Name: jartest.class
Java-Bean: False
Then i updated the manifest file in the jt.jar using following command
jar cmf m.txt jt.jar
while i try to execute the jar (java -jar jt.jar ) i am getting the above said exception
Where i went wrong. Thanks in advance.
phani

Please in the future do a search on the forum for your answer. If everyone asks the same question 10 times, then there is not one thread where a person can look, but 10 - each with a small piece. In fact, in this forum the second thread from the top answered your question/problem:
http://forum.java.sun.com/thread.jsp?forum=22&thread=141944
(You have a few problems, one of which is that the manifest MUST be named "MANIFEST.MF", and it MUST be in the folder "META-INF" from the jar's root. For the rest of the answers, look at the above thread)

Similar Messages

  • Exception while creating a jar file for bean

    Friendz,
    I am getting this error whenever i tried to create a jar file.
    I am using win 98 os and jdk1.4 please tell me what error it is
    C:\bean\programs\spectrum>jar cfm a.jar manifest.mft spectrum.class
    java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:355)
    at java.util.jar.Manifest.read(Manifest.java:162)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Contents of manifest template file:
    Name:spectrum.class
    Java-Bean:True

    Manifests are saved with the .mf file extension. Rename your manifest mainfest.mf.

  • Creating a jar file

    Hello all. I am trying to create a jar file for a *"hello world"* program. I compiled the code using netbeans and created the jar file from the HelloWorld.class. I added the main class to the manifest with the following line
    Main-Class: helloworld.HelloWorld
    Ensured there was a carriage return just before the end of the file.
    When I run the program I get the following error:
    h1Exception in thread "main" java.lang.NoClassDefFoundError: helloworld/HelloWorld*
    Please help

    I tried the last command it produced this error
    *C:\Documents and Settings\oshonowo\My Documents\Projects\DOS>set JAVA_HOME=c:/Pr
    ogram Files/Java/jdk1.6.0_03
    C:\Documents and Settings\oshonowo\My Documents\Projects\DOS>set classpath=C:\Pr
    ogram Files\Java\jdk1.6.0_03\lib\;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJa
    va.zip;C:\Program Files\Java\jdk1.6.0_03\jre\lib;C:\Program Files\Java\jre1.6.0_
    03\lib;%CLASSPATH%;.;C:\Documents and Settings\oshonowo\HelloWorld\build\classes
    \helloworld\Hello.jar
    C:\Documents and Settings\oshonowo\My Documents\Projects\DOS>"c:/Program Files/J
    ava/jdk1.6.0_03\bin\java" helloworld.HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworld/HelloWorld
    C:\Documents and Settings\oshonowo\My Documents\Projects\DOS>pause
    Press any key to continue . . .*
    Please help

  • Creating a JAR file in RAD

    Hello, I am creating a simple JAR file containing a group of Java classes. It is not an executable JAR file and is simply a way for me to zip up a bunch of classes I want to use in another project. The problem is, after I create it in RAD using the JAR File Export and drop it into WEB-INF/lib in my other project, it shows as a text file in my Java perspective and I can't see any of the classes.
    Is there something else I need to do with my classpath or anything like that? I recently put the Jakarta Commons JAR in the same folder and after a refresh, it showed ready to go. What am I missing here?

    Rational Application Developer, IBM's IDE. It has a
    Create JAR file utility which supposedly makes it
    easy. I'd like to use this if I can because there
    are a ton of files. I just don't know what I'm doing
    wrong after I create it.Not many people here can help with a question related specifically to an IDE. I had a problem in the past when I tried to create a JAR file with Eclipse. After trying to create the JAR file using the command line utility, I was able to better figure out my error. I strongly recommend you do the same, and post any error message(s) you receive here.

  • Unable to create Executable JAR file

    Hi,
    I tried to create Executable JAR file for
    //JarTest.java
    class JarTest
         public static void main( String args[] )
              System.out.println("i am EXECUTABLE JAR ");
    mf is like
    Manifest-Version: 1.0
    Main-Class: JarTest
    used jar cmf JarTest.mf exe.jar *.classIt created a jar file but i can't Execute the file
    Help me
    Thanks
    AE

    java is choosy about the actual manifest file format (line ending, trailing empty line, whatever).
    This works for me with your example:
    posman@proli:~/ivan/aa> cat mf
    Manifest-Version: 1.0
    Main-Class: JarTest
    posman@proli:~/ivan/aa> od -cx mf
    0000000   M   a   n   i   f   e   s   t   -   V   e   r   s   i   o   n
            614d 696e 6566 7473 562d 7265 6973 6e6f
    0000020   :       1   .   0  \n   M   a   i   n   -   C   l   a   s   s
            203a 2e31 0a30 614d 6e69 432d 616c 7373
    0000040   :       J   a   r   T   e   s   t  \n  \n  \0
            203a 614a 5472 7365 0a74 000a

  • Can we make executable jar file which dont have main method?

    I have a problem.
    With whatever R&D i have done so far my understanding is that in order to create executable jar files i need a main method.
    my problem is i have certain MIS reports which are developed in java and deployed through JSP pages...so my java program has no Main Method and only objects of the classes are being called in the JSP pages.
    for e.g: i have a java class file BulkSms.class and i make an object of it in the JSP page through which my purpose is achieved by calling various method in the BulkSms through it s objects and there is no main method.
    Can i make an executable jar file without a main method and if so please give me a detailed procedure of how to go about it.
    i want to make it executable so tht on the click of it the MIS report is displayed from the JSP page.

    I am completely ignorant of JSPs, but you can not execute a jar or any java application unless you have a main method. It sounds like you need a way to launch the JSP - can't you do this with a browser?

  • Exception in thread "main" java.lang.NoClassDefFoundError: MayaFrame

    Hi I'm trying to run a Java program in DOS and I always get the following error message:
    C:\decom>java -classpath .;./jxl.jar Formula
    Exception in thread "main" java.lang.NoClassDefFoundError: MayaFrame
    at Application1.<init>(Application1.java:18)
    at Formula.main(Formula.java:35)
    Does anyone know what is wrong? I've tried to change the path several times, and it does not work. This is what I am using:
    C:\Program Files\Java\jdk1.5.0\bin
    Any help would be very much appreciated

    Start by going through this tutorial:
    Your First Cup of Java: Detailed instructions to help you run your first program:
    UNIX,
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html
    Microsoft Windows,
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
    Mac
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/mac.html
    Then take a look at these sections of the tutorial:
    JAR Files
    http://java.sun.com/docs/books/tutorial/jar/index.html
    Lesson: Solving Common Coding Problems
    http://java.sun.com/docs/books/tutorial/java/problems/index.html

  • Exception in thread "main" java.lang.NoClassDefFoundError: server Caused by

    I get this error when running a batch file
    Exception in thread "main" java.lang.NoClassDefFoundError: serverCaused by: java.lang.ClassNotFoundException: server
    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)
    Press any key to continue . . .
    I need to get this fixed because i can't run or compile

    Hi,
    It quite simple.
    It is missing with weblogic.jar with in classpath.
    Try to set weblogic.jar with in pre-classpath in setdomainEnv.sh file and restart the server
    You will find the weblogic.jar with in %WLS_Home% / server / lib
    Hope this should help you.
    Regards,
    Kal

  • Exception in thread "main" java.lang

    hi,
    I have java app which is called cutter.jar , I wanna run it using run.bat file which contain this line:
    java -classpath .;cutter.jar Cutter
    when I run --> run.bat I get this error message:
    java -classpath cutter.jar Cutter
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at Cutter.main(Cutter.java:96)
    Caused by: java.lang.NullPointerException
    at Preferences.<clinit>(Preferences.java:995)
    ... 1 more
    Please help ASAP, I'm not the Java user but must use this cutter app.
    Thanks

    Post each question only once.
    http://forum.java.sun.com/thread.jspa?threadID=5140780
    http://forum.java.sun.com/thread.jspa?threadID=5140779

  • Problem about "Exception in thread "main" java.lang.NullPointerException"

    This is t error message once i run the file
    Exception in thread "main" java.lang.NullPointerException
    at sendInterface.<init>(sendInterface.java:64)
    at sendInterface.main(sendInterface.java:133)
    * @(#)sendInterface.java
    * @author
    * @version 1.00 2008/7/18
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.GridLayout;
    import java.awt.Panel;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultListModel;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JRadioButton;
    import javax.swing.JScrollPane;
    import javax.swing.ListModel;
    import javax.swing.UIManager;
    import javax.swing.SwingConstants;
    import java.io.*;
    import java.sql.*;
    import java.net.*;
    public class sendInterface  /*implements ActionListener*/{
         JFrame frame = new JFrame();
         private Panel topPanel;
         private Panel sendMessagePanel;
         private Panel sendFilePanel;
         private JLabel senderID;
         private JLabel receiverID;
         private JLabel senderDisplay;
         private DefaultListModel receiverListModel = new DefaultListModel();
         private JList receiverID_lst = new JList(receiverListModel);
         private JRadioButton sendType;
         String userName;
         String[] userList = null ;
         int i=0;
         Connection con;     
        public sendInterface() {
             String ListName;
                 try
                     JFrame.setDefaultLookAndFeelDecorated( true );
              catch (Exception e)
               System.err.println( "Look and feel not set." );
           frame.setTitle( "Send Interface" );
             topPanel.setLayout( new GridLayout( 2 , 1 ) );                          //line 64*************************
             senderID = new JLabel( "Sender:", SwingConstants.LEFT );
             senderDisplay = new JLabel( "'+...+'", SwingConstants.LEFT );
             receiverID = new JLabel( "Receiver:", SwingConstants.LEFT);
    //         receiverID_lst = new JList( ListName );
              frame.add(senderID);
             frame.add(senderDisplay);
             frame.add(receiverID);
    //         frame.add(receiverListModel);
             frame.add(new JScrollPane(receiverID_lst), BorderLayout.CENTER);
             frame.setLocation(200, 200);
             frame.setSize(250, 90);
             frame.setVisible(true);
        public void setListName(String user)
             try{
                  userName = user;
                  Class.forName("com.mysql.jdbc.Driver");
                   String url = "jdbc:mysql://localhost:3306/thesis";
                   con = DriverManager.getConnection(url, "root", "");
                   Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   ResultSet rs = stmt.executeQuery("select * from user where User_ID!= '" + userName + "'");
                   System.out.println("Display all results:");
                   while(rs.next()){
                      String user_id = rs.getString("User_ID");
                      System.out.println("\tuser_id= " + user_id );
         //             receiverListModel.addElement(user_id);
                        userList=user_id;
                        i++;
              }//end while loop
              receiverListModel.addElement(userList);
         catch(Exception ex)
    ex.printStackTrace();
         finally
    if (con != null)
    try
    con.close ();
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors */ }
    public String getUserName()
         return userName;
    public String[] getUserList()
         return userList;
    public static void main(String[] args) {
    new sendInterface(); //line 133******************************************
    thank ur reply:D
    Edited by: ocibala on Aug 3, 2008 9:54 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    And where do you instantiate topPanel before you invoke setLayout?
    db

  • Createing a .jar file

    I am trying to get an excecutable and was told a .jar file is a good way to go with java.
    I have folowed some instructions from http://www.cs.sjsu.edu/faculty/kirchher/CS151/MakeJarHelp.htm
    and my final line should be
    C:Java>jar cmf .\MathAce.mf .\MathAce.jar .\*.class
    but when i hit return i get the following message
    'jar' is not recognised as an internal or external command,
    operatable program or batch file.
    Does anyone have any idea whats wrong.
    my OS is XP

    ok i did that and it created somthing, but when i tried to run it using
    C:\Java>j2sdk1.4.2_07\bin\java -jar MathAce.jar
    and now im getting an Exception in thread main message
    i dont understand why as the program runs fin in netBeans.
    Any ideas??

  • Jar file exception

    I created a jar file for the following java class.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class WMSMS extends JFrame{
         public native void SendSMS(boolean a,boolean b,String SMSC, String phno,String msg);
         static {
              try
                   System.loadLibrary("WMSMS");
              catch (UnsatisfiedLinkError e)
                   System.err.println("WMSMS.dll failed to load. \n" + e);
                   System.exit(1);
        public WMSMS() {
             JPanel contentpanel=(JPanel)getContentPane();
               contentpanel.setLayout(null);
               final JLabel jl=new JLabel("Phone NO:");
               addelement(contentpanel, jl, 10, 20, 100, 20);
               final JTextField jtxt=new JTextField(10);
               addelement(contentpanel, jtxt, 80, 20, 100, 20);
               final JLabel jl2=new JLabel("Message:");
               addelement(contentpanel, jl2, 10, 50, 100, 20);
               final JTextField jtxt2=new JTextField(10);
               addelement(contentpanel, jtxt2, 80, 50, 100, 20);
              JButton btn=new JButton("Submit");
              addelement(contentpanel, btn, 10, 80, 100, 20);
            btn.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent ae) {
                              SendSMS(false,true,"",jtxt.getText(),jtxt2.getText());
           setTitle("Sample");
           setSize(300, 300);
           setLocation(new Point(150,150));
           setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
           setVisible(true);
    private void addelement(Container c,Component e,int x,int y,int h,int w){
         e.setBounds(x, y, h, w);
         c.add(e);
    public static void main (String[] args) {
       new WMSMS();
    }I used the command :jar cvf WMSMS.jar WMSMS.classI created a shorcut lnk file using the the command:
    *255#"\J9\PPRO11\bin\j9.exe" "-jcl:ppro11" -Djava.library.path=\Windows "-classpath" "\Program Files\WMSMS\WMSMS.jar" "WMSMS"*
    to test the jar file in my windows mobile PDA.
    I placed the 'WMSMS.dll' in VC++ under the \Windows folder in the device.But on clicking the link it shows the following exception.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: (WMSMS) bad major version at offset=6 at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.findClassImpl(Unknown Source) at java.net.URLClassLoader$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Unknown Source) at java.net.URLClassLoader.findClass(Unknown Source) at com.ibm.oti.vm.URLSystemClassLoader.findClass(Unknown Source)
    Isnt this something related to jar file?
    Edited by: shreya_ann on Aug 19, 2010 2:30 AM

    No. It is related to trying to run a JAR file produced by a later JDK than the one you have installed. As it says in the Javadoc..

  • How do you create a jar file with txt and classes?

    Hey, I'm trying to create code to create a jar file with a text file, but I can't figure out how to add the text file. Here is what I have so far:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
            }It creates the .jar file with the correct manifest but I can't get it to write the test.txt or anything else into the jar file.
    -Gandolf
    Edited by: GanMatt on Jun 18, 2009 8:18 AM
    Edited by: GanMatt on Jun 18, 2009 8:19 AM

    Alright, my question has changed. Here's the code:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.write("Hi".getBytes());
                out.flush();
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this,ex.toString(),"BUG!",JOptionPane.INFORMATION_MESSAGE);
            }It creates the jar file with the txt file inside it, but I can't write "Hi" inside of the text file. Any ideas?
    -Gandolf

  • Trying to create runnable .rar-file

    I'm trying to create a runnable .jar-file of my application.
    I've got two classes, StealthServer and ClientThread. StealthServer cointains the main method. I've joined these classes in a .jar-file as Demo.jar. I made a manifest-file like this:
    Main-Class: StealthServerI joined the manifest-file with Demo.jar like this:
    jar cmf manifest.txt start.jar Demo.jarThe I tried to run start.jar like this:
    java -jar start.jarThat leaves me with this:
    Exception in thread "main" java.lang.NoClassDefFoundError: StealthServerCan anyone tell me what I'm doing wrong?

    This is what I got when I tried it your way ChuckBing.
    C:\Shared\Demo\bytecode>java -jar Demo.jar
    Exception in thread "main" java.lang.ClassFormatError: Incompatible
    1347093252 in class file StealthServer
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Sourc
            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)What is wrong now?

  • Trying to Create a Catalog file using WSIM (Windows System Image Manager)

    I have been looking online for a solution to htis problem for days and come up with nothing so any help would be amazingly helpful.
    I have created a Windows 8.1 image which I would like to role out to all users within my company but when trying to create a catalog file I am getting an erorr message saying "Windows SIM was unable to generate a catalog."  It says "Mounting
    Windows Image file......This might take a few minutes" and then fails after 6-7mins.
    When opening the log file I get this:
    10:00 : Cannot obtain read/write access for F:\sources\install.wim.
    In order to generate a catalog file, you must have read/write access to the Windows image file and its containing folder.
    10:13 :
    10:13 : Windows SIM was unable to generate a catalog. For troubleshooting assistance, see the topic: 'Windows System Image Manager Technical Reference' in the Windows OPK or Windows AIK User's Guide.
    10:13 :
    10:13 : System.InvalidOperationException: The operation failed to complete. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: String reference not set to
    an instance of a String.
    Parameter name: source
       at System.Globalization.CompareInfo.IsPrefix(String source, String prefix, CompareOptions options)
       at ?A0xfe36268f.ConvertToNtPath(String path)
       at Microsoft.ComponentStudio.ComponentPlatformInterface.CbsSessionAdaptor..ctor(String bootDrive, String imageWinDir, String servicingPath)
       at Microsoft.ComponentStudio.ComponentPlatformInterface.OfflineImageImpl.InitializePackages()
       at Microsoft.ComponentStudio.ComponentPlatformInterface.OfflineImageImpl..ctor(OfflineImageInfo imageInfo)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.PlatformImplementation.CreateOfflineImageInstance(OfflineImageInfo imageInfo)
       --- End of inner exception stack trace ---
    The one image that did work (LiteTouchPE_x64.wim) was from the OS I imported to Microsoft Workbench but the components are different to any that I have seen online when looking on how to do this.
    I have made sure that the architecture is x64 and tried from ISO files I have on the system already but get the same error.
    This is the first project I have been involved in and only ever done IT support before this.
    Thanks for your help in advance.

    Yes I am trying to capture a reference image that I have created on another machine and then reploy this through MDT. I am trying to open the Unattend.xml file because the "Capture and Sysprep" fails on the reference machine when trying to run
    Sysprep. When I try to open the Unattend.xml file in MDT I get the error below:
    Performing operation "generate" on Target "Catalog".
    Starting: "C:\Program Files\Microsoft Deployment Toolkit\Bin\Microsoft.BDD.Catalog35.exe" "D:\Windows8.1 TEST3\Operating Systems\Windows8.1 x64\Sources\install.wim" 1 > "C:\Users\*****\AppData\Local\Temp\3\Microsoft.BDD.Catalog.log"
    2>&1
    No existing catalog file found.
    PROGRESS: 0: Starting.
    PROGRESS: 0: Creating mount folder: C:\Users\*****\AppData\Local\Temp\3\IMGMGR_install_Windows 8.1 Enterprise_njegg3ph.con.
    PROGRESS: 5: Creating temp folder: C:\Users\*****\AppData\Local\Temp\3\IMGMGR_install_temp_qj0x3ga5.obv.
    PROGRESS: 10: Mounting Windows image: D:\Windows8.1 TEST3\Operating Systems\Windows8.1 x64\Sources\install.wim. This might take a few minutes.
    ERROR: Unable to generate catalog on D:\Windows8.1 TEST3\Operating Systems\Windows8.1 x64\Sources\install.wim: System.ComponentModel.Win32Exception: The process cannot access the file because it is being used by another process
       at Microsoft.ComponentStudio.ComponentPlatformInterface.WimImageInfo.PreCreateCatalog()
       at Microsoft.ComponentStudio.ComponentPlatformInterface.OfflineImageInfo.CreateCatalog()
       at Microsoft.BDD.Catalog.Program.DoCatalog()
    Non-zero return code from catalog utility, rc = 2002

Maybe you are looking for

  • Import/Export code using Memory ID in BO Method

    Hi experts, I am having a approver name and other relevant data in my report. I don't want to write the entire code I want to bring it into my BO method by using import/export memory id. Pl. guide me what should I do ? Is it possible or not? Thank yo

  • KB article 1490 on battery calibration needs work

    http://support.apple.com/kb/HT1490 says: "Disconnect the power adapter while the computer still on and start running the computer off battery power. You may use your computer during this time." Does "running" mean something different than "use"? Does

  • Page 1 missing Currency Symbol

    Hello Guys, I have a financial report, and I need to show currency symbol once on every page (first line on every page). I go to the Number tab on the field format, click Customize, then select the "Currency Symbol" tab and check 2 options - "Enable

  • XCode error: clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I am trying to make my game, but EVERY time it says this: clang: error: linker command failed with exit code 1 (use -v to see invocation) I have been pulling out my hair for the hours trying to figure out the awnser. There are a bunch of unrelated se

  • Modifying the standard doclet

    Hi, I have a requirement of adding a link in the header section of javadocs, that necessitates a modification to the standard doclet. The problem is elementary - how do I get started? I could not locate the com.sun.tools.doclets package in the jsdk 1