Java Webstart with Config Files

Hi,
Whats the best way to deploy a 3rd party jar program with a config file in the same dir level? Do I need to jar it all up into another jar again?
Cheers,
John.

The normal practice qould be to jar up the config. file.
You might jar it along qith the classes, but I
would tend to give it a separate jar and simply
add a call to the 'config.jar' to the resources
element along with the main jar.

Similar Messages

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6
    In JRE 1.5, the jar files are getting downloaded onto the client
    machine with it's original names.
    Example :
    Server File Name : acm.jar
    Client File Name : RMacm.jar
    But in JRE 1.6, the jar files are getting downloaded with improper file names.
    Example :
    Server File Name : acm.jar
    Client File Name : 4fb074cc-66fc7407
    Moreover the path itself seems to be invalid.
    Example Path :
    JRE 1.5 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
    JRE 1.6 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\6.0\12
    Due to this, we are facing Classpath problems.
    What changes do we have to make to the code, for Java
    Webstart to work ?
    We are using JBoss 4.0.4 and JDK 1.5 in the Server
    On the client machine, we have IE 6 and JRE 1.6.01
    Help would be appreciated.

    Ask your Java Web Start question at:
    http://forum.java.sun.com/forum.jspa?forumID=38

  • How to use Java WebStart with EJB ?

    hi forum...
    how to use Java WebStart with EJB ? examples ?
    thanks
    mindu

    Greetings,
    hi forum...
    how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
    thanks
    minduRegards,
    Tony "Vee Schade" Cook

  • JAAS problem with config file

    hello,
    my scenario
    EJB application, with JCA and JAAS.
    My problem is, that I'm not able to read the config file. where i have to copy the .conf file that my application find that file.
    System.setProperty("java.security.auth.login.config", "demo.conf");
    kind regards
    Johannes

    Hello!
    I've done the following tasks:
    Searched for jazn-data.xml file of OC4J-installation.
    Added information of jaas.conf-file to a new entry of application.
    e.g.
    TestJaas { com.sun.security.auth.module.Krb5LoginModule required debug=false useTicketCache=false; };
    <application>
    <name>TestJaas</name>
    <login-modules>
    <login-module>
    <class>com.sun.security.auth.module.Krb5LoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>debug</name>
    <value>false</value>
    <name>useTicketCache</name>
    <value>false</value>
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    It should work.
    regards
    Harald.

  • An issue (bug?) with Config File VIs?!

    Hello to all!
    When using Config File VIs I encountered a very interesting
    and killing (me) issue.
    I spent an hour before I knew where's a bug.
    (Maybe because I'm a novice to LabView).
    From one side, the bug was mine: I used a "for loop" to write string values to keys in section and provided to the loop an array that could be empty sometimes. And I absolutely forgot that "for loop" executes at least one time anyway even if array is empty.
    Ok, no problem, then the function "Write Key" should say "ERROR" and I would find my bug at once on the output of my "for loop".
    BUT IT DOESN'T DO IT. It says "OK".
    And only the next function "write key (string value in my case)"
    fails saying "Error: Config Data Registry.vi [get data]: invalid object 0". I certainly think that something wrong with this "write key", but what means this message?!
    Ok, I found who responds for this (the previous "write key" in for loop).
    But the most interesting thing is that if you set after this bad "for loop" one more such "for loop" you don't get error on the output of the 2nd "for loop" too. It appears only after "write key" that goes after 2nd "for loop".
    Well, forget it. Just look at attached files.
    Something wrong in this "Write Key" function if error goes far beyond its real source of arrising.
    Are you agreed? Or maybe I'm wrong?
    Thanks to all for attention.
    Any comments appreciated.
    Rashid.
    Using LV 8.0.1 Pro on WinXP.
    Attachments:
    Writing bad value to key.vi ‏22 KB
    Writing bad value to key 2.vi ‏24 KB

    Hi Ben, this was a good hint, last time I had problems with that zero iteration issue, I worked with LV 6.1 and kept in mind, that the shift register output was the last value stored in the Shift register output node, it reminded to the use of an uninitialized SR. If somebody still has 6.1 on the machine, it would be nice to test this. But the test with 7.1 showed you are right, the SR- input is reached through. Great!
    Thanks, dave
    Message Edited by daveTW on 06-16-2006 07:05 PM
    Greets, Dave
    Attachments:
    Shift register.png ‏5 KB

  • Wlan Manual Proxy deploy with Config File does not work !

    Hi,
    i use MDM Software to generate a WiFi Config File.
    i use
    Proxy: Manual
    Server and Port: proxy:8080
    The Config File will be transfered to the iPhone and the iPhone connected to the WLAN but the Proxy entries will be ignored. It displays HTTP-Proxy : OFF
    i also tried it with the iphone Configuration Tool with the same effect. Always HTTP-Proxy: OFF
    can anyone help?

    Hi,
    i use MDM Software to generate a WiFi Config File.
    i use
    Proxy: Manual
    Server and Port: proxy:8080
    The Config File will be transfered to the iPhone and the iPhone connected to the WLAN but the Proxy entries will be ignored. It displays HTTP-Proxy : OFF
    i also tried it with the iphone Configuration Tool with the same effect. Always HTTP-Proxy: OFF
    can anyone help?

  • Error in running package with config file

    I have a 2012 package and it is referring to a config file which has the DB connectionstring. This config file was created through the "Package Configuration Organizer". When I execute the package through VS 2012, it works fine(Reads the config
    from config file), but I get the below error when I run from DTEXEC. 
    Command: 
    C:\Program Files\Microsoft SQL Server\110\DTS\Binn>dtexec /f "C:\user\admin\Test\Pack1.dtsx /Conf "C:\user\admin\Test\P1.dtsconfig"
    Microsoft (R) SQL Server Execute Package Utility
    Version 11.0.2100.60 for 64-bit
    Copyright (C) Microsoft Corporation. All rights reserved.
    Started:  4:13:06 PM
    Warning: 2013-12-13 16:13:07.19
       Code: 0xC0048000
       Source: Process File Process File (SSIS.Pipeline)
       Description: The registry key "SOFTWARE\Classes\CLSID\{7F88F654-4E20-4D14-84F4-AF9C925D3087}\DTSInfo" cannot be opened.
    End Warning
    Warning: 2013-12-13 16:13:07.19
       Code: 0x8004801E
       Source: Process File Process File (SSIS.Pipeline)
       Description: Cannot find the "CurrentVersion" value for component {7F88F654-4E20-4D14-84F4-AF9C925D3087}. The CurrentVersion value for the
    t cannot be located. This error occurs if the component has not set its registry information to contain a CurrentVersion value in the DTSInfo
     This message occurs during component development, or when the component is used in a package, if the component is not registered properly.
    End Warning
    Progress: 2013-12-13 16:13:08.00
       Source: Select the latest Vendor file from mailMonitor
       Executing query "select top 1 (ea.attachment_path), ea.attachment_f...".: 100% complete
    End Progress
    Progress: 2013-12-13 16:13:08.03
       Source: Check if file has already been processed
       Executing query "select count(*) from myTable where FileName...".: 100% complete
    End Progress
    Error: 2013-12-13 16:13:08.03
       Code: 0xC000F427
       Source: Unprocessed File? (This is an Expression Task)
       Description: To run a SSIS package outside of SQL Server Data Tools you must install Unprocessed File? of Integration Services or higher.
    End Error

    Please see if this link helps -
    http://dba.stackexchange.com/questions/49786/error-to-run-a-ssis-package-outside-of-sql-server-data-tools-you-must-install
    Narsimha

  • Problem with config file ssis

    I have changed the server name from dev to test in config file, it worked fine but when I try to change it back to dev it reflect the change. Package still executes fro test configuration. What could be the problem. I have reloaded the package many times
    also.
    Thanks,
    sree

    What I have noticed is that when I create a new config for a package and edit the server name, it is reflecting only once. Next time it is not changing.
    Let me explain how I configured my package
    -created a variable called servername and on configuration manager I have edited the expression to map property:Servername to the variable I have created .
    -Next under configuration manager I have selected the value of variable which I'm editing by opening the config file in notepad
    I'm I doing it right?
    sree

  • Anybody know how to use jave work with mapping file? help!

    mapping file are somehow those...
    <db-insert root-element>
    .....<map-info>
    something like that, and I dont know how java code can use with them..my database is mysql...
    or any reference site is good.?
    Thank you very much

    urm...thanks..
    my job is about to write a transformation tool to transform XML documents into a database. The tools is written for users to extract data in XML format and store it into a database. But i would choose MYSQL. Mapping files are used to store information correctly into database to avoid the need to write new code for each type of XML files. And can choose any programing langugage for implementation such as Java and C#.........and currently still looking on Java or VB

  • Java mail with attach file

    Hi , I need a example with java send mail can attach a file
    thnak you

    Hey cool... thanking you phdk. Ta.
    package krc.utilz;
    import java.util.Properties;
    import java.io.File;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.BodyPart;
    import javax.mail.MessagingException;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.InternetAddress;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.PasswordAuthentication;
    public class Emailz
      private static class MyAuthenticator extends javax.mail.Authenticator {
        @Override
        protected PasswordAuthentication getPasswordAuthentication(){
          return new PasswordAuthentication("#########", "#########" ); // <<<<<<<<<<<<<<<<<<<
      private static final Properties props = new Properties();
      static {
        props.put("mail.smtp.host", "smtp.googlemail.com");
        props.put("mail.smtp.port", "465");
        props.put("mail.smtp.user", "########"); // <<<<<<<<<<<<<<<<<<<
        //props.put("mail.smtp.starttls.enable", "true");
        props.put("mail.smtp.auth", "true");
        props.put("mail.smtp.debug", "true");
        props.put("mail.smtp.socketFactory.port", "465");
        props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
        props.put("mail.smtp.socketFactory.fallback", "false");
      public static void send(String subject, String message, String from, File[] attachments, String... recipients)
        throws MessagingException
        Session session = Session.getDefaultInstance(props, new MyAuthenticator());
        session.setDebug(true);
        // head
        Message msg = new MimeMessage(session);
        msg.setFrom(new InternetAddress(from));
        InternetAddress[] addressTo = new InternetAddress[recipients.length];
        for (int i=0; i<recipients.length; i++) {
          addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    msg.setSubject(subject);
    // body
    Multipart multipart = new MimeMultipart();
    // message
    BodyPart msgPart = new MimeBodyPart();
    msgPart.setText(message);
    multipart.addBodyPart(msgPart);
    // attachments
    for ( File attachment : attachments ) {
    MimeBodyPart attPart = new MimeBodyPart();
    attPart.setDataHandler(new DataHandler(new FileDataSource(attachment)));
    attPart.setFileName(attachment.getName());
    multipart.addBodyPart(attPart);
    msg.setContent(multipart);
    Transport.send(msg);
    public static void main(String[] args) {
    try {
    //send(String subject, String message, String from, File[] attachments, String... recipients)
    send(
    "Testing attachments" // subject
    , "This is an email with an attachment" // message
    , "########@gmail.com" // from // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    , new File[] {new File("C:/Java/home/src/krc/utilz/Emailz.java")} // attachments
    , "########@gmail.com" // to // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    } catch (Exception e) {
    e.printStackTrace();
    Cheers. Keith.

  • Java 3D with .obj files

    Hi,
    I'm pretty new to Java3D and so on a bit of an unphill struggle right now. I am trying to load a 3d obj file (that i created myself) into my program. It is a simple boat with a sail and a hull, I am trying to animate these parts of the object separately.
    I have added the two different components to seperate TransformGroups (one called "boat" one called "sail") and the sail is a child of boat. I can move the boat around with my mouse, but when i try and rotate the sail (using .rotY(20D)) the sail rotates from the centre of its location in the object (i.e it moves away from the mast)
    so my question is, how do i rotate this part of the object from one side only? is there a way to find out the length of it? then i could use the rotate "around the corner" method possibly.
    Any help or theories on how to do this would be greatly appreciated - as i said, i'm trying to learn the basics so i can get on to some trickier things, and seem to be hitting hurdle after hurdle!.
    thanks

    hi,
    j3d supports these file formats:
    3DS 3D-Studio
    COB Caligari trueSpace
    DEM Digital Elevation Map
    DXF AutoCAD Drawing Interchange File
    IOB Imagine
    LWS Lightwave Scene Format
    NFF WorldToolKit NFF format
    OBJ Wavefront
    PDB Protein Data Bank
    PLAY PLAY
    SLD Solid Works (prt and asm files)
    VRT Superscape VRT
    VTK Visual Toolkit
    WRL Virtual Reality Modeling Language
    for more info look at j3d tutorial, chapter 3, section 3.2. the .obj loader in j3d is not a full implementation of the file format, but you can extend it (it's possible to add colors in j3d program directly or extend the loader) and add what you need or you can write your own loader. i recommend to search the web for better implementation of obj. file loader written in java.

  • Distributing a java application with fewer files

    I'd like to distribute an application with the JRE but would like to reduce the number of files in the distribution. The JRE alone requires several JARs and other license files. Can the JRE be repackaged into a consolidated JAR with my application without breaking the licensing rules?
    thanks,
    Paul

    This does not sound like a Java problem. Go into your W7 control panel and make sure the ODBC driver is correct. Make a new DSN for your system and see if you can connect. You may have to reinstall the ODBC, it souds like something there is having a problem.

  • JAVA parameters with Config tool

    Hi,
    I am new to working with the JAVA stack.
    Could you please reveal us on the general parameters that we configure with the Config tool.
    I have already referred the SNOTE: 723909 which describes all the parameters. But we need the details of the
    parameters that are changed frequently with the JAVA stack administration.
    Any link to the document would be more helpful.
    Thanks & Regards
    DVRK

    No interview questions.
    That info is widely available.
    Read the "Rules of Engagement"
    Regards
    Juan

  • Use ProcessBuilder to execute a java program with a file piped as input

    Hi,
    I am trying to execute a java program passing in input file as argument. I have to do this by forking a process and am using Processbuilder.
    I have a main function which calls the executeCliTopologyDesigner method. I get a Java I/O exception
    Caught IOException: Cannot run program "$JAVA_HOME/bin/java oracle.apps.fnd.provisioning.cli.TopologyDesigner ": java.io.IOException: error=2, No such file or directory
    Can you please let me know if I am missing something?
    Thanks,
    pkrish
    Code Snippet:
    private synchronized void executeCliToplogyDesigner(String cliCommand, File tmp)
    throws IOException, InterruptedException
    {    File temp= writeDataInTemp(compDefName);
    cliCommand = "$JAVA_HOME/bin/java oracle.apps.fnd.provisioning.cli.TopologyDesigner ";
    ProcessBuilder pb = new ProcessBuilder(cliCommand,"<",temp.getCanonicalPath());
    executeProcess(pb);
    Edited by: pkrish on Mar 2, 2009 3:56 PM
    Edited by: pkrish on Mar 2, 2009 3:57 PM
    Edited by: pkrish on Mar 2, 2009 3:58 PM
    Edited by: pkrish on Mar 2, 2009 3:59 PM

    Hi,
    I printed out the system environment variables PATH and CLASSPATH and it is as below:
    Classpath :/ade/prprasa_prov_latest/fmwtest/tools/orajtst/home/lib/orajtst.jar:/ade/prprasa_prov_latest/jdev/src/abbot/dist/EXTENSIONS
    Path :/ade/prprasa_prov_latest/fxtn/util/tools/ant/bin:/ade/prprasa_prov_latest/fmwtest/tools/orajtst/home/bin:/ade/prprasa_prov_latest/oracle/jdeveloper/jdev/bin:/ade/prprasa_prov_latest/javahome/jdk/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/ade/bin:/OracleProd/oracle10g/bin:/OracleProd/oracle10g/bin:/OracleProd/oracle10g/bin
    The Path does contain java.
    I changed my command as I need a different classpath.
    cliCommand = "/ade/prprasa_prov_latest/javahome/jdk/bin/java -classpath .:/ade/prprasa_prov_latest/oracle/provisioning/tools/lib/*:/ade/prprasa_prov_latest/oracle/provisioning/configframework/lib/*:/ade/prprasa_prov_latest/oracle/provisioning/framework/lib/*"
    Caught IOException: Cannot run program "/ade/prprasa_prov_latest/javahome/jdk/bin/java -classpath .:/ade/prprasa_prov_latest/oracle/provisioning/tools/lib/*:/ade/prprasa_prov_latest/oracle/provisioning/configframework/lib/*:/ade/prprasa_prov_latest/oracle/provisioning/framework/lib/*": java.io.IOException: error=2, No such file or directory
    Any ideas? Please let me know where do I post it if not here.

  • Having trouble with config files

    I am new to text files, what is going on. No matter what network I am on Arch assigns itself 192.168.0.2          My net at home is a 1.1 at school they have 172.16.16.xxx.
    This is preventing me from
    pacman -Syu
    pacman -S xorg
    pacman -S gnome
    ecetera
    I have unlimeted Verizon2Verizon
    Please help me out maybe we can open an email or phone dialog since that seems to be faster

    pacman -Su
    your database is up to date or something like that
    pacman -Syu
    error: failed retrieving file 'community.db.targz' from mirror.XXXXXXXX.edu     <ecetera>
    :transient resolver failure
    pacman -S xorg
    xorg package not found, searching for group...
    error: 'xorg': not found in sync db
    but I cannot even sync my db
    just a few details thought I would throw in.

Maybe you are looking for