manifest

maven-assembly-plugin

hi, I'm trying to add a classpath to the jar generated by the maven-assembly-plugin. The assembly bulids, except the manifest has no classpath. Below is my configuration. Any help would be appreciated. Thanks! <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>make-assembly</id> <ph...

How do you build a JAR in eclipse with a custom manifest file?

I am trying to to build a Felix bundle in Eclipse. This basically includes having Eclipse create a JAR (through export) and adding my custom manifest file, however, I can't seem to get this to work. When I try exporting a JAR file, my custom manifest file shows up in the JAR, but doesn't ever get added to the right location within the JA...

Using tools that the JDK and/or JRE provide, is there a way to view the Manifest file for a given JAR?

I'm able to read the Manifest file inside of my Java code, but I would also like to know if it's possible, and if it is, how to open up a JAR file from the command line and view its Manifest.MF file, or at the very least be able to specify a property of the Manifest.MF file and view it's value. ...

UAC Application Manifest when you don't know runtime application name

I have a program that works fine if UAC is turned off. I want to be able to use a manifest to have it simply request elevation privileges when it launches. The instructions from MS say "The application manifest file should have the same name as the target executable file with a .manifest extension" and that's probably why I am not havi...

Screen saver crashes if UAC is enabled

Does screen saver require any manifest file? I'm renaming the .exe to .scr file. Right now i am not using any manifest file for the screen saver. But if if UAC is enabled, my screen saver crashes. How to by pass this UAC thing ? ...

Apache Ant JAR Task: not finding properties.

Hey guys, How exactly should I specify the location of all the properties files inside the ant manifest? My jar is not working because it can't find the log4j, Spring, etc properties. These files are all contained within a folder called "server-config" that sits at the same level as the source code, ie: META-INF com server-config ...

Netbeans manifest

Hi there, Is it possible to add entries to the manifest.mf file of jars generated by netbeans? to build an osgi bundle for instance. ...

In Java, how can I include dynamic version information in a log file?

From a Java application I can log a string, using a custom logging framework, as follows: logger.info("Version 1.2 of the application is currently running"); Therefore when a user sends me a log file I can easily see what version of the application they are running. The problem with the code above is that the version is hardcoded in ...

Can I call class files that are within a jar library located in another jar file?

I am trying to access the class files packaged as a library but unfortunately the jar libraries should be packaged in another jar file. As an example say I have a.jar that contains some class libraries. I can call (import) the classes in the jar file from my external java application. Now I need to put this a.jar inside another jar say...

Visual Studio 2005 security updates and CRT DLL versions in manifest

Recent Visual Studio 2005 security updates may be causing problems for us. We build and internally distribute SDKs written in C++. These SDKs are a collection of header files and static libraries only. After installing the security updates our SDKs now depend on the newer versions of the MSVC CRT DLLs. These SDKs are used downstream ...

Is it safe to rewrite an EXE or DLL manifest to force a particular version of the MSVC CRT DLLs?

Is it supported by Microsoft to simply rewrite the manifest of an EXE or DLL to force the use of a specific version of the MSVC CRT? I am interested in doing this because of recent problems with Visual Studio 2005/2008 security updates (KB971090 and KB971092). I would like to simply rewrite the manifest as a post build step in order to...

Debug Build App locating Release CRT Assemblies

We have a c++ application which I recently ported from Linux/gcc to build on Windows with Visual Studio 2005. The app uses a 3rd party library which only provides DLLs which use the optimised CRT DLL (i.e. they don't provide equivalents which link to the debug CRT DLL). With VS2005 this didn't seem to be a problem = the debug build found...

Inhibiting registry virtualization programatically

In the context of a generalized .NET-based component, which can be hosted in a variety of scenarios - i.e., 64 bit or not, interactive process or not, I need to write to the registry in an area that's subject to UAC virtualisation. However, I want to prevent such access from being virtualized in order that each execution is not subject t...

C#: What does MissingManifestResourceException mean and how to fix it?

The situation: I have a class library, called RT.Servers, containing a few resources (of type byte[], but I don't think that's important) The same class library contains a method which returns one of those resources I have a simple program (with a reference to that library) that only calls that single method I get a MissingManifestRe...

Visual Studio 2008 error while debugging an app with "uiAccess=true" in the manifest

I have a C# WinForms application that has "uiAccess" set to "True" in it's manifest file. When I try to start/debug it in Visual Studio 2008 SP1 under Windows 7 x64 (RTM) I get this error: Running an Accessibility application requires following the steps described in Help. The help button is a broken link, and clicking ok just clos...

Per Application config file bindingRedirect doesn't apply to Dlls.

I created a simple Win32 application to demonstrate UXtheme on XP by including a manifest dependency on the ver 6 commctl32.dll I then created a simple Win32 dll, built it with ISOLATION_AWARE_ENABLED, and tested it with an embedded manifest specifying both version 5 and 6 of Comctl32.dll I successfully got the exe and dll to use differ...

How to use a manifest embedded as a resource? (Windows XP/Vista-style controls)

I have a manifest embedded as a Windows resource. But what's the right way to apply it? More specifically: I have my .manifest file. It's the standard one to make an app use controls in the Windows XP/Vista visual style. When applied by being in the same directory as the .exe and suitably named, it works. However, this approach is ...

Opening/Writing files as administrator/root using C++ (UAC/gksudo/etc.)

The application I'm working on requires the ability to edit certain protected files across Linux, OSX, and Windows [Vista]. Generally, when an application needs to do something with elevated privileges, a password request dialog appears asking the user to verify they want to allow the application to perform those operations as an admini...

How do I create a manifest for a windows installer?

We have an installer for our application that must be downloaded and run with administrator privileges, like many other installers. However, the installer isn't named "setup.exe", so Windows doesn't automatically detect it as requiring elevation to run. Changing the installer name to make things elevate properly sounds pretty messy, fra...

Is it possible to have namespace without manifest?

It seems using namespace for swc library requires the manifest file. Is there a way to use the regular - mark in Eclipse the files to export - and have them reside in a custom namespace without having to write each component in manifest file? ...