Why has there NoSuchProviderException in JAR file?

My program run well in jbuilder IDE, but after i make the project into JAR file, I meet the exception:
javax.mail.NoSuchProviderException: No provider for smtp
i set the classpath well, because my other program(.class) sending email well.
who knows what should i do?

Please kindly send the solution for this problem.
My program runs well since Web Gain-Visual Cafee in a windows 2000 machine, but when I make the project (a setup file) install it in a Windows 98 machine, it gives NoSuchProviderException No Provider for rfc822.

Similar Messages

  • Why was there over ten thousand file in my "All My Files" on my new MBP. I'm very new at using ICloud. I don't understand syncing vs time vs time vs syncing! I simply have not idea how to manage my file now.

    Why is there over ten thousand file in my "All My Files" on my new MBP. I'm very new at using ICloud. I don't understand syncing vs time vs time vs syncing! I simply have not idea how to manage my files now. I read short comments & how to's in the support sections, but nothing I've read so far explains"best practices" or turning iCloud off to get a grip on managing files. I have 250gb fast storage on the MBP itself, and 200gb in the ICloud, one would thing that's enough. The files seem too be multiplying like rabbits. IPhoto's Faces has created hundereds of "somethings" not sure what. I am sure I am very frustrated! Please comment with kindness.

    gf raines wrote:
    Yes,I am confused. To say its just another drive is a "buzz statement".
    OK, for example. If I download a document, song, or photo from ICloud, as I understand, it goes to Download in Finder. If I want to move it to a local folder of my choice on the solid state drive in my new MBP, does a copy always stay in ICloud? How do you housekeep? I have always  used to a physical drive. What is different about the mind set.  I used ICloud to store the contents of my old MBP. Once I download all the files I need, should I turn off ICloud and manage the file locally? I don't like the automatic movement of files when I don't understand the locations.
    Nope, you don't understand it.
    If you download a song from the iTunes cloud storage (which is not iCloud) it goes into the iTunes music folder (generally to a subfolder therein)
    If you download a document from the iCloud drive it will go wherever you chose to put it.
    If you download a photo from the iCloud Photo library it will also go wherever you choose to put it.*
    If you move something you have not copied it, if you want to keep a copy on the iCloud drive and in a local folder, you would copy, not move it.
    There is no 'automatic' movement, you decide what to store on the iCloud drive (exactly like any other drive) and what to remove.
    The iCloud drive appears as a folder in Finder, you use it just like any other, copy/paste, save, delete etc.
    You can turn the iCloud drive off whenever you like, download the content to a local drive first.
    * Because the iCloud drive appears as a folder in Finder there is in fact no need to ever download anything to your Mac, everything on the drive is already on your Mac.

  • Why need to sign the jar files ????

    Hi
    Why does i have to sign the jar files to run my app ??
    are not another away to run the app???

    U just have to sign your jar if your application needs full access to the client-resources.
    http://java.sun.com/products/javawebstart/docs/developersguide.html
    andreas

  • Why i can't execute jar files

    Greetings
    I read that jar files are executable unpon clicking them, but with me it do nothing.
    right now i'm using the command prompt to decompress jar files
    jar -xf jarfile.jar
    i have windows xp professional with j2sdk1.4.1

    You can execute JAR files by double-clicking them if the JAR files have an appropriate manifest and your file associations are set correctly (i.e. make sure you open JAR files with JAVAW.EXE). You can learn more about the manifest here:
    http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html

  • Is there SAP Common jar file in SMP SDK 3.0?

    Hi everyone,
    I am developing Agentry app connecting to SAP server. I cannot locate SAP common jar file in SMP SDK 3.0. Please help me out of this issue. Thank you very much.

    unfortunately i dont have setup on my current machine. Lets call Steve Streeter, Bill Froelich for assistance.
    Rgrds,
    JK

  • Why has itunes moved my music files out of the Music folder?

    To my horror I just found out that itunes has moved folders (albums) out of the Music folder, Ive always found those folders very well organized (music, movies, podcasts, etc) now Im seeing some albums mixed with those folders (out of the music folder) and some albums IN the music folder as well, even worse I have the same folder inside Music and out!! with a few tracks on each, but in iTunes everything looks normal and it plays the album as usual, Im losing my mind over this I cant find a way to fix it, I even started moving them manually but there are too many, and for the duplicate folders I have to move the tracks that were moved. Any idea on why did this happen? I dont want to move the folders and lose hours only to find out that itunes did it again!! I thank you very very ver much in advance.

    iTunes on a Mac may be more forgiving if you move things around manually, but it isn't really recommended.
    Here are typical layouts for the iTunes folders:
    If you have upgraded from version 8 (or earlier) to iTunes 9 (or later) at some point, then your media folder (everything inside the red outline) may still be called iTunes Music instead of iTunes Media. The extra Music folder inside the media folder is used if you had an older library and have allowed iTunes to Upgrade to iTunes Media Organization (iTunes 9) or used File > Library > Organize Library > Reorganize files in the folder "<Media Folder>" (iTunes 10/11). Depending on your choices for Keep iTunes Media folder organized and Copy files to iTunes Media folder when adding to library plus a little bug in which one build changed the name of the file storing the choice of layout it is quite easy for some of your files to be organized according to one layout and some the other. (Recent installs of iTunes on a Mac now give the library file the .itl extension)
    Assuming you're happy letting iTunes organize your files the following steps should tidy things up (should it be necessary):
    1. Select File > Library > Organize Library... > Tick Reorganize files in the folder "<Media Folder>" and click OK. Skip if this option is grayed out (already upgraded) or you prefer the older layout.
    2. Select File > Library > Organize Library... > Tick Consolidate files and click OK. This will bring any files currently organized outside the designated media folder into it.   N.B. This will create duplicate copies of any file that needs to be consolidated, and you will need to manually clean up afterwards.
    3. Select iTunes > Preferences > Advanced tab, uncheck Keep iTunes Media folder organized and click OK.
    4. Select iTunes > Preferences > Advanced tab, check Keep iTunes Media folder organized and click OK. This triggers iTunes into reorganizing everything according to your preferences.
    5. (Optional, if applicable) Close iTunes, rename the media folder iTunes Music as iTunes Media then restart iTunes. Check under iTunes > Preferences > Advanced tab that the location has automatically updated. If you can't access the media for any reason just undo the folder rename.
    PS If you really prefer the older layout, but it is already in the new one then, edit the hidden file .iTunes Preferences.plist in your media folder and change the integer from 1 to 0 before doing step 3.
    You should backup your library before attempting any major reorganization.
    If iTunes is still creating files or folders in the wrong locations there is a possibility of permissions problems. Offhand I'm not sure of the correct OS X terms but on Windows both the system and user accounts should have full access permissions to all files & folders within the iTunes folder in order for it to work properly.
    tt2

  • Why is there a difference in file size shown for QT files?

    After creating a self-contained QT file, it displays in the folder window as 8.5GB, even though I know it has to be much larger, and when I check "Get Info" on the file, it displays as 16.5GB. Has this happened with anyone else? This has happened multiple times for me recently.

    Close the folder window and re-open it. Is it now showing the correct size?
    Sometimes the finder windows don't refresh properly when they are open and you add a file.

  • Why are there no older Safari files in Time Machine?

    For reasons I won't go into now, I lost all my Safari Bookmarks on my mac.  I need to restore them from Time Machine, but TM has NO bookmarks.plist files from before the event occurred, just the current ones from yesterday.  I can't find any Safari folders or supportring files on TM backups from earlier.  I have TM set to backup my main system drive that would contain the library folder, etc..  How can this be?

    I believe you will find the File to "Restore", from an older date, in Safari through Time Machine here:
    Hope this helps

  • Adding Classes to the JAR File's Classpath

    Ques 1- Can I use the wildcard * symbol in Manifest file to add classes/othes jar files to the JAR File's Classpath.I have folder named - Lib . where there are many jar files.Now,do I have to add each jar file by- Class-Path: Lib/jar1-name Lib/jar2-name . Instead, can I do this- Class-Path: Lib/*.jar OR Class-Path: Lib/*.class
    RIDICULOUS....105 views has been made but YET NO ANSWER. Isn't there anybody who knows the answer.
    Edited by: Tanvir007 on Apr 30, 2008 2:21 AM

    Ques 1- Can I use the wildcard * symbol in Manifest file to add ... other jar files ...?No. You could, however, place all your needed JARs in JavaHome/jre1.x.x/lib/ext - if this is a way for you.
    Ques 2 ??
    RIDICULOUS....105 views has been made but YET NO ANSWER.What hindered you to test it yourself?
    And the things we don't know far exceed the things we know. Why do you wonder?
    Have a nice day
    J�rg

  • Installing a JAR file with NAL

    This is in reference to my previous message about trying to use NAL to get
    to a URL with System Rights...
    In addition to having to install Java to use our new webpage, there is a jar
    file that has to get pushed out, too.
    It's not available as an executable, but, is there anyway to push out a jar
    file with NAL? Does it need to be run, or, just copied somewhere, and, if
    so...where?
    Thanks!

    We have an AGFA Imaging system that puts digitized x-rays, CAT-scans, etc.,
    up on a webserver, so that docs all over our hospital can pull them up and
    look at them.
    The previous system HAD to use the MSJVM, but, last Saturday they upgraded
    the system (not really telling us the requirements ahead of time...<G>), and
    it had to use the Sun JRE. Sooo....I had to setup an AppObj last Sunday to
    push out Java to all workstations, so went to Java.com and downloaded the
    latest version, 1.5.x
    Well...of course they had to use a certain version, 1.4.1_01, and, it
    wouldn't work with 1.5.x at all, so, I pushed that out, then it turned out
    that they use a product from Germany (AGFA, you know) named JacoZoom, and a
    jar file is asked to be run by the users when they first login to the
    website, and, of course...you have to be an Administrator.
    Our VA Security Managers like to over-protect us, so, the German site
    hosting JacoZoom is blocked, and, rather than drive home and download what I
    needed, I thought it would be easier just to push out the URL with System
    Rights temporarily (you understand that by this time, Monday afternoon, all
    our 400 doctors were up in arms because they couldn't view any images), and
    then the trying to push the URL just didn't work.
    Sooo...I drove home and got the JacoZoom product (had to buy it), which is a
    large executable containing several JAR files when exploded, one of which
    was the one that was being pushed out. Running the executable didn't do the
    trick (not sure why), and the JAR wouldn't run, even manually, but, I
    FINALLY found an email from another tech going through the same hassle, and,
    all he did was push a different JAR file to the \lib\ext folder in the JRE
    1.4.1_01 folder...and it worked.
    I did that, and, it worked, and deployed it all over the building.
    Welcome to my world--and, I'm not complaining, because with SMS (which we
    have to run, but don't use), I'd still be configuring the deployment
    package.
    Thanks.
    "Anders Gustafsson" <[email protected]> wrote in message
    news:[email protected]...
    > Bill Bradley,
    >> I pushed it to all sorts of locations, without luck. Do you have to RUN
    >> Jar
    >> files, somehow?
    >
    > It depends on what it is. A jar file is just a PKZIP file with java
    > classes. Is
    > this part of a greater something?
    >
    > - Anders Gustafsson, Engineer, CNE6, ASE
    > NSC Volunteer Sysop
    > Pedago, The Aaland Islands (N60 E20)
    >
    > Novell does not monitor these forums officially.
    > Enhancement requests for all Novell products may be made at
    > http://support.novell.com/enhancement
    >
    > Using VA 5.51 build 315 on Windows 2000 build 2195
    >

  • .jar file is not working properly :developed in NETBEANS

    Hi Gurus,
    i am using NETBEANS IDE 7.2.
    i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
    but when i run executable .jar  file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
    this is how i call the .bat file...
      String filePath = "D:/pms/Libraries/portlib.bat";  
            try { 
              Process p = Runtime.getRuntime().exec(filePath); 
            } catch (Exception e) { 
                e.printStackTrace(); 
    and below is the contents of portlib.bat file
    java -jar "D:\SMS\SMS\dist\SMS.jar" 
    you must probably ask why i am calling a .jar file using .bat file .
    reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
    if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
    that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
    Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working  ,
    thanks.

    Thanks Sir ,
    You need to first test an example that works like the one in the article.
    There are plenty of other examples on the web - find one you like:
    http://javapapers.com/core-java/os-processes-using-java-processbuilder/
    I tried this one.
      try {
                ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
                 File commands = new File("D:/SMS/SMS/Send_message.bat");
                 File dirOut = new File("C:/process/out.txt");
                 File dirErr = new File("C:/process/err.txt");
               dirProcess.redirectInput(commands);
                 dirProcess.redirectOutput(dirOut);
               dirProcess.redirectError(dirErr);
                 dirProcess.start();
            } catch (IOException ex) {
                Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
    as instructed in the article i compiled  both the projects at same version or sources and libraries which is 1.7
    here is my version details
    C:\>javac -version
    javac 1.7.0_07
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
    inside the NETBEANS IDE c:\process\err.txt  remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
    here is the error text
    java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.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"
    here is /SMS/SMS
    unknown source ?

  • Jinit not loading webutil jar files

    Hello,
    Our Application Server has had webutil installed on it for quiet some time now. I am implementing a custom Banner Form that requires webutil functionality. Well the form is all set, but the webutil portion does not function correctly. I have been working with the designers of this application and they recommended I make sure that my archive_jini and archive parameters be set in the file /u01/app/oracle/product/10gASforms/10.1.2/forms/server/formsweb.cfg as follows:
    archive_jini=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall_jinit.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
    archive=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
    so I set these up as requested. When I look at my Java Console I only see the following load:
    banicons.jar, bannerui.jar, banspecial.jar, banorep.jar and frmall_jinit.jar
    I do not see gwucustom.jar, frmwebutil or jacob.jar load.
    Is there something I am missing? Do I have to restart the Application Server?
    Thank you much in advance for any guidance anyone can provide!
    -Stan

    I actually corrected this issue myself.
    In the formsweb.cfg file I added these properties under the default section.
    There is a section called jinit_pprd (My Pre-Production test server, I added these values under there and the .jar files are now loading.
    -Stan

  • Importing classes from Jar files..?

    I've run into a problem that I am having some difficulty solving. I currently trying to port a two part Java UI project from Solaris to Windows. The first is a package of core classes out of which I (successfully) create a jar file. The second is a product-specific package that imports the core classes from the package created in the first. The problem is that the second package fails to build because javac says the package from part one does not exist. Here's what I know:
    - This UI (built via a Makefile) builds successfully under Solaris
    - The jar file that I created in the first part exists in the appropriate directory.
    - When I view the contents of that jar it appears as though everything is there.
    - The jar file is appropriately included in the classpath of the second build.
    Any suggestions you could provide, or resources you could point me to would be greatly appreciated

    jh.jar is a static, 3rd party component. Doesn't seem to be giving me any grief, at least not yet.
    Correct on your second point.
    This is interesting. When I open my "CoreConsole.jar"
    file, I DO NOT see any reference to the
    com.emc.avalon.core.server package, only a list of
    class files that make up that package. You should see the .class files on the left and the relative path on the right.
    Also, all of the class file listings have absolute paths according
    to the location on my machine they were built, for example:
    m:/xpe/CoreConsole/classes/com/emc/avalon/core/server/MessageLogUtility.class
    Is this a problem..?Yes, that should be a relative path, with the first entry being the first name in the package statement. So you should see an entry MessageLogUtility.class, and the path should be com.emc.avalong.core.server.
    If you can't see the class that's missing, that would explain why the class loader can't find it, either.

  • Problem: Multiple jar files in Class-Path [ IOException: line too long]

    Hello Folks,
    I am trying to create a jar file using the following command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar lib/cog-abstraction-common-2.0.jar lib/cog-abstraction-examples-2.1.jar lib/cog-certmanagement-1.0.jar lib/cog-certrequest-1.0.jar lib/cog-grapheditor-0.46.jar lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar lib/cog-jglobus-1.2-050621.jar lib/cog-karajan-0.31.jar lib/cog-provider-clref-gt3_0_2.jar lib/cog-provider-clref-gt3_2_0.jar lib/cog-provider-clref-gt3_2_1.jar lib/cog-provider-clref-gt4_0_0.jar lib/cog-provider-condor-2.0.jar lib/cog-provider-gt2-2.0.jar lib/cog-provider-gt2ft-1.0.jar lib/cog-provider-gt3_0_2-2.0.jar lib/cog-provider-gt3_2_0-2.0.jar lib/cog-provider-gt3_2_1-2.0.jar lib/cog-provider-gt4_0_0-2.2.jar lib/cog-provider-local-2.0.jar lib/cog-provider-ssh-2.0.jar lib/cog-provider-webdav-1.0.jar lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar lib/cog-util-0.91.jar lib/commons-discovery.jar lib/commons-httpclient.jar lib/commons-logging.jar lib/concurrent.jar lib/cryptix32.jar lib/cryptix-asn1.jar lib/cryptix.jar lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar lib/jaas.jar lib/jakarta-regexp-1.2.jar lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in this dir.
    There are 59 jar files in the lib directory. When I try to create the jar file, I get the following exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at java.util.jar.Attributes.read(Attributes.java:356)
    at java.util.jar.Manifest.read(Manifest.java:167)
    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)
    Any idea, why do I get this exception? Is there any restriction as to how many jar files (or characters) can be there in the Class-Path value in the MANIFEST.MF file?
    Please help.
    Thanks,
    Ana

    use as the following way to resolve the problem:
    (1) use separate lines, to avoid too long a line for java package name lists
    (2) type a preceding space before each folloing lines, for example:
    Class-Path: ...jar ...jar ...jar
    ...jar ..jar
    ...jar ...jar
    ...jar ...jar
    Hello Folks,
    I am trying to create a jar file using the following
    command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar
    lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar
    lib/cog-abstraction-common-2.0.jar
    lib/cog-abstraction-examples-2.1.jar
    lib/cog-certmanagement-1.0.jar
    lib/cog-certrequest-1.0.jar
    lib/cog-grapheditor-0.46.jar
    lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar
    lib/cog-jglobus-1.2-050621.jar
    lib/cog-karajan-0.31.jar
    lib/cog-provider-clref-gt3_0_2.jar
    lib/cog-provider-clref-gt3_2_0.jar
    lib/cog-provider-clref-gt3_2_1.jar
    lib/cog-provider-clref-gt4_0_0.jar
    lib/cog-provider-condor-2.0.jar
    lib/cog-provider-gt2-2.0.jar
    lib/cog-provider-gt2ft-1.0.jar
    lib/cog-provider-gt3_0_2-2.0.jar
    lib/cog-provider-gt3_2_0-2.0.jar
    lib/cog-provider-gt3_2_1-2.0.jar
    lib/cog-provider-gt4_0_0-2.2.jar
    lib/cog-provider-local-2.0.jar
    lib/cog-provider-ssh-2.0.jar
    lib/cog-provider-webdav-1.0.jar
    lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar
    lib/cog-util-0.91.jar lib/commons-discovery.jar
    lib/commons-httpclient.jar lib/commons-logging.jar
    lib/concurrent.jar lib/cryptix32.jar
    lib/cryptix-asn1.jar lib/cryptix.jar
    lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar
    lib/jaas.jar lib/jakarta-regexp-1.2.jar
    lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar
    lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar
    lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar
    lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar
    lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar
    lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar
    lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in
    e in this dir.
    There are 59 jar files in the lib directory. When I
    try to create the jar file, I get the following
    exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at
    at
    at
    at
    java.util.jar.Attributes.read(Attributes.java:356)
    at
    at
    at java.util.jar.Manifest.read(Manifest.java:167)
    at
    at
    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)
    Any idea, why do I get this exception? Is there any
    restriction as to how many jar files (or characters)
    can be there in the Class-Path value in the
    MANIFEST.MF file?
    Please help.
    Thanks,
    Anajust

  • Difference b/w PAR & JAR Files

    hi,
    i m new to enterprise portal(EP),what is a use of PAR file in portal appl , what is the difference b/w PAR & JAR files,why cant we can use JAR file.
    thank in advance naresh

    Hi,
    In computing, a JAR file (or Java ARchive) is used for aggregating many files into one. It is generally used to distribute Java classes and associated metadata.
    1) WAR (file format) (Web Application aRchive) files are also Java archives which store XML files, java classes, Java Server Pages and other objects for Web Applications.
    2) RAR (Resource Adapter aRchive) files, not to be confused with the RAR (file format), are also Java archives which store XML files, java classes and other objects for J2EE Connector Architecture (JCA) applications.
    3)EAR (file format) (Enterprise ARchive) files are composite Java archives which combine XML files, java classes and other objects including JAR, WAR and RAR Java archive files for Enterprise Applications.
    JAR files can be created and extracted using the "jar" command that comes with the JDK. It can be done using zip tools, but as WinZip has a habit of renaming all-uppercase directories and files in lower case, this can raise support calls with whoever created the JAR or the tool authors themselves. WinRAR, on the other hand, retains the original case of filenames.
    A JAR file has an optional manifest file located in the path META-INF/MANIFEST.MF. The entries in the manifest file determine how the JAR file will be used. JAR files which are intended to be executed as standalone programs will have one of their classes specified as the "main" class. The manifest file would have an entry such as
    Portal applications are packaged in PAR (Portal Archive) files. A PAR file is a standard ZIP file with a .par extension that contains a deployment descriptor, all Java classes, Web resources and other files required to run the application.
    Within the portal, the name of the PAR file is the name of the application. The fully qualified name of any component or service defined in the PAR is the name of the PAR file, followed by a period (.) and then the name of the component or service.
    A PAR file contains the following files:
    The following files are contained files contained in a PAR file are divided into the following types:
    &#9679;     Web resources
    All files in a PAR file that are accessible directly via an HTTP request, such as:
    &#9675;     HTML
    &#9675;     Images
    &#9675;     Stylesheets (.css)
    Web resource files can be located anywhere outside the top-level PORTAL-INF and META-INF folders.
    You can create links to these files directly. For more information, see Creating URLs to Web Resources.
    ·        Java Classes and Deployment Descriptor
    Java classes that implement the component and services defined in the PAR file, plus the deployment descriptor (portalapp.xml). The deployment descriptor specifies the components and services contained in the PAR file, and defines the configuration for the application, components and services. For more information the deployment descriptor, see Deployment Descriptor (portalapp.xml).
    The PAR file’s Java classes and deployment descriptor are located in the top-level PORTAL&#8209;INF folder
    ·        Manifest
    A PAR can also include a manifest file (MANIFEST.MF in the top-level META-INF folder), which provides version information. The folder and file are not required, but are recommended for tracking versions of your application.
    in enterprise portal we use mainly EAR as jar files.
    to import EAR files you need to follow this steps
    goto
    system administration -> Transport -> Transport Packages -> import -> choose client or server on your convinence and browse to this file and press upload and then after uploading press import
    for PAR files you need to follow this steps
    goto
    system administration -> support -> Support Desk -> in Top Level Areas selcet portal runtime -> in "Portal Anywhere" Admin Tools select Administration Console -> in Upload Archive Specify a Portal Archive (PAR) file and choose 'Upload' to store the PAR in the PCD-> browse the file and press upload.
    ************please reward points if the information is helpful to you************

Maybe you are looking for