Downloading/uploading external (non-jar) files to/from client
We are searching for a solution to upload and download non-jar files to or from the JWS-client. We've only found information to upload jar-files to a JWS-client, but we couldn't find anything about uploading non-jar files. Is there a standard solution or tool to do this with webstart?
Hi there,
We found a solution to upload the non-jar files, in our requirement we are trying to load the resources in the zip files. I have written the extension installer to extract the zip file from the URL to the JNLP client.
But for this user has to click on the install pop up to allow the JWS to install the non jar files.
Thanks,
TSR
Similar Messages
-
Lazy downloading broken for updated jar-files?
Hello,
Using webstart-6.0 + jar-index + download="lazy" works great - jar files are downloaded on demand when they are really needed.
However when updating all jar-files, the files that have been downloaded lazily and cached before are downloaded again before the application can be launched, not only on demand.
Is this the intended behaviour, and is there any way to let webstart lazily download updates, just when the jar-files are needed?
Thank you in advance, lg ClemensLibraries loaded from the j2ee/home/lib directory are opened and loaded at the J2EE container level. So they are accessed from the very start of the server, to the point where it is stopped.
Therefore if you modify a class library which has already been loaded, you may run into file locking related issues (which will be OS dependent, Windows for example probably won't even let you overwrite the file) so that is what you are likely to be seeing.
JAR files loaded at the J2EE container level aren't really suitable for dynamic updating -- the classes can be referenced in a multitude of other classloaders.
As you have seen, replacing a J2EE container level class file, then a restart will be required along the lines of what you have written.
Stop mid-tier, move new file in and restart?? cheers
-steve- -
How to download connector Quickstart distribution .jar file to connect H2 databse
Hi,
I am using CQ5.4 version and i want to connect H2 Database with my cq5 instance. From the tutorial i got to know that i need to download connector Quickstart distribution .jar file.
But i am not able to figure out where i can get this file.
I have already downloaded H2 databse.
Plz help me as i need to complete this task as soon as possible
Thanks in Advance....If you are refering to JDBC connector [1] I would recommend not to use it. The connector has been in beta mode and we are in the process of correcting/removing the page for the JDBC connector. Instead use the respective JDBC driver and convert it into an OSGI bundle which can then be referenced in your custom JDBC client code to perform all DB activities. More details refer [2].
[1] http://dev.day.com/docs/en/crx/connectors/jdbc/current.html
[2] http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html -
Uploading Custom Code jar file onto UCCX
Hi,
I have written a custom code in java that invokes a web service. Now, this web service internally is dependent on jar files from IBM. My challenge is to upload my custom code jar file into the CRS admin page under Document Management. The custom code is dependent on the huge ibm runtime jar file (50MB) and the Document management on the CRS has a limit of uploading only 20MB jar files. To get this working, I was wondering if UCCX has some way of setting classpath for such dependent jar files so that I can use them while scripting.
Any suggestions would be helpful!
Thanks,
DMI've never used this so I can't say it will help or not, but its worth a shot:
http://www.fightingquaker.com/jaropt/ -
Determining the name of the jar file running from JAVA
Hi everyone,
This is probably a silly question, but how do you determine the name of the jar file running from within the jar file.
E.g. If I'm running the jar file "Test.jar", then how can I get the String value "Test.jar" from within my program?
Any help would be appreciated! Thanks:)I think that you can use the solution above to get the jar file resources associated with a particular jar file, and then use the JarFile class to get a manifest of whats in there, and then find your class?
This is only off of the top of my head, and I haven't tested it. Let me know if it works -
Calling an external program (*.exe file) on the client
Hi,
I use 9iDS and I'd like to call an external program (*.exe file) on the client, but this exe file is located on the server not on the client.
So it should be something like a mixture between host and client_host(webutil) command. Is it possible to use client_host where a virtual path is passed to?
Regards SörenAre you saying you want to run on the exe on the client but its located on the server???
In that case you would have to do a webutil file transfer to move it to the client before executing. Or, if you are calling a DLL, webutil will download it automatically from the server to the client (see the C API example on the webutil page).
Regards
Grant Ronald
Forms Product Management -
How to Serialize a file path from client to server?
I am using serializing concepts in java. I am stuck, that how can i send only file path from client to server?
Um, ill take a wild guess and say that youre trying to
access a file on another computer using that path?
That wont work.
What could the other computer possible do
with that path unless both computers are networked to a
common drive, or if they are networked to each other in a way
where the root in the file path would point to the same place
on either computer? -
Multiple download of the same JAR file
We have a collection of applets packaged in a single JAR file. Some users (web developers that use our applets) have been complaining that the applet is extremely slow to start up.
When the html page includes more than one applet from the same JAR file then, "ONLY IN SOME CASES", the JAR file is downloaded multiple times.
By capturing network traffic we can also think that the JAR file is downloaded even when accessing an image packaged in the applet's own JAR file.
One further detail: this "DOES NOT OCCUR" when there is a fast connection to the server (or at leat it seems so). In these cases, the JAR file is downloaded once. It looks as if the problem only occurs on slower network connections.
Thanks in advance for any help.Mmm... I don't think this is the solution... all the applets share a lot of classes (the big part of the JAR files).
But my question is....: why in some cases the JAR is downloaded more than once??? -
Download & upload of an excel file
Hi,
I have a requirement where the data needs to be downloaded into an excel file and user will upload the same excel file after making required changes in the data.
I have used 'GUI_DOWNLOAD' to download the data to excel file. I have tried to upload the same excel file using 'ALSM_EXCEL_TO_INTERNAL_TABLE' and 'TEXT_CONVERT_XLS_TO_SAP' function modules. But it is giving exceptions if I upload the same downloaded file directly. If I copy the data in the downloaded file to another excel file and upload this file, it is working.
I have tried using 'GUI_UPLOAD' with field separator which was also specified in 'GUI_DOWNLOAD' but in this case the data is uploaded into the internal table like,.
###&jkj, 0000 .......
Please suggest any other alternative.
Thanks & Regards,
Vishnu PriyaHi,
You may like to give a try to this FM
RH_START_EXCEL_WITH_DATA.it will take care of your formatting problem.
go thru this program..
*& Report RHVERI_EXCEL_DOWNLOAD *
REPORT rhveri_excel_download.
DATA: g_excelpath TYPE string,
g_excelversion TYPE string,
g_codepage TYPE abap_encod, "XMK#754232
g_return_code TYPE i, "XMK#754232
BEGIN OF gt_data OCCURS 0,
f1 TYPE char20,
f2 TYPE char20,
f3 TYPE char20,
f4 TYPE char20,
END OF gt_data.
END-OF-SELECTION.
gt_data-f1 = 'C1'.
gt_data-f2 = 'C2'.
gt_data-f3 = 'C3'.
gt_data-f4 = 'C4'.
APPEND gt_data.
gt_data-f1 = '10'.
gt_data-f2 = '11'.
gt_data-f3 = '12'.
gt_data-f4 = '13'.
APPEND gt_data.
gt_data-f1 = '20'.
gt_data-f2 = '21'.
gt_data-f3 = '22'.
gt_data-f4 = '23'.
APPEND gt_data.
"XMK#754232
gt_data-f1 = 'AEIOU'. "#EC NOTEXT
gt_data-f2 = 'aeiou'. "#EC NOTEXT
gt_data-f3 = '*?#/&§$#'. "#EC *
gt_data-f4 = 'äöüÄÖÜßaé'. "#EC *
APPEND gt_data.
"XMK#754232
CALL FUNCTION 'RH_CHECK_EXCEL_SUPPORT'
IMPORTING
excel_exe_path = g_excelpath
excel_version = g_excelversion
EXCEPTIONS
no_batch = 1
internal_error = 2
excel_not_installed = 3
wrong_frontend_os = 4
OTHERS = 5.
IF sy-subrc <> 0.
WRITE / 'Testaufruf von Excel endete mit Fehlercode:'(002).
WRITE: sy-subrc, / sy-msgv1, sy-msgv2, sy-msgv3, sy-msgv4.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ELSE.
WRITE: / 'Pfad von Excel'(005), g_excelpath.
WRITE: / 'Version von Excel'(006), g_excelversion.
ENDIF.
"XMK#754232
IF cl_abap_char_utilities=>charsize <> 1.
WRITE / 'Unicode system'(007).
CALL METHOD cl_gui_frontend_services=>get_saplogon_encoding
CHANGING
file_encoding = g_codepage
rc = g_return_code
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
g_codepage = '4110'.
ENDIF.
WRITE: / 'Codepage is'(009), g_codepage.
ELSE.
WRITE / 'Non-Unicode system'(008).
ENDIF.
"XMK#754232
CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
data_filename = 'TEST.DAT'
data_path_flag = 'W'
DATA_ENVIRONMENT =
wait = 'X'
data_table = gt_data[]
EXCEPTIONS
no_batch = 1
excel_not_installed = 2
internal_error = 3
cancelled = 4
download_error = 5
no_authority = 6
file_not_deleted = 7
OTHERS = 8.
IF sy-subrc <> 0.
WRITE / 'Aufruf von Excel endete mit Fehlercode:'(003).
WRITE: sy-subrc, / sy-msgv1, sy-msgv2, sy-msgv3, sy-msgv4.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ELSE.
WRITE / 'Aufruf von Excel lieferte keinen Fehler.'(004).
ENDIF.
Regards,
Amit -
Which jar file(s) from the Eclipse plug-in to use
Post Author: supermonkey
CA Forum: JAVA
Hi,I downloaded JRC plug-in and realized there are 47 jar files for CR. Now I'm wondering how many of these 47 files are being use when running CR from Java? My Java application resides on a server and users access the application thru web start. If users have to download all 47 jar files every time they run the application, it would su*k for them very much. Now does anyone know which jar files are actually being use during execution?The document here http://support.businessobjects.com/communityCS/TechnicalPapers/cr_xi_r2_jrc_deployment.pdf.asp told me that I only need about 20 or so of them. I plugged into the classpath or my test application and errors occurred. Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/commons/configuration/CompositeConfiguration at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.crystaldecisions.reports.common.engine.ConfigurationManager.<init>(Unknown Source) at com.crystaldecisions.reports.common.engine.Engine.configure(Unknown Source) at com.crystaldecisions.reports.common.engine.Engine.getConfigurationManager(Unknown Source) at com.crystaldecisions.reports.common.engine.a.a(Unknown Source) at com.crystaldecisions.reports.common.engine.Engine.getKeycodeManager(Unknown Source) at com.businessobjects.reports.sdk.a.a(Unknown Source) at com.businessobjects.reports.sdk.a.<init>(Unknown Source) at com.businessobjects.reports.sdk.a.if(Unknown Source) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.void(Unknown Source) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.connect(Unknown Source) at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source) at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source) at JRCViewReport.launchApplication(JRCViewReport.java:26) at JRCViewReport$1.run(JRCViewReport.java:50) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Now does anyone know which jar files are actually being use during execution? Or are all them have to be present? thanks,Post Author: supermonkey
CA Forum: JAVA
Hi Ted,Thanks for the reply. But what I was interested in knowing was how many of the Eclipse-CR plugin jar files does CR require for a successful execution? Or do I have to import all 47 jar files? thanks -
Hello ALL!
I am trying to install and configure Nexus 1000v, for the first time and looking to configure the second stage of linking the Nexus 1000v switch to vCenter and from tutorials and white papers say to continue the install using a .jar file. However not seeing this file in the latest release in 1000v zip file.
I can see this .jar file in the version 4 release and re-downloaded the v5 just incase it was corrupt and from a different machine; no .jar file.
%windir%\Nexus1000v.5.2.1.SV3.1.1-pkg\Nexus1000v.5.2.1.SV3.1.1.zip\Nexus1000v.5.2.1.SV3.1.1\VSM\Install
Cant find the white papers for v5, has anything changed?
HELP!!
JCCheck this:
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus1000/sw/5_2_1_s_v_3_1_1/install_upgrade/workflow/nexus_1000v_r_5_2_1_s_v_3_1_1.html
2-All files for this release can be found here:
http://www.cisco.com/c/en/us/support/switches/nexus-1000v-switch/model.html
HTH -
Downloading a directory of jar files
We need to download jar files one by one in the jnlp file but is it possible to download a directory that contains all the jar files as the number of jar files is too large?
I need to download around 50 jar files dynamically
using JNLP, how can that be achieved.Stop telling me what you 'need', because
a) I do not believe you have much idea what
you need.
b) To help you achieve the end goal, I need to
know what it is you are trying to achieve, and
that can be answered by the question
"What does this bring to the end user?"
(trust me - if you asked any enduser if they
need to download 50 jar's dynamically -
they would give you a strange look).
Though a simple and obvious answer is to
generate the JNLP file dynamically as well
(note: that is probably an entirely wrong
strategy to achieving the end goal).
And i even want to know if jnlp supports for loop as i m new to this topic. Then it sounds as though you have a lot
of reading ahead. Other posts you find on
the forum are a good start, but also the
official documentation, some good ones
are linked from here..
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/
The Developer's Guide is a good overview,
though the Spec. is the best. The FAQ has lots
of good stuff, but the JNLP package is really
focused on development using web-start file
services and such. -
How to use external libraries jar files in the composite application?
Hi,
I have some external jars files (which consists of java classes) that I would like to use in my composite application.
I have created a DC with type as external library for the jars. However, I don't know how to specify the DC to be used in my caf application.
Can anyone help?
Thanks.
Regards,
Fui VoonHi,
My jar files consists only java classes and a manifest.mf. The files are compiled using jdk 1.4.2-b28. Will this be any issue?
It seems that if I ignore the error and continue step 7 which is to do deployment of the ear, the error given is
Cannot update it.
Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 60 at index 41.
Does anyone know what that mean?
Is there any sample that teach how to deploy external libraries as bundled library?
Thanks.
Regards,
Fui Voon -
How to Remove Jar File name from the screen of nokia 40 series
hi
i have the problem with running midlet.
the jar file jame is always visible on the screen, how to remove that ?>
Prasanna Kumar wrote:
> Hi ALL
>
> I am using file adapter and I what to create file name dynamically by acesssing PO number and time stamp from the payload using variable substution.
> But the problem is I am getting ":" in time stamp field value and it is not acceptable for file name .
> So could you please tell me a way that I can remove this ":" from that particular field value and create the file name dynamically.
>
> Note 1)Add Time stamp option will not help me as we require a time stamp of particular zone.
> 2) Dynamic Configuration code is also not use full as I am using 1:n file creation
does the time stamp with the ":" a part of your output file?
else use a replaceAll function in your mapping and replace the : with empty string then use the value in the variable substitution
Another option is use the normal BPM for 1: N message flow. The use a simple java mapping that will introduce a dynamic configuration and you can create the file name as you want. the java mapping will be used in the flow of messages from BPM to target system.
ref: /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name -
Can't Execute JAR file deployed from JDev 903
Hi Everyone:
I took the Oracle beginning Java class, and got a copy of JDeveloper 9, and started in on a project. The task was to create a small module that will allow users with no direct SQL access to change their Oracle passwords. The good news is that it runs great from within JDev; it catches exceptions cleanly, it handles multiple databases with no problems. The bad news is that I cannot get it to run from a batch file or command line (client is Windows). I have run 'setvars', I have copied the CLASSPATH from the run window in JDev, all to no avail.
I am trying to deploy the app as an executable jar file. It's not meant to be an applet, because of the security implications.
I would gladly RTFM, but the FM's that I have gloss over the deployment step in Jdev. I figure it's something obvious, but I just cannot figure it out.
Any suggestions? Help a newbie...
Thanks,
MikeHi Mike,
I suggest you take a look at the log window of JDev, when you've successfully run your project.
If the log window is not displayed, go to View | Log.
Cut the command line, invoking javaw.exe, and paste it into your favorite editor.
Change javaw.exe into java.exe, save your file as a bat file, go in a DOS console, and run the bat file.
Let me know if it fixes your problem.
Thanks,
- Olivier
Maybe you are looking for
-
What applescript do I use to trigger to play a video in quicktime or itunes from MainStage 3?
I am new to Mainstage 3... I have made a karaoke video to play along with live in logic pro x and can easily play along with a full screen video there, but want a program that is processing less so less can go wrong... I bounce the video (+10 or so
-
I have a 17 inch Mac book, after migrate to Lion, I take 25 seconds to shutdown. all progams are closed. any reason?? Need I to install a native Lion OS to solve the problem? Regards, José A. Pereira
-
Hi, I'm experiencing an Error Code (47) -Invalid URL when I try to use QT. I tried searching the Web site for error 47 info but no success. Any assistance would be helpful. Thank you, Mitch S. PS - I tried to change from Rich Dad Viewer to QT on Rich
-
Invalid Color Management in Lightroom? (RAW)
I've noticed the strange thing, how Adobe Camera RAW 4.1.1 displays the same image differently in Photoshop CS3 & Lightroom 1.4.1 Here are the screenshots from both programs: What I've got in Lightroom/develop mode: http://www.imagebam.com/image/956c
-
Someone with experience in Enterprise Install Base? Regards Marcos Pineda [email protected]