Manifest file: Help needed

Hi everyone,
We have a java app that includes in its install package some JRE components.
We use to put these JREs under jre a subdirectory of the App main DIR at this point everything works fine and the manifest file looks like:
Manifest-Version: 1.0
Main-Class: mycompany.DIR1.MAINCLASSNAME
Class-Path: .\jre\lib\jh.jar
Created-By: 1.2.2 (Sun Microsystems Inc.)
The problem with this approach is when you install more than one copy you will duplicate also the JRE components (some 15 Megs).
To avoid these duplications we decided to put the JREs in a common directory such as <WINDIR> (WINNT / Windows)
to do so the manifest file has to be updated to reflect the jh.jar path.
I tried a hard coded path: Class-Path: e:\WINNT\jre\lib\jh.jar and got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: mycompany/DIR1/MAINCLASSNAME
by removing the class-path line I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSetException at mycompany.DIR1.MAINCLASSNAME.main(MAINCLASSNAME.java:30)
Please help,
any idea or suggestions are appreciated.
Thanks,
dobject.

You could try a CLASSPATH along the lines of e:\WINNT\jre\lib\jh.jar;.
Note, though, that you're throwing a lot of portability away.

Similar Messages

  • Burning full resolution jpg files help needed

    Hi there, I am relatively new to Aperture but I have been using iPhoto for years.  I can't seem to find a way to burn photos to my optical drive.  I need them full resolution for printing purposes.  Any help would be most appreciated.  Thanks

    how do I find that window?  *did I just say window?*
    When you export a photo with "File > Export > Version", a File Chooser dialog will open. Set the "Export Preset" pop up to "Edit". That lets you edit the settings for the different JPEG and TIFF export settings:

  • OBIA Environment - Informatica & DAC Setup files - Help Needed

    We want to setup OBIA test environment but worried which files should be downloaded for Informatica(Client and Server) and DAC(Client and Server), here we are confused with file names.
    We already have the Oracle Applications, Target DB and OBIEE in place, could somebody please help us in finding the right files needed for the remaining OBIA setup(i.e. Informatica Client & Server, DAC Client & Server) from the below list
    Note : Our machines have 64bit OS, the below list is from edelivery.oracle.com
    Product Pack : Oracle Business Intelligence
    Platform      : Microsoft Windows x86 (64-bit)
    Oracle Business Intelligence Applications 7.9.6.3 for Microsoft Windows                     V26578-01           519M
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows      V16377-01           181M
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.0.1 for Windows x86 (64-bit) (Part 1 of 2)      V30854-01 Part 1 of 2      2.0G
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.0.1 for Windows x86 (64-bit) (Part 2 of 2)      V30854-01 Part 2 of 2      26M
    Oracle Business Intelligence Applications Licensing and Packaging Guide 7.9.6.3 and Informatica
    PowerCenter and PowerConnect Adapters Client 9.0.1 (Part 1 of 2)                          V30964-01 Part 1 of 2      706M
    Oracle Business Intelligence Applications Licensing and Packaging Guide 7.9.6.3 and Informatica
    PowerCenter and PowerConnect Adapters Client 9.0.1 (Part 2 of 2)                          V30964-01 Part 2 of 2      2.0G
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.1 for Windows x86 (64-bit) (Part 1 of 2)      V30859-01 Part 1 of 2      2.0G
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.1 for Windows x86 (64-bit) (Part 2 of 2)      V30859-01 Part 2 of 2      1.4G
    Oracle Business Intelligence Applications Licensing and Packaging Guide 7.9.6.3 and Informatica
    PowerCenter and PowerConnect Adapters Client 9.1 (Part 1 of 2)                               V33700-01 Part 1 of 2      1.7G
    Oracle Business Intelligence Applications Licensing and Packaging Guide 7.9.6.3 and Informatica
    PowerCenter and PowerConnect Adapters Client 9.1 (Part 2 of 2)                               V33700-01 Part 2 of 2      2.0G
    Thanks,
    Sumanth

    Hi Sumanth,
    The below are the software packages, download them and install. Do let me know if you have any config issues.
    BI Apps:
    Oracle Business Intelligence Applications 7.9.6.3 for Microsoft Windows V26578-01 519M
    DAC:
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows V16377-01 181M
    Informatica Server:
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.0.1 for Windows x86 (64-bit) (Part 1 of 2) V30854-01 Part 1 of 2 2.0G
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.0.1 for Windows x86 (64-bit) (Part 2 of 2) V30854-01 Part 2 of 2 26M
    Informatica Client:
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.1 for Windows x86 (64-bit) (Part 1 of 2) V30859-01 Part 1 of 2 2.0G
    Oracle Business Intelligence Data Warehouse Administration Console 10.1.3.4.1 for Microsoft Windows
    and Informatica PowerCenter and PowerConnect Adapters 9.1 for Windows x86 (64-bit) (Part 2 of 2) V30859-01 Part 2 of 2 1.4G
    Hope this helps. Pls mark correct or helpful
    Thanks,
    SVee

  • Cs4 Mac : linking to open external .app files, help needed!

    I have completed a CDROM for pc users for a client.
    The CDROM contains 15 quizzes in exe format.
    A 'portal' file links to each of these quizzes, so the user returns, having opened and completed the (.exe) quiz file, to the portal and takes another quiz.
    the code to open these 15 quiz files
    on(release){
    fscommand("exec","openexe15a.bat")
    This opens the bat file, which opens the exe
    ----- This works fine
    However, my client wants a mac version,
    I cant find a way to link to the macintosh projector file within the portal file.
    fscomand doesnt work, geturl doesnt work.. any help really would be appreciated.

    I don’t know how .Mac Backup works, so all I can say is which are the files & folders you need to restore from the backup (assuming you did actually back up them, that is).
    Mail stores most preferences and all account settings in ~/Library/Preferences/com.apple.mail.plist (except the passwords, which are stored in the keychain). Everything else, including all your messages and mailboxes, is stored in ~/Library/Mail/.
    Similarly, Address Book (whose data you should back up as well) stores the settings in ~/Library/Preferences/com.apple.AddressBook.plist and the data in ~/Library/Application Support/AddresBook/.
    Other applications store preferences and data in other places. You may want to ask in the appropriate forums for more information on those.
    You may also want to read this:
    How to back up and restore your important Mac OS X 10.4 files
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder.

  • Error not alloving sign my jar file - help needed

    hi guys i am getting the following error while trying to sign the jar file.
    unable to sign the jar ; jar.util.zip.zip exception: invalid entry compressed size .
    i got this while signing the msbase and msutil of MS jdbc jar files.
    what am i suppose to do.
    I am unable to understand one more thing. Do i need to have both jdbcodbc.dll library and msbase,msutil, mssqlserver jar files to connect using jdbc or its ok if i only have the jar files. I would appreciate if somebody can help me in this regard.
    thanks,
    ravi.

    hi guys i got the problem solved i unzipped the files and zipped them agian. Its working well .
    thanks,
    ravi.

  • Restoring Memos from a backup file - Help needed

    I lost my memos in a crash and need to restore them from a backup file.  The Blackberry Desktop Software has the Memos "Dimmed" and the software says "Dimmed entries are read-only data types and cannot be restored".  This makes zero sense.
    Bold 9650
    OS 6.0.0.719
    Any help is appreciated.

    Hi and Welcome to the Community!
    Here is a KB that discusses that error:
    KB04461 Unable to backup or restore some databases to a BlackBerry smartphone using BlackBerry Desktop Software
    Hopefully it contains something useful! There also are multiple existing threads on this site that discuss that exact error...your review of those might prove useful, and a search of this site, using the error message, error code, or symptom, should reveal all applicable existing threads to you.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • IO File help needed

    Hello all,
    Here is my situation, I need to create an object, populate the object with data, and then store the object in a linked list. The object is created in a reference class that I created, and the data for the object is being read in from a .txt file. My problem is that I am opening the link to the .txt file from my driver class, but can't seem to get the readLine() to work in the reference class. Here is what I have:
    Driver Class:
    import java.io.*;
    import java.util.LinkedList;
    import javax.swing.*;
    import BaseballPlayer;
    public class BaseballStats
      public static void main(String[] args)
        boolean morePlayers = true;
        BufferedReader in = null;
        try
          LinkedList playerList = new LinkedList();
          in = new BufferedReader( new FileReader( "PlayerStats.txt" ) );
          BaseballPlayer player = new BaseballPlayer();
          while(morePlayers == true)
            player.newPlayer();
            playerList.add(player);
          for (i = 0; i < playerList.size(); i++)
            System.out.println(playerList.get(i));
        catch (Exception e)
          Controller.fatal("BaseballStats.main()", e.toString());
    }Reference Class:
    import java.io.*;
    import java.util.*;
    public class BaseballPlayer extends Object
      public boolean newPlayer()
        myName = in.readLine();
        myPosition = in.readLine();
        myAge = in.readLine();
        myBirthdate = in.readLine();
        myAtBats = in.readLine();
        atBats = Double.parseDouble(myAtBats);
        myHits = in.readLine();
        hits = Double.parseDouble(myHits);
        moreData = in.readLine();
        if (moreData != null)
          morePlayers = true;
        else
          morePlayers = false;
        return morePlayers;
      private String myName;
      private String myPosition;
      private String myAge;
      private String myBirthdate;
      private String myAtBats;
      private String myHits;
      private String moreData;
      private boolean morePlayers;
      private double atBats;
      private double hits;
    }Text File:
    Jose Cuervo
    Pitcher
    32
    July 1, 1970
    250
    100
    The error I get is: Variable in not found in class
    Technically I need to read several players into the linked list from one data file, but I'll tackle that problem after i am able to read 1!
    Any help would be greatly appreciated

    import java.io.*;
    import java.util.LinkedList;
    import javax.swing.*;
    import BaseballPlayer;
    public class BaseballStats{ 
      public static void main(String[] args)  {   
        boolean morePlayers = true;   
        BufferedReader in = null;   
        try {
          LinkedList playerList = new LinkedList();     
          in = new BufferedReader(new FileReader("PlayerStats.txt"));     
          BaseballPlayer player = new BaseballPlayer();     
          while(morePlayers == true){ //morePlayers == true,
                                      //Will this loop ever stop??
                                      //when does "morePlayers" become false?
            player.newPlayer(); //player does not have reference to   
                                //BufferedReader instance, u have to pass it
                                //"BufferedReader in" has scope within
                                //main() method only
            playerList.add(player);     
          for (i = 0; i < playerList.size(); i++)       
            System.out.println(playerList.get(i));   
        } catch (Exception e){     
          Controller.fatal("BaseballStats.main()", e.toString());   
    }

  • .MTS Audio Files help needed

    I'm having a little trouble with editing.
    The footage I am editing are .MTS files. Both the audio and video.
    The video is playing fine (well, as best it can for my rubbish uni computers) but I am having trouble hearing the audio - and I'm getting lots of conforming errors.
    I read here that CS4 doesn't support .MTS audio files. If that's the case then why can I hear some of them and not the others?
    Should I be converting the audio into another format before editing? If so, then what's the best format to convert to, and how can I do it in a way that I don't have to strip the audio from the video (I want to keep them perfectly synced)
    Thanks in advance for your help,
    Nath

    Hi Bill,
    Thanks for your reply, that's an interesting article. The files I am editing are stored on an external hard drive - I tried deleting a few files on there to make some room (whilst I was in the editing suite) and it wouldn't let me delete them because it said I didn't have administrator permission - despite this being my own hard drive. Could that be causing a problem with conforming? Should I copy the files accross onto the internal drive? The scratch disks are set to the local D drive.
    Nath
    Ps: I've just downloaded a program which is converting the .MTS files into .MOV. I don't really want to do this as this will probably loose quality - but I'm trying everything! What would be the optimum file type to convert to?

  • Re: Site definition file help needed.

    On Fri, 22 Dec 2006 09:38:17 -0800, Kevin D-R
    <[email protected]> wrote:
    >Which brings me to Dreamweaver. I have copied everything
    over and
    >reinstalled Dreamweaver, but my site definition
    information is gone.
    >
    >Any ideas on how to get that copied over?
    The site definition is stored in the Windows system registry.
    If you
    cannot boot from the old hard drive, you may need to re-enter
    the site
    information.
    Gary

    Thanks so much for your response Anita.
    Since I posted this, I noticed a blurb on the Weblogic site that mentioned Service
    Pack 9 fixes any problems with JSSE and SSL from within a Weblogic jsp/servlet.
    That service pack also includes an example of using the Weblogic SSL routines
    to make outgoing HTTPS connections. So, I'm trying to install service pack 9 and
    use the example code included in the distribution. I may end up trying what you
    listed below however, because SP 9 seems to be screwing up some of our functionality.
    <sigh> It nevers ends....
    "Anita" <[email protected]> wrote:
    >
    1) Put the JSSE classes in the lib/ext directory.
    2) in the Weblogic.properties file change the weblogic.security.SSLHandler.enable=true
    to weblogic.security.SSLHandler.enable=false
    3) in the weblogic.policy file under a 'grant' directive for all code
    bases,
    put permission java.util.PropertyPermission "java.protocol.handler.pkgs",
    "write";

  • Password protected Files help needed Urgent

    I have a close family friend who's husband has just passed away, I’ve been helping her gain access to her husband’s laptop ect, he was the accountant for the family business, He used Star office version 8, the problem we have is many of his files are password protected.
    I have 2 questions
    1) How many attempts can the wife have to try and guess the password before she's locked out of the file?
    2) Is there any way to hack/bypass these passwords? (3rd party software, a company ect ect)
    I would really appreciate your help as the family's bank manager is visiting on Wednesday to go over the health of the business and many of these important financial files are locked.
    Thanks in advance
    Darren

    But it did work on windows vista with reader 7. If it is not at all possible then
    my question is can I uninstall reader 9 and install reader 7.
    will it work on windows 7 64 bit

  • Downloading a file help needed - Urgent

    Can anyone let me know how do i download a file that resides in database(BLOB format) in different box(server) to the local client's machine without prompting for any of the download dialog box using java. Also after downloading the correct application should be launched to view the downloaded file.
    thanks in advance
    regds
    chandru.

    Hi kev,
    Even I have done the same thing using servlets. But, My question is,
    When i click the download button from my application. The file should be downloaded to a pre-defined directory in clients machine and then the approperiate application should be launched to view the file.All this operation should take place just at the click of download button. Is this possible?.
    thanks
    chandru
    I've done this using a servlet. Assuming that the
    user's browser has the correct plugin available then
    you can call res.setContentType() and set the
    mime-type of the file, then you can call
    res.getOutputStream and stream the value from the
    database (using the relevent getXxxStream method of
    the BLOB) directly to the output. If for example your
    content type is application/ms-word, then the word
    plugin will be loaded and the file will be displayed.
    If your problem is with Database access and not with
    the display of the file, you'll have to let us know.
    Hope this helps
    Kev ([email protected])

  • CS3 WONT ACCEPT MP3 FILES - HELP NEEDED.

    Does anyone know why I cant add Mp3 files to PP, when I try adding one it says "File Format not supported", this never happened with PP 2.0.

    >got it from a friend
    Was it on an Adobe DVD... or a DVD-R your friend wrote?
    Did your friend certify that he never installed it so you CAN activate?
    What does Help--About show?

  • Dlls and manifest files

    Problem: DLL written in CVI ( for usage with teststand) depends on another DLL, written in MSVC++2008. When trying to use the CVI-DLL in TestStand in fails to find msvcr90.dll. Even after I've ensured that MSVC++2008 redistributables ( 32bit ) are installed.
    Problem seems to be that  MSVC++2008 runtime is installed as "Side by Side Assembly" into winsxs directory and therefore some hints in form of a manifest file are needed to find the right runtime.
    I'am not sure, where i can/have to use the manifest file. Does the MSVC++2008 DLL has to be distributed with the manifest ( either embedded or as seperate file) . Or can I create also a manifest for the CVI-DLL and where I can find documentation for doing so ?
    Solved!
    Go to Solution.

    The manifest file should be in the DLL built in VC. This VC DLL is the one that depends on the 'side-by-side' msvcr90.dll and so must have a manifest declaring this dependency. The CVI DLL has nothing to do with this issue and does not need any manifest - putting a manifest in the CVI DLL would not help. By default, VC automatically embed the manifest when it builds the DLL - so it should already be there in the VC DLL. You can see the manifest by opening the DLL in VC resource editor and looking in the RT_MANIFEST resource section.
    I think the most likely cause of your problem is that the manifest in your VC DLL points to a different version/build of msvcr90 DLL - this could be because:
    1) You are using a debug build. The VC redistributable only installs release build of msvc90.dll and this is different from the debug flavor of msvcr90.dll. Solution: use a release build of your VC DLL.
    2) You have a newer msvcr90 DLL on your developement machine (may be because of some patch) but you are installing an older redistributable on the target machine. If so, try patching your target machine. I think 1 is more likely than 2.

  • Need help with a manifest file

    I'm trying to make a jar file executable, and I've seen numerous questions and answers regarding this particular issue, and none of them helped me with my problem.
    I have a batch file that runs the application without any problem, but when I try to create a manifest with the main class attribute copied char by char from my batch file and run it, I get a message "could not find the main class".
    I been browsing the web for the past 4 hours* now and the only type of answers I see for that problem is something like this:
    ...Main-Class... "${main.class}".
    This type of solution is worthless to me, since it doesn't tell me why my path is correct when I use the .bat file and incorrect when used in a .jar file.
    Thanks,
    Omer.

    I read there the related topics.
    However, it wasn't even close to being helpful.
    I'm using ant and the inner build.xml syntax is probably eluding me somewhere.
    In fact, if it was possible to find an example build file that was written for ant 1.6 or later and contains the Main-Class attribute (I've seen some examples that contain an example file, but none of them contained the Main-Class attribute, and I found some Main-Class examples but none of them showed where they should go or how they should appear within the manifest file.
    I'm at the point when I'm about to give up the whole idea and provide the unprofessionally looking .bat file.
    I thank anyone who has put his mind to this issue, but if there is no build.xml example, I guess you can't help me.
    Thanks anyway.
    It's frustrating to see how the most flexible language there is to work with when coding, becomes next to impossible to work with when you need to deploy it.
    Update, 30.04.2008:
    I have managed to figure out that the problem wasn't with the main class, but with the classpath.
    I run the program from Intellij, and everything works perfectly. I use a batch file, and perfect. I try to use an Ant generated jar with the classpath attribute set exactly like the batch file's paths, and nothing.
    There is no error message either.
    The classpath is located under "/lib/*.jar" in the distribution directory, where the "program.jar" is located.
    I have come to the point that i would pay to see a proper working build.xml and to see the relative and absolute paths of the classpath.
    This is actually harder than developing an extremely rich server application.
    Edited by: omerk76 on Apr 30, 2008 11:04 AM

  • Need help with Manifest file for jar

    I am creating an executable jar for a document management application. In the manifest file there is a Class-Path setting. I will be running this app in multiple environments and I want this Class-Path setting to read from the machines classpath. How do I do it? Any help is greatly appreciated.

    Before you Jared your classes, did the classes work?
    One possible solution would be to include the classes you're using within the Jar itself. But before you do that, I would re-read the Licence agreement for those classes.

Maybe you are looking for

  • MS SQL Server problem with MDB's: javax.transaction.xa.XAException

              I am programming agents in j2ee and using MDB to implement the asynchronicity of           the agents.           Those MDB's get messages (MapMessage) from a controller (an SFSB) that contain           the agent's ID and the action that the

  • Release Strategy in purchase order document type

    Hi Gurus.. I'm tring to tweak the single RS in the system. I've set the charcteristic using table CEKKO field BSART, restriction 032, I've set two document types as the Characteristic Value (ZLOG - ZADM). Then I´ve set the class with this characteris

  • Adober Reader 11.0.2 printing problems

    Our students cann not choose another printer than Adobe pdf from printing dialog in Adobe Reader 11.0.2. The default printer is a network printer from HP connected to our print server and all other programs are using this default printer without any

  • Crystal reports decimal separator issue

    Post Author: Ramco CA Forum: General In crystal reports XI and crystal reports XI R2 decimal separator is not changing according to regional setting. In report designer we have formated the field display style to "System Default Number format" and ch

  • Converting .m4p files (iTunes) to .mp3 format for PSP

    Is there a conversion program that will allow me to take an iTunes file (.m4p) and convert it to an .mp3 format so that my PSP will be able to recognize the file?