Javaws, classpath, and OpenOffice client-side resources

I've developed an application on top of OpenOffice which uses the installed openoffice jars and .dll's. I can't get the dll's to load using javaws. My root problem seems to be a non-standard way that openoffice is trying to load system libraries - from the OpenOffice forums, they use the location of a jar and then "go up one directory". My app works fine when I can provide control over the classpath (for example, from a batch file, ant, or eclipse) but I am stuck trying to webstart. The OpenOffice community has no answers.
I've tried a huge number of permutations of things, based on advice from this forum:
-- jar'ing up the installation jars and deploying them (works for the OpenOffice java classes, but not for the DLL loads)
-- creating a custom class loader (again, works to load the java classes but not the DLL's)
-- jar'ing up the installation DLL's and deploying them (doesn't have any effect)
-- setting the system classpath in my code to the known client-side location of the installation (doesn't work - get NoClassDefFoundError)
String cp = System.getProperty("java.class.path");
String newcp = cp + System.getProperty("path.separator") +
              "C:\Program Files\OpenOffice.org1.1.4\program\classes";
System.setProperty("java.class.path", newcp);I would have thought the last attempt would have worked - I don't understand why the classes cannot be found. Does anyone have any positive experiences with manipulating classpath via javaws?
Thanks,
Dave Santo

I've solved this issue.
I had to create a shell application, launched via jnlp. The shell app grabs the webstart cached jar files, builds a classpath string with all these jars and the client-side OpenOffice installation location, and launches the real application, i.e.
public static void main(String[] args)
    File tmpdir = new File(System.getProperty("java.io.tmpdir"));
    // build the constructedClasspathString, based on this class (see thread referenced below)
    String[] launchArgs = new String[4];  // or more if you want to copy in other arguments
    launchArg[0] = "java";
    launchArg[1] = "-cp";
    launchArg[2] = constructedClasspathString;
    launchArg[3] = targetClassNameString;
    // copy in other arguments as desired...
    Process p = Runtime.getRuntime().exec(launchArg, null, tmpdir);
    StreamGobbler out = new StreamGobbler(p.getInputStream(), "OUT");
    out.start();
    StreamGobbler err = new StreamGobbler(p.getErrorStream(), "ERR");
    err.start;
    int result = p.waitFor();
}You definitely want to inherit this instance's environment, so don't override the 2nd argument to exec().
The StreamGobbler stuff can be found here:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
The 'grabbing the webstart cached jar files' stuff can be found here (you'll want to modify it a little ...)
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=71208
- Dave

Similar Messages

  • UTL_FILE: Reading and Writing client-side Files

    Hi All,
    Please tell me how to read & write UTL_FILE at client-side
    Regards

    And you need this XML to be generated on and read from a client machine? You can't generate the file on the server, move it to the new server, and import it?
    If you need to generate files on the client machine, the client application would have to do the file I/O. Java has a number of libraries for generating XML and parsing XML that could be used, for example, but that implies that a Java application has been deployed to the client machine.
    Justin

  • Not getting updated at client side

    I have enabled updates for Lion, along with other updates for 10.6.8,  but I notice in Log of software updates I get the following:
    Apr 12 10:43:08 sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 061-7532
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-3133
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product zzzz041-3544
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-4711::1
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-0304
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-3970
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-3969
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-3999
    Apr 12 10:43:08  sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 041-2294
    Software update is not happpening ar client side. Says Software is Upto Date. When I see Apahce logs at server side it says
    [Thu Apr 12 10:54:11 2012] [error] [client 10.10.1.2] File does not exist: /swupd/html/content/catalogs/others/content/downloads/31/07/061-5792
    [Thu Apr 12 10:54:11 2012] [error] [client 10.10.1.2] File does not exist: /swupd/html/content/catalogs/others/content/downloads/31/60/061-4782
    [Thu Apr 12 10:54:11 2012] [error] [client 10.10.1.2] File does not exist: /swupd/html/content/catalogs/others/content/downloads/60/08/11A511a_Se
    And from client side redirecrting happening properly to local update server . and software update server show all updates.i have attached the screen shot

    I have this issue as well, it all seemed to of started AFTER I ticked remove outdated software updates, noticed somthing odd when i had no log from clients connecting.
    Hope there's a solution soon

  • I need user management system in PHP recommendations to work with Flex client side

    Hi All,
    I have a very big project that involves PHP server side (That i have to develop) and Flex client side. I was wondering it there is a ready made PHP user management system that i can use to provide me:
    - user login/logout
    - forgot my password functionality
    - register (better with captcha)
    Does someone can recommend this kind of php system?

    Hi, guys
    Free and open source PHP User Management Scripts. These scripts  provide a solution of creating a membership system of a website.
    Some PHP user management scripts listed on PHPKode.com. which you can choose the right php user management to meet your demands!
    Hopefully can help you!
    Best regards!
    Anny

  • Calling client-side Java?

    Is there a way to call a client-side java class from
    ActionScript? Server-side is clearly available, but I'd like to do
    some expensive processing locally.
    Thanks

    The Flash Player security sandbox virtually prohibits access
    to any client-side resources whatsoever.
    Tracy

  • ACE30 - PING to VIP and Client side SVI not working

    Hi Guys,
    Having setup the ACE30 based on the configuration guides, I've been able to get basic load balancing working, probes, stickness etc.  However in testing connectivty, I've noticed that from the real server on the backend I cannot seem to PING:
    1. The VIP for the web service that the server is a part of
    2. The Client side SVI
    I'd like this to work to ensure full connectivity.
    I've applied ACLs to the Client side SVI (on the ACE) to allow this in both directions, and also removed any ACLs attached to the client side SVI on the MSFC where the subnet is actually homed.  However I just cannot seem to PING the Client side SVI on the ACE, or the VIP.  Trying to understand if this is normal behavior.
    Have inserted my config below for completeness.
    ACE30 Config
    login timeout 60
    hostname ACE1
    boot system image:c6ace-t1k9-mz.A90_6_3_5.bin
    boot system image:c6ace-t1k9-mz.A4_1_0.bin
    resource-class RC_1
      limit-resource all minimum 10.00 maximum unlimited
    access-list all line 8 extended permit ip any any
    access-list v6-any line 8 extended permit ip anyv6 anyv6
    class-map type management match-any REMOTE_ACCESS
      description Remote access traffic match
      2 match protocol telnet any
      3 match protocol ssh any
      4 match protocol icmp any
      5 match protocol https any
    policy-map type management first-match REMOTE_MGMT_ALLOW_POLICY
      class REMOTE_ACCESS
        permit
    interface vlan 768
      description Management connectivity
      ip address 10.20.40.72 255.255.255.0
      service-policy input REMOTE_MGMT_ALLOW_POLICY
      no shutdown
    ip route 0.0.0.0 0.0.0.0 10.20.40.254
    context VC_1
      allocate-interface vlan 11
      allocate-interface vlan 186
      member RC_1
    username admin password 5 $1$STizNv5q$i96.Qrt4C4SfHkbLyVT74.  role Admin domain default-domain
    username www password 5 $1$ZAn8bOtv$xmmNlH8akF6iYfXdQCKMo1  role Admin domain default-domain
    ssh key rsa1 1024 force
    ! VC_1
    ACE1/VC_1# sh run
    probe http HTTP_PROBE1
      interval 15
      passdetect interval 60
      expect status 200 200
      open 1
    rserver host RS_MONASH_WEB1
      description Test Monash Web Server 1
      ip address 10.194.27.177
      inservice
    serverfarm host SF_MONASH_WEB
      probe HTTP_PROBE1
      rserver RS_MONASH_WEB1 80
        inservice
    sticky ip-netmask 255.255.255.255 address source STICKY_MONASH_WEB
      timeout 3600
      serverfarm SF_MONASH_WEB
    class-map type management match-any REMOTE_ACCESS
      description Remote access traffic match
      2 match protocol ssh any
      3 match protocol telnet any
      4 match protocol icmp any
      5 match protocol https any
    class-map match-all VS_MONASH_WEB
      2 match virtual-address 10.194.11.1 tcp eq www
    access-list ALLOW_TRAFFIC_TOWARDS_ACE extended permit ip any any
    access-list ALLOW_TRAFFIC_TOWARDS_ACE extended permit icmp any any
    policy-map type management first-match REMOTE_MGMT_ALLOW_POLICY
      class REMOTE_ACCESS
        permit
    policy-map type loadbalance first-match PM_MONASH_WEB_LB
      class class-default
        sticky-serverfarm STICKY_MONASH_WEB
    policy-map multi-match PM_MULTI_MATCH_CLIENT_VIP
      class VS_MONASH_WEB
        loadbalance vip inservice
        loadbalance policy PM_MONASH_WEB_LB
    service-policy input REMOTE_MGMT_ALLOW_POLICY
    interface vlan 11
      description Client connectivity on Vlan 11
      ip address 10.194.11.250 255.255.255.0
      access-group input ALLOW_TRAFFIC_TOWARDS_ACE
      access-group out ALLOW_TRAFFIC_TOWARDS_ACE       ! not sure if this is required as well?
      service-policy input PM_MULTI_MATCH_CLIENT_VIP
      no shutdown
    interface vlan 186
      description CSM www monash
      ip address 10.194.27.189 255.255.255.240
      access-group input ALLOW_TRAFFIC_TOWARDS_ACE    ! not sure if this is required?
      access-group out ALLOW_TRAFFIC_TOWARDS_ACE      ! not sure if this is required?
      ip dhcp relay server 130.194.15.17
      ip dhcp relay server 130.194.15.1
      ip dhcp relay enable
      no shutdown
    ip route 0.0.0.0 0.0.0.0 10.194.11.254
    6500s
    ! test-clay1-gw - ACE connects to this 6500
    svclc multiple-vlan-interfaces
    svclc module 2 vlan-group 2
    svclc vlan-group 2  11,171-499,768
    ! test-clay0-gw - Where Client side subnet, VLAN11 is homed
    interface Vlan11
    description Testlab server subnet
    ip address 10.194.11.253 255.255.255.0
    no shut
    ip route 10.194.27.176 255.255.255.240 10.194.11.250
    thanks
    Sheldon

    To ping your VIP of the webserver, you should apple the service-policy input command on VLAN 186 too. Currently the VIP only listens on VLAN 11. For the SVI i think that was forbidden by security reason, but i cant remember anymore. Maybe you just need to put the management policy on the interface VLAN 186. If it dont work, then my first guess was right

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Why does IE8 running on XP and Win7 Virtual Machine deletes the history while I'm still browsing the same site with client-side hashbang routing?

    Hello, 
    I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
     I've got both of the virtual machine source from www.modern.ie 
    My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in  the url without causing the page to reload. My
    code works fine in IE9+ and other modern browsers.
    However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
    of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
    The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
    all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
    problems like both the back and forward buttons gets disabled.
    Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers. 
    Till now, I have tried following steps on both VMs: 
    Resetting IE8.
    Increasing disk space to 1024mb for temporary internet files storage.
    Setting 'Never' for Check for newer versions of stored pages.
    Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
    Deleted temporary files, history, cache, etc many a times.
    Search many forums, posted question on StackOverflow, ASP.NET
    Forums - but didn't helped.
    Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
    The issue is browser forgets about the browsing history while I'm still browsing the same site. 
    Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page? 

    I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
    But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
     IE0012: IE Travellog broken when navigating back/away from a page with
     a large POST form If there is a form input field with a value longer
     than 523,659 characters, when you navigate away from the page, IE may
     clear the current session's travellog (similar to history), disabling
     the back and forward buttons. Repros in IE6 & IE7.
    There are following solutions that you can go for:
    - Check for the input field that has lots of characters as mentioned above and solve your problem.
    - If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
    I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone.

  • Merging randomly-named XML data file on client-side with pdf designed in Livecycle 7.0 (and addition

    Okay, as a heads up I work for a financial institution and we are converting our legacy "jetforms" to pdf format. I have in my staff for the project, 2 code developers and myself- a form designer. We have currently spent 2 months in trial and error attempting to resolve this problem, please let us know anything you can have. All client-side (internal) machines are running Windows XP and Adobe Reader 7.0.7
    The software we use as a financial institution allows our users to export a customer's data file onto their machine which is then renamed to include the member's account number and first and last name for our staff to determine which data file they need more accurately. In legacy jetforms, we have developed a program that pushes the data from the customers file that they select, into the jetform that they want to open and the matching fields in the data file fill in the fields of the jetform. Clean and simple.
    Now, i have hit nothing but frustration when attempting to perform the same process with pdfs using a form designed in livecycle designer 7. First, i see no obvious command for opening a pdf and importing a data file using a command line, like pdfmerge or something of the sort in which an xml data file can be specified and a pdf can be specified. I saw something like it using an fdf format and attempted to do this but apparently reader cannot import the data into the pdf that was designed adobe livecycle 7. All i have been seeing is database connections and using javascript inside the form to populate fields based on these database connections, etc. etc. or doing a manual file>import data>etc. which we don't want to have our staff do. We do not have reader extensions enabled, simply because i cannot get an adobe representative to call me and discuss pricing nor see any estimated pricing chart around. I don't know if reader extensions are necessary for this or not but i'm becoming very very frustrated with it.
    We don't want a complex server-side data connection binding with dynamic input. No, we just want it where our developers can say "if this data file is selected, and this pdf form is selected run this command" which would be a simple pdfmerge type solution. Is this possible or do i need to stay with jetforms until our software the billion dollar financial institution uses does form building inside its own application? I don't want to fight about who is better, what version to use, etc. I just want the straight up honest truth. If you need to know the pricing that the reader extensions would have to go by, assume there will be 500 client computers that will need to use it.

    From your post it sounds like you are Central Pro (a product for which I am by no means an expert), but you say you want to upgrade to a newer product from your "legacy" one. Is there a reason for this? Have your requirements change so that it no longer fits them? Central is still in the current Adobe roster and as far as I know there is no plans to get rid of it any time soon, so if it does everything you want I don't see why you would want to change.
    There is no product in the LiveCycle suite that merges xml data into a form from the command line. LiveCycle (with the exception of Designer) is a suite of server products, so the closest you would come is LiveCycle Forms (merge the xml and create a fillable PDF) or LiveCycle Print (merge the xml and print the form).
    Hope this helps somewhat.
    Chris
    Adobe Enterprise Developer Support

  • How to get and put data in HTTP header in Client Side

    One JSP's function is to display data records page by page. Client users could click "First page" or "Previous Page" or "Next Page" or "Last Page" button to let the JSP to show the corresponding page. So the JSP must remember the current page number. Due to there are a number of client users maybe access the JSP at the same time, keep the current page number in session, there will be a lot of session is created at the same time, this will impact system's performance. So using session to keep data method is not used. I plan to use request header and response header to pass the current page number. I know use the response.addHeader to put data in response header and also know use request.getHeader to get data in request header in server side, but I donot know how to put data in request header and how to get data in response header in client side. Could you please give me a help? If donot use these method, are there any other method? Thanks a lot.

    Why not pass it as a parameter with the URL?
    at the beginning of the page..
    <%
    int pageNumber = Integer.parseInt(request.getParameter("page"));
    %>
    then when defining your links
    <a href="thisPage.jsp?page=<%= (pageNumber-1)%>">Previous</a>
    <a href="thisPage.jsp?page=<%= (pageNumber+1)%>">Next</a>

  • Read and write info from/to file available at client side.

    Hi,
    I have some table name in one CSV file at client side.
    once you get list of tables name from input CSV file at client side.
    Need to run one query to know total rows and size of table in MB , this i need to repeat for all tables which i got from input file.
    finally write 'table name | total rows | size of table in MB' whole info in another CSV file at client side. this output CSV file name will contain timestamp.
    Please guide me in detail how to read and write file avail at client side.
    I am using sql developer at client side.
    version : oracle11g
    Thanks in advance.

    This is a simple SQL question and this forum is for SQLDEveloper, however, this is a question for our SQL*Plus support which can help with this.
    clear SCREEN
    set FEEDBACK off
    set head off
    --Gather stats to populate rownums and avg length of rows.
    --These are not exact sizes (obviously) but you get the idea.
    begin
    dbms_stats.gather_schema_stats ('<YOUR_SCHEMA');
    end;
    select TABLE_NAME||','||NUM_ROWS||','||ROUND((NUM_ROWS*AVG_ROW_LEN)/(1024*1024)) CSV
    from USER_TABLES
    where num_rows is not null order by num_rows desc;

  • How to encrypt username and password before transmit on client side

    I want to encrypt the username and password at client side when user login to my page first and then send to server.
    Could anybody tell me how to do it?
    Thanks a lot.

    Yup , What suggested is true...
    The HTTPs authentication type is mainly for encrypting..
    This is an extract from the book i have which states how you can do that...
    UNDERSTANDING AUTHENTICATION MECHANISMS
    HTTPS Client authentication :
    HTTPS is HTTP over SSL (Secure Socket Layer). SSL is a protocol developed by
    Netscape to ensure the privacy of sensitive data transmitted over the Internet. In this
    mechanism, authentication is performed when the SSL connection is established
    between the browser and the server. All the data is transmitted in the encrypted form
    using public-key cryptography, which is handled by the browser and the servlet container
    in a manner that is transparent to the servlet developers. The exam doesn�t
    require you to know the details of this mechanism.
    Advantages
    The advantages of HTTPS Client authentication are
    � It is the most secure of the four types.
    � All the commonly used browsers support it.
    1 Actually, instead of the password, an MD5 digest of the password is sent. Please refer to RFC 1321 for
    more information.
    Disadvantages
    The disadvantages of HTTPS Client authentication are
    � It requires a certificate from a certification authority, such as VeriSign.
    � It is costly to implement and maintain.

  • Passing parameters between server and client side

    Dear All
    I writing a server-side web service and using wsdl to expose its methods for a 'client' to use.
    However, i need to make sre the clients creates a soap header? How can i tell the client it must create a soap header?
    Also can someone tel me how i pass a value from the server-side to the client-side and also get a vlue from the client soap message
    Many thanks

    In your wsdl you would have the header as part of the input for example, see the operation below:
    <wsdl:operation name="foo">
    <soap:operation soapAction="http://www.foobar.com/foo" style="document"/>
      <wsdl:input>
       <soap:body use="literal"/>
       <soap:header message="tns:FooSoapHeader" part="MySoapHeader" use="literal"/>
      </wsdl:input>
      <wsdl:output>
       <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>

  • How to read and write Xml file at client side using JavaScript !

    Hello,
    i am new to javascript.
    I have requirement to read and update XML file at client side.
    Will you please guide what could be the best way to read and update XMl file using javascript.
    Thanks,
    Zuned

    This is a Java forum,not a Javascript forum. Maybe you should ask here [http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s|http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s].

  • Identifying Flash Player versions 10a, 10b and 10c using client side scripting

    I need to write a client side script to identify users with 10a, 10b or 10c installed, but I only see version 10 (no letters.) Is there a translation between version keys major/minor/revision, and 10a/10b/10c? I want to use the (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash"))) method in conjuction with the javascript.GetVariable("$version") method, and I need to know what values to check for.
    Thanks very much!

    For your information
    Flash10.ocx  / FlDbg10.ocx  = 10.0.2.54   Shipped with CS4
    Flash10a.ocx / FlDbg10a.ocx = 10.0.12.36
    Flash10b.ocx / FlDbg10b.ocx = 10.0.22.87
    Flash10c.ocx / FlDbg10c.ocx = 10.0.32.18
    Flash10d.ocx / FlDbg10d.ocx = 10.0.42.34

Maybe you are looking for

  • Web report req's

    Hi Gurus- My Web report req's are .. Input:Selection screen...        Invoice no: XXXXX Output: Should get dispalyed             Branch : Branch value             Sector : Sector value             Legal entity : Legal entity value             Custome

  • Problems with the FIREBOX presonus

    i leave the computer on sleep and the box is always on gets hot and blue turns to red. lately headphone plugs get one channel only , if i restart and do all kinds of manips with AUDI MIDI and the firebox mixer including pulling out the firewire cable

  • Search function for BMW Connected Drive

    The new Spotify integration with Connected Drive on BMW works really well! EXCEPT that there is no 'SEARCH' tab so I can only view my saved music and pre-selected genres and playlists. This means you can't search for any artist/album/genre while on t

  • Basic question from a non tech user

    how can i upgrade to version 10.4...i have 10.3.9 and i cant use certain online file backup services...so i guess i need to upgrade to version 10.4 as that seems to be th erequired min standard ...do i have to go out and buy a whols new operating sys

  • Asset balance transfer -1kei

    Hi, When we are transfering the balances in Assets in Profit center using 1KEI ,a balance of 1000 is transfered to a particular profitcenter for an asset balancesheet account for period 1.But actually when i goto 2KEE or GLPCT table the amount is rs