WTK 2.5 doesn't create the jar file

Please help me! I'm using wtk2.5 and it's doesn't creates the jar file.
The classes are created and the program run's in the test phone, but the jar file is not created...
Any ideas...?
Please help!
Thank you
Message was edited by:
tprimus83

I found something.
"simply building does not create a package. Try Project -> Package -> create package.
hth
Kay "
Thank you Kay i woul'd try it

Similar Messages

  • Portal Service - Creating the JAR Files

    Hello All,
    I need some help with Portal Services, I have created a Service and Deployed it to the Portal Server, but can someone tell me how to create the JAR Files for PortalService to add them to other projects. I just want to confirm if we just:
    1. Export the IService files in a Jar file and add to the project.
    Please do let me know.
    Thanks,
    John.

    Hi John,
    You have to jar the class files of the Portal Service using the java jar command and add the jar in your other applications.
    You can go to the directory location of the class files of your Portal service in command prompt and type in this command..
    "jar -cvf <i>jarFileName</i>.jar ."
    the jar file will be created in the current directory.
    cheers
    Kiran

  • I Can't Create my jar File

    I have a package called voiceexpert which contains three classes: Disease, DiagnosingEngine and Symptoms which is a JavaBean. Symptoms makes use of Disease and DiagnosingEngine objects.
    voiceexpert is stored in the directory: c:\diagapp3
    I compiled Symptoms.java as below:
    c:\diagapp3> javac -d . Symptoms.java
    The class files for Disease.java, DiagnosingEngine.java and Symptoms.java are placed in the directory: voiceexpert.
    I created a Manifest.txt file inside c:\diagapp3 containing the following:
    Main-Class:voiceexpert.voiceexpert.Symptoms
    Name:voiceexpert/Symptoms.class
    Java-Bean:True
    I later created the jar file with the command:
    jar cfm jjj.jar Manifest.txt voiceexpert\*.*
    But, I am having the error message: "*invalid header field*".
    What can I do to remove this error?
    Note: I created the Manifest.txt using utf-8 encoding. My code is to be used in a third-party application and that is why it does not contain a main method.
    The link I was referred to could not help me. I need help please!
    Edited by: Adeyi on Feb 24, 2010 2:26 AM
    Edited by: Adeyi on Feb 24, 2010 2:34 AM

    Adeyi wrote:
    ..I created a Manifest.txt file inside c:\diagapp3 containing the following:
    Main-Class:voiceexpert.voiceexpert.Symptoms
    Note: I created the Manifest.txt using utf-8 encoding. My code is to be used in a third-party application and that is why it does not contain a main method.Why are you specifying a main-class when the API has none?
    The link I was referred to..What link? Just imagine for the moment that the Internet is a big place and we are not psychic.

  • Problem when modifying the jar file of a portal component

    I get the umelogonbase.jar from the com.sap.portal.runtime.logon component, extract it with winzip, do not make any changes to the source code, then re-create the jar file and add it back to the component. Now, when I deploy the component to the Portal I get the following error:
    "Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sap/security/core/logonadmin/IAccessToLogic.
    Exception id: 10:30_08/08/07_0012_15067450
    See the details for the exception ID in the log file"
    any idea what I am doing wrong here?
    I am doing this because I need to change the texts in the umelogonbase.jar, so this is the first step to see that the component still runs once I modify the jar file.
    Note: I create the jar file by creating a jar-type project in NWDS and then exporting the project as jar.

    Do you have JDK installed? If not then please install it by downloading from http://java.sun.com/j2se/1.4.2/download.html. Install it in your local machine. Then inside the installation folder\bin folder you will find the jar.exe.
    Also create the environment parameter named JAVA_HOME and set the value as the installation directory of JDK for example JAVA_HOME=C:\j2sdk1.4.2_13. Also add the following to your Path environment variable
    C:\j2sdk1.4.2_13\bin;C:\j2sdk1.4.2_13\lib;
    these path names should vary depending upon your actual JDK installation folder name.
    Regards,
    Shubho

  • 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

  • Icons disappear when creating a jar file.

    I am trying to make a runable jar file of an application that i wrote however, when i export it from eclipse the icons no longer appear. All of the icons are contained in a class called gridGui. Any help would be great.
    Thanks
         //Creates all of the icon files used for the buttons
         Icon fiftyCents = new ImageIcon("Fifty_Cents.gif");
         Icon oneDollar = new ImageIcon("One_Dollar2.gif");
         Icon twoDollar = new ImageIcon("Two_Dollar.gif");
         Icon threeDollar = new ImageIcon("Three_Dollar.gif");
         Icon fiveDollar = new ImageIcon("Five_Dollar.gif");
         Icon tenDollar = new ImageIcon("Ten_Dollar.gif");
         Icon freePlay = new ImageIcon("Free_Play.gif");
         Icon blank = new ImageIcon("Blank.gif");
         Icon unflipped = new ImageIcon("UnFlipped.gif");
         Icon oneDollarCoupon = new ImageIcon("One_Dollar_Coupon.gif");
         Icon threeDollarCoupon = new ImageIcon("Three_Dollar_Coupon.gif");
         Icon tShirt = new ImageIcon("TShirt.gif");
         Icon youLose = new ImageIcon("You_Lose.gif");

    You are using the ImageIcon constructor that takes a file name argument. When you create the jar file the source for the images are no longer files but entries in your jar file. You have to access them using the ImageIcon constructor that takes a URL argument.
    The actual URL you use is obtained (eg) from the Class method [getResource()|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResource(java.lang.String)].
    Suppose your Fifty_Cents.gif was in your jar file in the folder "images" then you could say:
    Icon fiftyCents = new ImageIcon(getClass().getResource("/images/Fifty_Cents.gif");Note the use of forward slashes and the fact that Fifty_Cents.gif has to be capitalised exactly as it is within the jar file.
    There are other ways of organising the resources - see the getResource() documentation for details.

  • Getting error when running the jar file..

    Hi All,
    I am new to executing jar file..Actually i have one class which contains the following code.
    import com.documentum.fc.client.DfClient;
    import com.documentum.fc.client.IDfClient;
    import com.documentum.fc.client.IDfSession;
    import com.documentum.fc.client.IDfSessionManager;
    import com.documentum.fc.common.DfLoginInfo;
    import com.documentum.fc.common.IDfLoginInfo;
    import com.documentum.fc.common.DfException;
    import com.fidelity.ftg.ereviewg2.migration.util.MigrationResource;
    * This class is used for creating docbase connection
    * *@type* DocbaseConnection
    * *@author* a405304
    * *@see*
    public *class *DocbaseConnection {
    //public static ResourceBundle resource;
    IDfSessionManager sMgr = *null*;
    IDfSession session = *null*;
    String docbaseName;
    *private* *static* DocbaseConnection +docbaseCon+;
    * Constructor for DocbaseConnection
    * *@throws* DfException
    * *@throws* Exception
    *private* DocbaseConnection()*throws* DfException, Exception{
    //ResourceBundle bundle = ResourceBundle.getBundle(Constants.RESOURCE_PATH,Locale.getDefault());
    MigrationResource bundle = MigrationResource.+getBundle+();
    String userId = bundle.getString("DOCBASE_USERID");
    String password = bundle.getString("DOCBASE_PASSWORD");
    docbaseName = bundle.getString("DOCBASE_NAME");
    IDfClient client = DfClient.+getLocalClient+();
    sMgr = client.newSessionManager();
    IDfLoginInfo loginInfo = *new* DfLoginInfo();
    loginInfo.setUser( userId );
    loginInfo.setPassword( password );
    loginInfo.setDomain("");
    sMgr.setIdentity( docbaseName, loginInfo );
    session= sMgr.getSession( docbaseName );
    System.+out+.println("# Connected to Docbase: "+session);
    }Now i create the jar file whose name is docbaseconnection.jar
    Now when i am running this jar file by using the following command then i am getting the following error..
    C:\JAR_FILES>java -jar docbaseconnection.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: com/documentum/fc/client/DfQuery
    For running this docbaseconnection.jar file i need the following thing in classpath...
    C:\Program Files\Documentum\dctm.jar;C:\Program Files\Documentum\Shared\dfc.jar;C:\Program Files\Documentum\Shared\log4j.jar
    I already add this jar files in the classpath of environment variables..Then also i am getting the same error..
    Kindly help me...........

    Well, let´s supose your manifest is defined as I did in my previous post. So, your directory base should be something like:
    C:\dir
    docbaseconnection.jar
    dctm.jar
    dfc.jar
    anotherlibraries.jar
    But, let´s supose you want something like
    C:\dir
    docbaseconnection.jar
    lib (folder, which contains dctm.jar, dfc.jar, etc)
    Then you should change the class-path of your manifest to
    Class-Path: ./lib/dctm.jar ./lib/dfc.jar
    That´s what I meant

  • Help having trouble creating a jar file

    I managed to create the jar file but when I try to run it I get the message "Could not find the main class.Program will exit". Here are the comands i used from dos, with the results.
    C:\Documents and Settings\Levybee\My Documents\Greenwich_University\PROJECT\Tac_
    3D>echo Main-Class: Tac3D >manifest.txt
    C:\Documents and Settings\Levybee\My Documents\Greenwich_University\PROJECT\Tac_
    3D>jar -cvmf manifest.txt Tac3D.jar *.class redball.png redball2.png tac3d.png G
    ameOver.png
    added manifest
    adding: Board.class(in = 8497) (out= 4304)(deflated 49%)
    adding: highScores.class(in = 3214) (out= 1864)(deflated 42%)
    adding: highScores2.class(in = 2869) (out= 1674)(deflated 41%)
    adding: PickDragBehavior.class(in = 3931) (out= 2030)(deflated 48%)
    adding: Positions.class(in = 4032) (out= 2181)(deflated 45%)
    adding: Scor.class(in = 1645) (out= 1010)(deflated 38%)
    adding: Scores.class(in = 1384) (out= 866)(deflated 37%)
    adding: SplashScreen.class(in = 1649) (out= 1015)(deflated 38%)
    adding: sScreen.class(in = 1640) (out= 1013)(deflated 38%)
    adding: StartMenu.class(in = 2817) (out= 1619)(deflated 42%)
    adding: Tac3D.class(in = 4606) (out= 2449)(deflated 46%)
    adding: viewhighScores.class(in = 2078) (out= 1235)(deflated 40%)
    adding: ViewScores.class(in = 2646) (out= 1531)(deflated 42%)
    adding: Wrap3D.class(in = 4665) (out= 2437)(deflated 47%)
    adding: redball.png(in = 746) (out= 751)(deflated 0%)
    adding: redball2.png(in = 689) (out= 694)(deflated 0%)
    adding: tac3d.png(in = 5764) (out= 5747)(deflated 0%)
    adding: GameOver.png(in = 3419) (out= 3406)(deflated 0%)help anybody, I got to demostrate it in two days

    You MUST have a line break after the Main-Class part of your manifest.

  • Create BPEL jar file using Bpelc via Java classes

    HI,
    I am trying to create the BPEL files ( xyz.bpel, bpel.xml, xyz.wsdl etc.. ) on the fly using Java code... Once I create all these files, I create a packaged jar (Ex : bpel_xyz_v2006_10_17__37256.jar) file and deploy the same in the Bpel PM.
    Right now, in order to create the jar file, I am running the bpelc.bat file under bpel/bin and then using the IBPELDomainHandle, I am deploying the process.
    But my requirement is to create the jar file using java rather than executing the bpelc.bat file..
    Can you please give me pointers as to how to achieve the same?
    Thanks
    Pramod

    Actually, I had figured out the part of calling the Bpelc class, but initially I was trying to create an object of the class and was not able to do so. That was where I got stuck.
    Eventually, I did something like the code snippet below and it works fine and the jar file is created. Just fyi for anyone looking in the future.
    String[] setupValues;
    setupValues = new String[]{ "-home", "D:\\product\\10.1.3.1\\OracleAS_1\\bpel", "-rev",
    "1.0", };
    Bpelc.main(setupValues);
    Thanks
    Pramod

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

  • 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

  • Creating exicutable jar files

    How do you openup the constole to create the jar files where is it located? Could someone please help me!!
    I know the commands but you can give me some help with that.
    The file i want to do compress into a jar is test.class (or .java)

    you use command promt from windows?
    now waht do i do cause it says the jar command in
    unrecognizedDreareist new fiend in teh jav,
    I am worrying that uor luv 4 teh jav si knot B what it shud.
    PLZ to looking at http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#2
    PLZ to finds luv 4 teh jav.
    Panjit

  • Problems creating a Jar-file

    Hello together!
    I have an application working perfectly, but now I want to create a jar-file.
    I created it in eclipse using Export and got the followint error message:
    Failde to load Main-Class manifest attribute from PATH.
    The I changed the manifest.mf and added the following line:
    Main-Class: MyMainClass
    and then I got the following error:
    Invalid or coorupt jarfile.
    If anybody knows what is the problem pls let me know.
    Thanks a lot.

    I am trying to use ant, and I have the built.xml file.
    But when I create the jar file I still have the same problem.
    So my question is how can I make the jar-file inlcuding the ant.
    I mean I did I think the pc created a export.jar, but the same problem.
    Does anybody know how to create a jar file (in eclipse)
    I would really appreciate any kind of help.
    Thanks

  • How to create a .jar file for the BPEL project

    hi all,
    how can i create a .jar file for my BPEL project, i am trying to deploy the project but getting an error :
    "Error: [Error ORABPEL-10902]: compilation failed [Description]: in "C:\OraBPELPM\integration\jdev\jdev\mywork\Workspace_BPELDemo\BPEL_Report\BPEL_Report.bpel", XML parsing failed because "". [Potential fix]: n/a. "
    and when doubel cliking on this error Jdev take me to the beginning of the ".bpel" file.
    I 'm really stuck in here i am not able to deploy the process!
    Thanks,
    Rana

    Rana:
    If you haven't already, I would post this question in the BPEL forum. I would expect a much better turnaround there.
    Johnny Lee

  • How to create a jar file which is in the remote system?

    Hi,
    I have a set of files that resides in a remote system,which have to be "jar"red. I have a firewall in between. I want to create a jar file out of the files situated in the remote system.How do i go about this process.?

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

Maybe you are looking for

  • HTML Snippet Font

    Hello -- I have an HTML snippet embedded on one of my iWeb pages that provides a list of events that have been entered on to a BigTent group. The page on BigTent that provided the code displayed what the snippet should look like, and the text was in

  • Crystal Reports error on Digital Dashboard not on Dev

    Created a report to access some large text fields in a SQL Server 2000 table. Original data connection was ODBC which truncated field at 255. Moved to OLEDB and all was well, text field printed fine in dev and Digital Dashboard. Modified report and s

  • Need to put help document on home page.

    Hi All..... in my project several users are not trained on oracle HRMS as to how to use the selfservice due to being on leave. I have prepared a document with screenshots on how to use the functions. I want to put this document in home page. So when

  • Browser size - actual pixels

    hey there, i want to create a flash site that fits completely into the browser window (1024x768) witout having to scroll down. how big can i make the flash document (vertically) and still fit safely on screen? thanks kurt

  • Error when tranfering the text data

    Hi all I am getting an error when transfering the text data thru flat files . It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5. pls suggest me. thanks