How to force web start to use a specific private JRE without searching reg
I am trying to make webstart start using a private JRE independent of what JREs are installed on the System. I am installing a private JRE in the users home directory, eg
C:\Documents and Settings\USER\Application Data\APP\jreThen starting webstart by calling:
C:\Documents...APP\jre\bin\javaws.exe http://....jnlpThe problem is javaws.exe always scans the regsitry in builds its own list of installed JREs.
I have tried to solve this by setting USER_JPI_PROFILE env var with my own custom cache location and building a custom "deployment.properties" file with just my private JRE in it, but web start always searchs the registry and find and uses a system JRE over mine.
Any Ideas?
Thanks, Jasper
Did you also place a deployment.config file , to point to your deployment.properties file?
In the deployment.properties, specify the location of your custom jre:
deployment.javaws.jre.0.platform=1.5
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.osname=Windows
deployment.javaws.jre.0.path=jre\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.5.0_05
deployment.javaws.jre.0.location=http\://myjre.download.location
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.osarch=x86The above properties tag your custom jre, as been downloaded from http://mrjre.download.loaction - This location doesnt have to exist.
In your .jnlp file, specify this download location in the jre tag.
Similar Messages
-
How to force a sql_id to use a specific hash plan value
Hi,
in my 11.2 database i've seen that a sql_id change hash plan value.
The original was more faster than second, but optimizer use second.
How can i force the sql_id to use the first hash plan value?
TnxHi,
i've a problem.
I've fixed the plan 3 days ago, but looking AWR (today), it use old hash plan.
Plan Hash Total Elapsed 1st Capture Last Capture
# Value Time(ms) Executions Snap ID Snap ID
1 2658787094 3,592,228 0 334 334looking into dba_sql_plan_baselines i've 2 plan_name, and only one is fixed.
select *
from table(dbms_xplan.display_sql_plan_baseline(sql_handle => 'SQL_3d5572d6f5e8cdda', format => 'basic'));
Plan name: SQL_PLAN_3upbkuvuyjmfub082c0c4 Plan id: 2961359044
Enabled: YES Fixed: NO Accepted: YES Origin: MANUAL-LOAD
Plan hash value: 2658787094
Plan name: SQL_PLAN_3upbkuvuyjmfu7ca80389 Plan id: 2091385737
Enabled: YES Fixed: YES Accepted: YES Origin: MANUAL-LOAD
Plan hash value: 3534976400
id plan hash last seen elapsed (s) origin note
1 3534976400 2012-10-26/14:00:11 183.232 AWR not reproducible
2 2658787094 2012-10-29/12:00:24 23116.872 AWR not reproducible Why i see old plan (2658787094)?
Thanks -
How to get web application to use Tuscany without conflicting with SAP SDO
Hi,
We are attempting to run a web application on SAP NetWeaver CE 7.1 SP1 which uses Tuscany SDO. As it now stands We must use Tuscany because the web application will not run with the SAP SDO implementation provided by Netweaver. To ensure that Tuscany is loaded with priority, we have packaged the Tuscany JAR files and their dependencies as a heavy resource, as described here:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257?overridelayout=true
The final check showed that Tuscany was correctly deployed as a heavy resource and included the following JAR files:
common-2.2.3.jar
ecore-2.2.3.jar
ecore-change-2.2.3.jar
ecore-xmi-2.2.3.jar
tuscany-sdo-impl-1.1.1.jar
tuscany-sdo-lib-1.1.1.jar
tuscany-sdo-tools-1.1.1.jar
xsd-2.2.3.jar
We also verified that the web application using Tuscany has a hard reference to the Tuscany heavy resource.
However, when we try to run the web application, the following error is logged: java.lang.LinkageError: Class commonj/sdo/DataGraph violates loader constraints
The issue is definitely due to some kind of classloading conflict with the SAP SDO library, as the application runs normally when SAP SDO is manually removed from the classpath. Doing this on a production system is unfortunately not an option, though.
So the question is: how to get web application to use Tuscany without conflicting with SAP SDO?I took a look at the "printerReady" example. Looks like I may be able to use the InetPing (...) function to ping through a range of IP addresses looking for a response.
Any ideas on how to find the MAC address associated with the IP addresses that respond?
We may have multiple units responding and the MAC address will allow the operator to determing which unit to connect to.
I'll try the InetPing to see how it works,
Kirk -
How to save webi report created using InfoView into my local PC
Hi Experts,
I am creating a Web Intelligence document using infoview and once the report is ready, i want to save it in my local PC for later refresh. How can i save that using Infoview ? I don't want to save the report in the server(repository).
Regards,
SureshAfter saving WebI reports to Local PC also, one can't see them COZ of .wid extension, to view them again we need WebI installed.
You can Save them to Excel or PDF or CSV to your local PC and Schedule them to get latest data as well.
Thank You!! -
Getting Web Start to use JDK's javaw.exe, not JRE's
On Windows, I need a Web Started app (actually, my Glossitope desklet) to run with the JDK's javaw.exe, not the JRE's, because I use the Java Compiler API, which is more or less a no-op in the JRE. I've tried using the Java Control Panel to change the Java Application Runtime Settings path to use the JDK path rather than the JRE's, but the change never takes. What, if anything, can I do to get JNLP's to run with the JDK?
Well, using ToolProvider is exactly what I'm trying to do. The program lets you type some Java code, then compiles it and runs it (with help from a custom class-loader). The problem is that when run from Web Start on Windows, ToolProvider.getSystemJavaCompiler() returns null. I can see from the Control Panel that Web Start's path to Java uses the JRE path, not the JDK, and I suspect that's the reason I'm getting null for the compiler.
I suspect bundling the tools jar is exactly what I need to do, and I also suspect the license forbids that.
Works great on the Mac, FWIW.
Thanks for the reply.
--Chris -
How to call Web Start app from Web Start app?
Is there a way to call another Java Web Start Application from a running
Java Web Start Application, possibly from a different JNLP file?
Could this be done in a way that there won't be another virtual machine
launched; i. e. that the started Application will run in the same virtual
machine as the calling one?
Cheers,
TobiasIm not sure about running in the same Jvm however there are two ways I know of to start another jnlp app. I am using this to essentially restart my application however, you dont have to do that and can start another web application by either using BasicService.showDocument with the jnlp file ( should start a webs tart app) or usign runtime exec with javaws and the jnlp as the argument.
String jnlpUrlString = "commpartnersapp.jnlp?COMPANY="+COMPANY_ID;
try {
try {
// Lookup the javax.jnlp.BasicService object
//get the codebase
//This will work on both Unix and Windows
BasicService basicService = (BasicService) ServiceManager.lookup(
"javax.jnlp.BasicService");
URL codeBaseURL = basicService.getCodeBase();
log.config("basicService.getCodeBase()=" + codeBaseURL.toString());
basicService.showDocument(new URL(codeBaseURL, jnlpUrlString));
catch (UnavailableServiceException ue) {
//here for testing purposes since we are not started from jnlp in IDE
log.log(Level.SEVERE,
"ClientFrame:jMenuItemResetUserId_actionPerformed", ue);
//when we are in the development environment
String codeBaseString = "http://compub.cms/web/webportal/soft/";
//Note this will work on windows only, javaws always in path
//see http://java.sun.com/developer/community/chat/JavaLive/2005/jl0301.html
//works on windows
String execString = "javaws " + codeBaseString + jnlpUrlString;
log.config("execString = " + execString);
Process application = Runtime.getRuntime().exec(execString);
catch (MalformedURLException ex) {
log.log(Level.SEVERE,
"ClientFrame:jMenuItemResetUserId_actionPerformed", ex);
catch (IOException ex1) { //runtime exec throws IOException
log.log(Level.SEVERE, "ClientFrame:jMenuItemResetUserId_actionPerformed", ex1);
//pass a false param to not store profile at end of shutdown
this.shutdown(0, false); //calls System.exit(0);R
S -
MX 925 - how to force the printer to use paper from lower tray
Hi' there,
Several people seems to have the problem, that the printer "wants" to print from the upper tray, - I assume it's because it want's photo paper. Is it possible to FORCE the printer to use paper from the lower tray, when e.g. you have no photo paper, receive the error message, and just want to see the print?
:-) SoggeI found a methoid that while clumsy, works. I have defined another printer on my windows machine that points to the same
printer as my original printer defination. I have named this printer "Legal" and has defined legal paper as it's default. When
I print to this printer( DECTYPE, DECNAME) it now defaults to legal. -
Web Start Application fails after upgrade to JRE 1.6.0_u33
I have a production application that uses java web start for deployment. All has gone well, but we are experiencing problems when testing upgrading to the latest JRE update 1.6.0_u33.
The application is composed of several jar files, all of which are signed with a code signing certificate. However, after updating the JRE, I receive the error :
#### Java Web Start Error:
#### Unsigned application requesting unrestricted access to system
Unsigned resource: the first jar file in my jnlp
This is a pretty odd error, since the jar is definitely signed. I can find it in the webstart cache and run jarsigner -verify against it and it verifies successfully.
If I remove the application and reinstall it, everything works fine, but this is a pretty unacceptable solution for thousands of users, many of which are not very technical.
Does anyone have any solutions or has anyone encountered the same problem? It is currently a showstopper for us to taking this new JRE update which contains some critical security updates we would like to have implemented.
Thanks in advance for any help.Hi
I have seen this post a little bit late, but... We have also encountered such issue.
There is another workaround than ask people to empty the java web start cache.
In order to force the end user's computer to download again you application entirely, we have signed again ALL the jar files and uploaded them to our server.
That works well but... if somebody download the "new" files and upgrades java to 1.6_0_33 afterwards... same issue will appear again.
Please observe that the traffic in this forum has started to decrease strongly. That's not amazing when you see that you cannot count on this product.
Java web start has never worked correctly and that for a long time. This one suffers of numerous bugs and regressions. We should rather call it Java Nightmare Neverstart
It's a shame.
Sun has been acquired by Oracle but that does not seem change anything.
Java RIP
Claude -
How to identify reports that are using a specific universe object?
Any idea how to use BO Auditor or Metadata Manager to identify webi reports that are using a specific universe object or universe prompt in the report SQL?
Hi Samuel,
In case you are using BOXIR2 you can do this by editing the crystalenterprise.webi.xml file.
Replace the CrystalEnterprise.Webi.xml file (Take a backup) with the edited one.
Path where you can find this file- Tomcat/webapps/businessobjects/enterprise115/desktoplaunch/WEB-INF/classes/META-INF/CrystalEnterprise.Webapps/ePortfolio/plugins
Paste the Custom Documentation folder in Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\
May I know your email Id so that I can send you the edited crystalenterprise.webi.xml file.
Regards,
Sarbhjeet Kaur -
My office room is near different APs with the same SSID, my Snow Leopard selects automatically to join the AP with stronger signal.
But this AP isn't running well, so I want to force my mac to join a AP with weaker signal.
(I've the same troubel as described in https://discussions.apple.com/message/6470508#6470508)
Note that I'm a guest user and I hanen't access to APs, so I cannot change their SSID.
Any idea how to force Mac to join a specific AP?
Thanks,
adsoMy office room is near different APs with the same SSID, my Snow Leopard selects automatically to join the AP with stronger signal.
But this AP isn't running well, so I want to force my mac to join a AP with weaker signal.
(I've the same troubel as described in https://discussions.apple.com/message/6470508#6470508)
Note that I'm a guest user and I hanen't access to APs, so I cannot change their SSID.
Any idea how to force Mac to join a specific AP?
Thanks,
adso -
How do you identify all reports using a specific custom function?
Is there a way to identify all Crystal reports that use a specific custom function? When we make changes to the function we need to re-attach the function to the existing reports, but we need to know what and where they are.
We are using CRS XI.
Thanks.duplicate - please do not post multiple times
-
How to force Functional Module to use Batch-Process ?
Hello all,
I am calling a FM via synchronous RFC. No matter what I try the functional module is started
in a dialog process in the remote system. This is inconvinient because sometimes the process takes too long and a timeout occurs. I also tried transactional RFC and asynchronos RFC but no difference here.
The FM will always be executed in a dialog process.
How can I tell the functional module to use a batch process ?
Thank you for your answers,
Axelhi,
use
CALL FUNCTION 'HR_START_BATCHJOB_IN_OTHER_SYS'
EXPORTING
repid = 'sy-repid' " "Program name
variant = 'VAR'
JOBNAME =
CALL_BACK_DEST =
CALL_BACK_ID =
IMPORTING
JOBCOUNT =
INDX_ID =
TABLES
valutab = it_sel.
you can set your program in batch mode using the above function module
Yogesh N -
When I use Firefox at work I must use a proxy, however when at home I want to connect with no proxy. I'd like to have two launchers for Firefox, one for work and one for home. To do this I need to configure Firefox from the terminal.
After searching on the internet the only solution I could find was to launch Firefox with two different profiles, one for work using the proxy, and another for home. However if I do this, my bookmarks and saved passwords will not the same for both profiles.Right click on the desktop and choose 'Create Launcher'. There enter the details so start the program directly not via a script. This did the trick for me for another program.
-
How do I force an app to use a specific IP address if I have multiple IPs?
MacBook Pro
Retina, Mid 2012
Processor 2.6 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3
Software OS X 10.8.5 (12F45)
I sometimes run simultaneously on Wifi through a wireless router and also connected to another router with an ethernet cable. I have applications that need to connect to different pieces of studio hardware, sometimes on one router, sometimes the other. The problem I have is sometimes the application that I am using will not look for the hardware on both routers. It checks the router that doesn't have the hardware and then never checks the other router. It indicates that It can't find my hardware. Is there any way through OS X to force or limit an application to check on a specific IP?
Thanks in advance.
EddyYou can play with the 'route' command in an Applications -> Utilities -> Terminal session to specify which route a specific IP address should take.
man 8 route
Google can most likely give you examples you can use to specify routes.
Routes must be setup after each reboot. -
How do you get started on using Photoshop once you downloaded the trial?
I have 'installed' the free trial on Creative Cloud, it tells me that Photoshop CC is up to date, but all it gives me is the link 'View Tutorials'' and I cannot actually open PS and use all its functions. PLEASE HELP! This is what I've been stuck with:
Launch the application from the start menu or applications folder, just like any other application you installed.
Maybe you are looking for
-
SQL Query in mapping to load warehouse table
Hi experts, I hope you can help me to solve my problem. I already searched here in forum how we can add a query in a mapping but still not found an answer. In my warehouse I have a time dimension table which has a unique dimension key and all date in
-
A number of issues with my Xperia Z1
I have had my Xperia Z1 since around November 2013. I have been having a few issues with it. After calling my service provider they suggested I do a factory reset. That's where my first problem comes in. I have tried a number of times to back up my p
-
How to convert any datatype to a number
Hi -- I have a query I'm writing, and for error-trapping purposes I want to convert whatever information I received in a bind variable into a number. For instance, in my query: SELECT TO_NUMBER('c') FROM dual I get an error because 'c' is not a numbe
-
How do I save all open tabs as bookmarks into one bookmark
if I have anumber of tabs open - how can I save them into one bookmark folder without saving each one individually?
-
Set/Change title of a report via remote RFC
Hi there, does anyone know a standard RFC which may called by remote to change the description of a existing report. Thank you on advance, Andi