.jar file of Package!

Hi! to All,
How can I create ".jar" file of a "package".
Thanks in advance!

just for JBuilder
Wizards->Archive builder then the "Archive type" select Midlet type;
Next the name of the ...in fact ,i dont know what it uses for...just a name
next ,add the classes and files that in your project
then if you donot need a special JAD,just finish it...

Similar Messages

  • How to include JAR file as package

    I am trying to code for passing data from an Applet to javascript. It appears the preferred method involves a package netscape.javascript to include support for the JSObject class. found a download of a jar file which contains this package. I am using Sun Creator and JCreator but dont know where to or how to install this package to be available to the compiler. Sorry for the beginner level question but any help is greatlyt appreciated. TIA

    You need to create a project and add the jar to the classpath. Then you can import the required libraries.

  • How to incorporate JAR file as package

    I need to use a class (JSObject) which exists in netscape.javascript used on the import statement. My class wont compile because of my code associated with the applet to javascript class. I found a JAR file which contains the netscape class, however dont know how to make it available to import from the IDE. I am using Sun Creator and JCreator. Can anyone explain how and where I am to install this package so class may be imported from it. TIA

    The JAR simply needs to be in your compiler classpath. Check your IDE documentation for information on how to add resources to your classpath (sometimes called "build path").
    Also, you may want to brush up on how classpath works - here are some good resources:
    The Gateway to Classpath Nirvana
    Setting the class path (Windows)
    How Classes are Found

  • Difference between jar file and package?

    What is difference between a package and jar?
    Is a jar a package? or is package jar?
    If I say
    package pink;
    does it mean pink is folder or jar?
    what if I say import pink.rose;
    does it import jar file with the rose class inside it?

    These two concepts are unrelated. A jar file is nothing more than a zip file of class files and other related resources, which you can use to 'bundle' your application for ease of deployment. Th use of zip files is not mandatory.
    Packages on the other hand, are a means of 'packaging' parts of an application or library in their own namespace, generally for reasons program structure, and to avoid naming collisions. A bunch of classes in a package will be compiled into a bunch of class files, on a one-to-onwe basis (one file per class).
    You may chose to 'bundle' those and other classes into a jar file.

  • Help! How to create Jar file for a packaged class?

    Hi!
    I am new in jar complexities. I made a swing frame that just prompts a JOptionPane when executed. I accomplished the same using jar without packaging my class SwingTest.
    But when i package it, it doesn't run. Can any one tell me how to make jar file of packaged classes and include images in the jar files too!
    Really Thanx!

    Call the Jar from the commandline to see the exceptions thrown.
    java -jar <jarFileName> <className>

  • Jar files are not read from HDD

    Hi,
    we are facing a problem while trying to read jar files from Hard disk using CVM. we could able to read the file and the number of bytes read exactely matches with the file size. but while trying to use JNI (*env)->FindClass it is returns 0. Some times it returns an error "inflateFully: ZIP_Read". however we could able to read a small jar file which is of 2 kb and display some graphics. is it the problem with size?? our application is 80kb.Can some one help us in fixing this.
    Profile: PBP/CDC
    Note:
    Sam

    Step 6 makes your third party jars available during runtime on your server since you put the dependency to runtime. I don't think you need/can reference your j2ee server dc in the portalapp.xml.
    Summary of the link I sent you:
    1. Create an External Library DC
    2. Copy all of the Jars I needed to the libraries folder of this DC
    3. Create two Public Parts (right click on the jar files in Package Explorer)
          i) compilePart (with purpose compilation)
          ii) assemblyPart (with purpose assembly)
    4 Create a new DC of type J2EE Server Component / Library
    5. Add a Used DC to the J2EE Library, reference the compilePart from previous step, and set Dependency type to Build
    6. Add another Used DC, reference the assemblePart, this time select both Build and Runtime Dependency Types
    7. Build and deploy.
    Br
    Göran

  • How can I add image files to a executable jar file ?

    Could you tell me how can I add image files to executable jar file ?
    package structure:
    ../com/Main.class
    ../images/..

    Please don't cross post, and read this
    http://forum.java.sun.com/thread.jsp?forum=31&thread=271751
    I've answered the question in the New To Java thread.

  • Jar files are not exported while PAR Export

    Hi Experts,
    When  I am exporting as PAR file, in the par file  I am not getting the jar files, which I am adding as external jar files in the java build path - Libraries
    Please tell me the solution. urgent...
    Regards,
    Shyam

    Step 6 makes your third party jars available during runtime on your server since you put the dependency to runtime. I don't think you need/can reference your j2ee server dc in the portalapp.xml.
    Summary of the link I sent you:
    1. Create an External Library DC
    2. Copy all of the Jars I needed to the libraries folder of this DC
    3. Create two Public Parts (right click on the jar files in Package Explorer)
          i) compilePart (with purpose compilation)
          ii) assemblyPart (with purpose assembly)
    4 Create a new DC of type J2EE Server Component / Library
    5. Add a Used DC to the J2EE Library, reference the compilePart from previous step, and set Dependency type to Build
    6. Add another Used DC, reference the assemblePart, this time select both Build and Runtime Dependency Types
    7. Build and deploy.
    Br
    Göran

  • Importing classes/jar files

    Hi
    im writing a simple mail program but i need to import classes or jar files
    import com.oreilly.servlet.MailMessage;
    is the line i have but i cant find the jar file/class
    when i search for it i only get the description
    where can i find tha actual jar file or package ???

    you must to have the jar file from you want import classes if you don't have this jar you can't do this.
    if you've the jar, you must indicate to your IDE environment where can find this jar file I don't know meybe in the common menu options > Project settings...
    or if you're working with webserver (or stand alone)as Tomcat you need copy jar into /lib folder.

  • Jar file importing

    Hi,
    i have 2 jar file's, in side jar files same package name and same class but method name are different. for example
    Test1.jar
    Test2.jar
    in side jar file package structure is
    "dim.in.test"
    class name is "GetInformation"
    i am importing the this two jar files in my project, importing path and create the instance is perfect.
    my problem is
    first parity jar file instance method are invoking (Test1.jar file instance methods getting), when I call Test2.jar file methods giving compiletime showing.
    but i want to call all methods (Test1.jar and Test2.jar file method�s)
    thanks
    prasad

    You'd have to do some serious playing around with ClassLoaders, and I don't think you're ready for that.
    Why do these two jars both have a "different" class with the same name and package?
    Did you write both of these?

  • Jar file dependency

    * I'm using OC4J 9.0.3 production version.
    * I have a question about class visibility.
    * I have the manifest file in my App-ejb.jar point to another jar (common.jar) file.
    * My App-ejb.jar file is packaged along with my App-web.war file into an ear file.
    * The classes in common.jar are not visible to my web layer. Is this a bug?
    ===============================================================================
    My app-package structure:
    App.ear
    _______App-ejb.jar
    _______App-web.war
    _______App-common.jar
    ===============================================================================
    Contents of the manifest file in App-ejb.jar:
    Manifest-Version: 1.0
    Created-By: Auto-gen
    Class-Path: Company-common.jar
    ===============================================================================

    There is a typo in the contents of the manifest file. The entry for "Class-Path:" should read:
    "Class-Path: App-common.jar"

  • Download and extract jar file from applet

    Can any one provide me a solution for my below problem. Thanks in advance for all the suggestions.
    I want my applet to download a jar file, extract into users home directory by creating a folder and then set the created folder to java library path.
    My applet html file is in "root" directory. The applet is included into applet.jar and placed under "lib" directory which is under "root" directory.
    Now i also had another jar file(contains dlls what I packed) under the same lib folder.
    The below is the following directory structure in my server.
    root ---
         |
         |
         default.html
         lib--
         |
         |
         applet.jar - contains applet related classes
         native.jar - contains dlls which are to be loaded
    When a client downloads my applet, it should copy the native.jar and then extract into a new folder under user home directory. Then set this folder to java library path.
    Regards
    raman kumar

    I managed to do it this way, Just remember that you need to sign the jar files for your applet, else it won't work.
    package jar.extract;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    public class JarExtractor {
         // Dll file in the jar
         private static String JAR_FILE = "dll.jar";
         public void extract() {
              try {
                   JarFile jf = new JarFile(JAR_FILE);
                   // Entry in the jar file rember package and dll file
                   ZipEntry ze = new ZipEntry("package/dll_file");      
                   int length = (int) ze.getSize();
                   byte fileContent[] = new byte[length];
                   InputStream fin = jf.getInputStream(ze);
                   fin.read(fileContent, 0, length);
                   // CODE missing.
                   // You need to write the input stream (fin) to a new files output stream
                   // it is like copying a file !!!
              } catch (IOException e) {
                   e.printStackTrace();
    }Tom

  • Cant use jar file - JAVA -

    - JAVA -
    Basically I have few files in one package in every one of them I worte:
    "pack preyPackage;"
    And I have some .jar file that I try to use. So I drag it into the oracle compiler, but I still couldnt use it. But if I delete the row:
    "pack preyPackage;"
    from each .java I able to use that .jar file.
    my question is how can I still use that .jar file and package's all that other files..
    Picture that shows the problem:
    http://hwzone.co.il/community/index.php?action=dlattach;topic=290416.0;attach=92107;image
    Thanks.

    Tried it and get strange behaviours in JDev 10.1.3.3...
    The latest version with sources can be found at
    http://stwww.weizmann.ac.il/G-CS/BENARI/oop/index.html
    You should get that one and modify the sources to include a package name.
    I have little time to do that because I'm going on holiday for a week...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to package an application as a JAR file?

    I want to package an executed JAR file,how to do?
    "jar cvf jar_name class_name"? But it can't run,:( help me.
    Thanks in advance.

    Suppose your main class call MyMainClass. You need to create a file called "mymanifest". In the mymanifest file, you need to include following line:
    Main-Class: MyMainClass
    Then you need to jar your jarfiles by:
    jar cvfm classes.jar mymanifest -C foo/ .
    After this, you can run your jar file by java -jar classes.jar.

  • Jar file is not working after deleting all packages from the same directory

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

Maybe you are looking for

  • How to generate a MSDS report from status GP (Generation possible) to RE

    Hi EHS Goeroes, I'm struggling with the Generation of the MSDS. I have done the following procedure and settings: a) Create MSDS report (CG42) b) Edit Generation Variant (CG2B) Settings: (I have assigned my template to the Generation Variant) Generat

  • I use bing and can not get adobe flash player to install ?

    I can not install flash player on this computer with Windows 7 64 bit  .  I did every thing on the site to get this installed but it did not work. it keeps telling me that Internet explorer is open and I need to close it. All windows are closed and I

  • How to mention posting keys for line items in IDOCS for fb01 posting

    Hi all , I am using IDOCS for fb01 posting with posting keys 15 and posting keys 40 for line items .The data is in legacy file . I am using IDOC <b>ACC_GL_POSTING_01</b> for posting . Is there any way that I can mention the posting keys in the segmen

  • Dynamic Sender File Name

    Hi, It’s a File to ABAP Proxy Scenario. The files would be processed differently depending on the file name which would be dynamic. It would suffice if the file name can be made visible in the payload. Does any one have any idea on how to implement t

  • Send Fault message from SAP XI

    I have scenario: get async file from FTP. Starting BPM. From BPM I send message to SOAP service(sync). Where I recieve Fault Message. In BPM I have exception handler. Could any body tell how send parced Fault message to FTP. As I understand we need m