Ant help - building a jar with image files.

I have a jar that contains a handful of image files in a "resources" folder. I used the following command:
jar -cf resources.jar resources/Now I need to make ANT do the same thing. I tried the following, with no success:
<property name="build" location="bin"/>
<property name="dist" location="jars"/>
<jar jarfile="${dist}/resources.jar" basedir="${build}">
  <arg value="-cf" />
</jar>In the above example, the "bin" directory contains the "resources" directory that I want to put into the jar. Basically, I need to know how to specify the "-cf" args, and how to specify the target directory as "resources." Can anyone tell me how this is done?
Thanks.

Hi micah,
I can just give you an hint:
With Ant each tasks has its own properties wich are described in xml. So for your jar generation you should look for the possibilities in the description of the ant task in.
http://ant.apache.org/manual/index.html
I guess you need some <include> elements in your <jar> target.
Regards,
Martin

Similar Messages

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • Help with image file names when using Import Word document feature

    Hello,
    I am using File >> Import >> Word document into an HTML template.  If the Word document contains images, the images are written to the directory specified in my Site Default Image Folder.  Here is my question: As I was teaching myself the Import function, one time the images were automatically named to match the page name.  So for example, if my page is named Create.html, the images would be named Create_image001.jpg, Create_image002.jpg, etc.  I can't remember how I enabled this feature (or maybe I was dreaming) but if anyone knows how to control the name of the images imported from MS Word, please let me know.  I've searched and Googled for hours and can't find a way to control the image file names.
    Thanks in advance,
    Shellie

    I was hoping that this would be fixed in the 10.8.2 upgrade but it has not.  Anyone have any luck?  Earlier today I was trying to write a paper and navigating between 10 pdfs was a nightmare without being able to hover my mouse for the titles like I used to. 

  • How can I build automatically jar with Eclipse?

    Hi,
    I try to build automatically jar file each time when I save my project.Until now I used right click and Export to jar but that take me more time and it is not efficiently.I have try to configure an new builder from project->properties-> builders options but when I Clean it give me the following error:
    The file does not exist for the external tool named MY_Builder
    Please help me If you can, all that I try to find is to generate automatically jar file each time when I save or clean the project,no matter the method as long as it's working on Eclipse
    Many thanks,

    Hello,
    But How can I do that ? I make a new ant compiler but I have some errors:(. I don't know how to configure this ant.Can u help me please?
    Thanks,

  • [help needed] Javadoc problem with many files

    Hi,
    I have an Ant script generating my javadoc every night. I have about 5700 java files making about 42MB of data.
    It worked fine for two years until two weeks ago, where the script stopped with the following message :
    <<
    [... big snip...]
    [javadoc] C:\Temp\Java\blablabla.java:58: cannot resolve symbol
    [...snip...]
    [javadoc] public HtmlComponent getCell(
    [javadoc] ^
    [javadoc] 100 errors
    [javadoc] 1 warning
    BUILD SUCCESSFUL
    Total time: 1 minute 40 seconds
    >>
    If I execute the javadoc generation on a smaller set of java source files, I still have a lot (100 displayed) of error messages like the one above (which generaly don't stop javadoc), but the generation continues :
    <<
    [...big snip...]
    [javadoc] C:\Temp\Java\xxx.java:12: cannot resolve symbol
    [...snip...]
    [javadoc] public SelectionNoop(Fig fig) {
    [javadoc] ^
    [javadoc] Standard Doclet version 1.4.2_08
    [javadoc] Generating C:\temp\JavadocNewSI\constant-values.html...
    [javadoc] Building tree for all the packages and classes...
    [javadoc] Generating C:\temp\JavadocNewSI\com\zz\common\job\common\class-use\ManagerDelegate.html...
    [...big snip...]
    [javadoc] Generating C:\temp\JavadocNewSI\stylesheet.css...
    [javadoc] 6251 warnings
    BUILD SUCCESSFUL
    Total time: 23 minutes 33 seconds
    >>
    I don't understand what's going on. It is not a memory problem since it issues an intelligible message.
    I also managed to generate javadoc for several subsets, so it can't be a problem with one file or folder crashing javadoc.
    Any help welcome,
    Tug

    Well, it seems that the cause was indeed an empty java file...
    The generation fails if the empty java file is the set AND a refering file is in the set. If only one of these conditions are missing, then javadoc goes on...
    What I don't understand is that the empty file used to be here since may 2005 and the referring class is unchanged since 2004... it never bugged javadoc before.
    Creepy...
    Tug

  • WebLogic 9.2 - Replacing  apache_xbean.jar with the file xmlbeans-2.4.0.jar

    Hello All,
    I am a newbie in the forum.
    I have been using WebLogic9.2 for a while, but in my new company there was a unique request to replace the following files in WebLogic 9.2 installation.
    The development team wants to replace the:
    Original Jar:  bea\weblogic92\common\lib\apache_xbean.jar [This file comes along with the WebLogic 9.2 installation]
    with this file.
    Replaced Jar: bea\weblogic92\common\lib\xmlbeans-2.4.0.jar [This file has to be downloaded from apache.org website]
    The reason the developers want these file to be replaced is they are trying to generate xlsx reports from database and the new file works ok for them after replacing it with the old file.
    CAN WE REPLACE THE ORIGINAL FILE WITH THE NEW ONE.
    I am not sure of the consequences this would have on WebLogic performance and security.
    Can some one throw light on this.
    Regards,
    Kumar

    Hello Jaysen,
    As per your suggestions, I asked the developers to try the procedure....
    THEY SENT ME THIS HUGE ERROR LOG....DONT KNOW IF THIS IS ANY OF YOUR PAIN TO UNDERSTAND...CAN YOU HELP!
    ==================================================
    The following is the error trace:
    ERROR ContextLoader - Context initialization failed
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:40)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:338)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:375)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:83)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1591)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:565)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
    at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:128)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    [Loaded weblogic.logging.ThrowableInfo from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints.
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded javax.management.RuntimeErrorException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded javax.management.RuntimeMBeanException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded java.lang.reflect.InvocationTargetException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded java.lang.reflect.UndeclaredThrowableException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded weblogic.application.ModuleException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.application.utils.StateChangeException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.utils.NestedThrowable$Util from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.application.utils.ExceptionUtils from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.servlet.internal.session.MemorySessionContext$SessionCleanupAction from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor136 from __JVM_DefineClass__]
    [Loaded javax.naming.ContextNotEmptyException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded weblogic.application.internal.flow.ModuleStateDriver$DestroyStateChange from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1280899305658' for task '1'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:894)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded weblogic.deploy.container.NonFatalDeploymentException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application '_auto_generated_ear_'.>
    [Loaded weblogic.deploy.service.internal.DeploymentService$6 from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.deploy.service.internal.DeploymentServiceLogger from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.deploy.service.RequiresRestartFailureDescription from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.management.ApplicationException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application '_auto_generated_ear_'.>
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:894)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor137 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor138 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor139 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor140 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor141 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor142 from __JVM_DefineClass__]
    [Loaded javax.management.openmbean.CompositeDataSupport from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor143 from __JVM_DefineClass__]
    [Loaded weblogic.store.internal.UpdateRequest from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.transaction.internal.ServerTransactionManagerImpl$MigratedTLog from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.health.HealthLogger from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    ===============================
    Thanks for your time in advance!
    Kumar

  • Problem with Image File in Encore CS5

    I made a 6 GB Image File in order to make BluRay discs without having to open Encore each time.  I can't seem to find software that will allow me to use the file to burn the disc.  Simple copy/paste doesn't work either.  The problem may be that the image file has no file extension.  Checking properties in Windows 7, where the file extension is usually displayed, it just says "file". Can anyone explain why Encore is exporting a file with no file extension (like .iso, for example), and how to get around this issue?
    Thanks.
    Steve Siegel
    [email protected]

    Encore creates a bluray image with an iso extension. I wonder if you have windows explorer set to show no extension.
    You may not have "iso" associated with a program on your computer.
    Also, you cannot burn the "file" to a BD and have it play. You need a program to take the image and burn it in the correct bluray format onto the disk.
    Most of us love imgburn:
    http://www.imgburn.com/

  • Problem with image file (URGENT!!!!!!!!!!)

    Hi all,
    I'm using oracle 6i and in my program I use an activeX for generating barcodes..
    the activeX genrate an image file and i need to store it in db(oracle 9i) or at least show the generated image through my form...the problem I encounter is that the read_image_file built in does not read the barcode images while it reads and shows other pictures with the same type (ex. tif or jpg)...
    here is my code (in case if it is useful) :
    declare
    application ole2.obj_type;
    begin
    application := ole2.create_obj('IDAuto.BarCode.1');
    ----DataToEncode :this is the data that is to be encoded in the barcode
    ole2.set_property(application,'DataToEncode',:txt);
    IDAuto_IBarCode.SetPixelsXY(application,2048,1024);
    ----this method save the image file
    IDAuto_IBarCode.SaveEnhWMF(application,'d:\TEST.tif');
    :system.message_level := '25';
    Read_Image_File(,'d:\TEST.tif','TIFF', 'control.itm_image');
    :system.message_level := '0';
    end;

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • Build Applicatio​n with all files inside .exe

    Hello,
    I have a labview project consisting of a few classes and subvi's. Nothing really special. Now when i try to build an .exe file, i get the .exe, an application.ini, an Application.aliases and an data folder (has the classes and dll's within). What i want however is the .exe file with all files inside. So that at the test setup, there is only one file on de dekstop, and not 4. Is it possible to do that?
    Greetings wcm 

    LabVIEW 2009 and later have a build option (set on per default) that embeds all the classes inside the executable file.
    The ini file will always be created, however you can delete it during startup of your executable.
    I think you don't need the data folder since that has some DLL already present on your system.
    However my advise is to create an installer that puts the executable (and the other files) inside the program files folder. And the installer can create a shortcut to the executable.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Webcenter suite products installation with image file

    Hi,
    I am looking for any easy installation of webcenter suite for learning purpose which includes installation and default configuration of webcenter portal server, spaces, Oracle content server, OAM, DB with required schemas etc. Is there any image file available which gives pre-configured environment?

    I am looking for hardware configuration. Please refer the below thread for details.
    Required hardware configuration for Webcenter suite installation.
    Edited by: Chandramouli on 11 Jun, 2012 12:22 AM

  • Help converting pages document with images over to a 300 dpi jpg file

    Hi
    I'm pretty new to using Pages.  I have created a 4 page Pages document with a lot of iphoto images.  It's for a elementary school yearbook.  The publisher ulitmately needs a 300 dpi jpg file.
    How do I convert the pages document into a 300 dpi jpg?
    I tried to convert it first to a pdf then to a 300 dpi jpg but when I sent that file over, they said that when they zoomed in, the images all looked blurry.
    Any ideas on what to do without having to start all over again?  Worst case, I guess I can print out in best quality, scan and save as jpg but there's got to be an easier way.
    I'm not a graphic designer, just trying to fuddle my way through so you'll have to go easy on me with the techno speak.  Any cliff notes for mac beginners?
    Thanks much in advance for any help!

    The conversion isn't perfect between Pages and Word. The same font is handle differently in the two applications and so are many other things too. If you are concerned about how it looks use Pdf versions instead.

  • Problem to create jar with images

    Hello
    I have a project, it's a frame with a panel that contains a image, I want to create a Jar, but I have to problems, if create a Jar and execute out the project folder, I can't see the images, if I use getClass().getResource, I have other problems, I can't add panels.
    How it's difficult to say, I going to put a link from the project make with eclipse [My project|http://www.megaupload.com/?d=HBPHUWE9] , if someone wants have a look I would be grateful.
    http://www.megaupload.com/?d=HBPHUWE9
    Just look at the package com.constructor.interfaz
    To make the jar use the class InterfazFactoriaPaneles
    Thanks in advance !
    Edited by: Dav1d on Jul 10, 2009 6:11 AM
    Edited by: Dav1d on Jul 10, 2009 6:12 AM

    I explain better:
    I have a Class -> InterfazFactoriaPaneles, with this main
    public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        InterfazFactoriaPaneles application = new InterfazFactoriaPaneles();
                        application.getJFrame().setVisible(true);
    in the Frame I add a JPanel with an image, to load the image I override this method, where com.constructor.imagenes, it's the path where I've got my images :
    public void paintComponent(Graphics g){
              Dimension tamanio = getSize();                    
              ImageIcon     imagenFondo = new ImageIcon("./src/com/constructor/imagenes/patronConstructor.jpg");     
              g.drawImage(imagenFondo.getImage(),0,0,tamanio.width,tamanio.height,null);
              setOpaque(false);
              super.paintComponent(g);
    the with a menu, I remove the panel with the image I load other panel with components (JTextField, JTable, JLabel,...).
    If run the program from eclipse, everything it's ok, if I export into jar file, it works if the jar it's inside the project folder, but if I put the jar in other location, doens't load images, I google from answer and I read to put images path like that: new ImageIcon(getClass().getResource("/com/constructor/imagenes/patronConstructor.jpg")); , but if I do that, and run in eclipse, everything it's ok, but If I export into a Jar, I load the image, but when I try to change to other panel it doesn't work.
    So I do not what's the answer, if someone check my code, and try to make a jar, and the move the jar file into other location, will be able to see images doesn't appears.

  • Help needed please.. with JPG file

    Hi all,
    I am a Forms developer that DOES NOT use Jdeveloper so go easy on me!
    I have with the help of this forum amended the Java Bean Forms graph to create a JPG from the Graph bean. Our original problem was the need to print the graphs that were displayed, the forum very helpfully guided me through creating a JPG and i used Forms to open this and therefore user can then print it.
    I have used the following:
    File f = new File((String) _object,"img.gif");
    FileOutputStream fos = new FileOutputStream(f);
    m_graph.exportToGIF(fos);
    I then use Forms to Pass the clients temp location and save the file to the local PC temp location as img.gif.
    Unforunately this came up with user rights problems and in order to make this work we needed to sign the certificate. BUT by signing the certificate it meant EVERY one of our customers has to approve the changes once we give them the new JAR. Unforunately we use (as per Oracle Certification) JRE 1.4.2_13 and when the customers go to approve the changes it crashes JAVA (if they have previousely used the system). The only way to get round this (that we have found) is to clear all signitures and clear cache on the JRE. This is something that our customers will not accept doing.
    I posted that initial JRE problem but not had any comeback so my next question is. Is there a way to do what we need to do without the need of signing the JAR?
    The graph pre these changes did not need the approvals. So im assuming its the fact we want to place something on the Client PC is what is requiring the approval. Can we do what were doing but place the JPG on the Server and use something like webutil to get the file over. Meaning we dont need to use a different JAR?
    Any help would be most appreciated

    Hi,
    I cannot help you much on the issue, but I can confirm some of your thought. Signing is indeed required because you're trying to access the user's PC, which is a potential security breach hence why Java requires that the user agrees to it when the application goes out of the normal sandbox. You can check out http://www.securingjava.com/chapter-two/ as an introduction on the subject.
    I don't really get your use case though, you simply want to print the generated gif file right, so why do you write it on the user's hard drive?
    Regards,
    ~ Simon

  • Urgent! Help, how to deal with m2ts file in Final Cut Pro or Compressor...

    Dear All:
    Please help me solve this urgent issue, I've got source that came with the mpeg-2 Transport Stream (48min content @ 3.42GB size) format , but both my Final Cut 6.0.6 and Compressor 3.0.5 can not open this type of file, is there any way that I can transcode this m2-ts file into a Final Cut Pro and Compressor readable format with the highest quality possible? And how to do it?
    Thanks in advance.
    Kevin
    Message was edited by: Kev C

    hey, Thanks David, actually, I used MPEG Streamclip prior to post this massage, the problem is that my
    MPEG Streamclip 1.9.2 can't correctly open this m2ts file (it says it can not read the file size...) and I also tried using VLC to transcode it, but with no luck, I can not find the right video and audio format to come out with QT playalbe file. Let me try ClipWarp to see if it works.
    Kevin

  • Size limit of access database with image files stored outside database

    I have read 2GB limit on size of Access database.  We are using Access 2013 database with fields that are data type attachment and storing attached images outside the database.  Does the size of the folder that is holding these images count
    in any way toward 2GB size limit?

    Hi,
    As far as I know, Access database limit size 2GB based on itself, not related to the folder size.  Attachment data
    type is similar to attaching files to e-mail messages. We need to control the Access database size is smaller then 2GB.
    When a field is defined with the attachment data type, you can store one or more files for each record in it.
    Attachments can dramatically increase the size of the database, but since the attached file is stored as a part of the dabatbase, you are not dependent on network drives being available as you would be if you inculded a hyperlink to the file. As a matter of
    fact, feel free to backup the origainal file to other disk after you attach it to the database.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for

  • How to use a generic sender for all users in SCOT

    Hi. I´m trying to find a way to define a static sender for all the mails sent from our SAP system. It automatically takes the email adress set un the user data (SU01 tcode) but our mail server does not allow that adresses. We can get the access just

  • Variables in email reporting or quiz variables in captions for captivate 4?

    Hi, Captivate 4, cp4 I have been all around the forums without getting an exact answer to what I want to do. Perhaps there isn't one but, anyway... I am trying to collect quiz information. I just want a simple collection of data that shows that someo

  • Pavilion dv6-1125es - Hard Disk problem

    I have an HP Pavilion dv6-1125es (out of warranty) with Vista Home Premium (32 bit) that runs very slowly and freezes but this does not seem to be caused by malware. I was considering reinstalling but decided to run diagnostics first. In the System D

  • Lightroom not visible in the CC installer.

    I cannot see Lightroom in the Creative Cloud installer.  But I can see Photoshop.  Hardware:MacBookPro10,2   Processor Name:Intel Core i5   Processor Speed:2.6 GHz   Number of Processors:1   Total Number of Cores:2   L2 Cache (per Core):256 KB   L3 C

  • CRM 2015 - email from template doesnt contain attachment

    Hi all, i have an problem with emails from campaigns and templates, if I send an email using template with attachment the email is sent, but received without an attachment. When i create an email as an activity, add attachment and send it, it works f