Plug-In and multiple JREs

Within the plugin control panel, you can set which JRE installation the plug-in uses ("Java Runtime Environment" under the Advanced tab). Because of security concerns, requirements, customer relations, etc., our applets require that their .jar files be installed with the JRE. For compatibility and flexibility, we wish to install our "own" version of the JRE, with the jar files, separately from the standard install. The whole thing works if you choose the correct installation in the control panel. We would like to guarantee that the correct JRE is used, rather than hope the customer chooses the correct one in the control panel. Is there an OBJECT tag attribute, or PARAM, that allows you to specify which JRE installation the plug-in is to use?

Just use static versioning as specified at
http://java.sun.com/products/plugin/versions.html -
basically, the object tag using the CAFE... scheme
requires an exact match for the JRE (requires 1.3.1 or
higher to work).Does that not specify the PLUG-IN version, NOT the JRE in the plug-in? We don't need to use, say, plug-in v1.3.1 and v1.4.0, we need to use v1.4.0 but with a specific install of the JRE which is different from the default. We tried having two different installs of the same plug-in, but they didn't work and play well together.

Similar Messages

  • How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?

    Hi!
    Question about the problem mentioned in subject.
    I have configured that JNLP opens with 1.5 version, both versions are enabled in Java Control Panel Runtime Settings but when I try to start a desktop java console says:
    Java Web Start 1.5.0_22
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    And the opening of the desktop creates an exception:
    Java Web Start - Invalid Argument Error
    TooManyArgumentsException[ Too many arguments supplied: {C:\WINDOWS\Temporary, Internet, Files\Content.IE5\....
    I'm trying to open my desktop with 1.5 version and other programs with 1.6 version. What is it that I still need to do? I'm kind of confused with this. Some of my collagues have succeeded with this and some doesn't, with the same configuration.
    So the question is, how to use multiple JREs with IE8 so that one application uses 1.5 version and others 1.6 version?
    Br,
    Katri
    Edited by: ka**** on 09-Mar-2011 01:16
    Edited by: ka**** on 09-Mar-2011 03:16

    ka**** wrote:
    ..Question about the problem mentioned in subject.No "Using multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8" is a statement. To transform it to a question would be something like "How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?".
    Once you can come up with an actual question, I might look at this more closely.

  • Multiple JREs installed only 1.5 loads and works

    I originally installed jdk/jre 1.5 on a new computer. I then needed to use an applet that requred a version of 1.4.2 (1.5 will not run the applet without errors). I then installed jre 1.4.2 and attempted to configure IE to use it instead of 1.5 but it will not. Clicking the icon in the system tray always displays jre 1.5 spash screen once an applet is loaded.
    I then uninstalled jre 1.5, and IE hangs when an applet tries to load. I uninstalled and reinstalled jre 1.4 and IE still hangs. I reinstalled jre 1.5 and other applets work - except the one I need (back to the original errors). IE, however, does not stop responding as when 1.5 is not installed.
    Solutions?
    Thank you.

    Thanks for the URL.
    I have been through all this configuration documentation and I'm not sure it relates to my problem. I think my subject title is misleading
    My problem is that any version other than jre 1.5 causes my browser to stop responding (I have only tried 1.4.x). The problem even extends to Java Web Start. Its splash screen comes up and then goes away and nothing more.
    When I go to the windows task manager/processes I find a "javaw" for each time I tried starting something.
    I tried turning on the logs for JWS but nothing gets logged.
    Is there a log file for the plugin that may indicate some error that might be taking place?
    Thanks

  • Difference between plug in and normal bapis

    hai freinds when i am going through bapi's for project system module i am finding objects as projectdefination and projectdefinationPI, when i read the documentation it is giving as plug in waht is the exact difference between these two objects and bapis under them
    thanx
    afzal

    BAdIs Concept
    Use
    BAdIs or Business Add-Ins are used to create predefined enhancement options in the SAP ERP components, which are then appropriately implemented by the individual industry solutions, country variants, or even by partners and customers.
    Classic BAdIs have been present in ABAP-based SAP systems since Release 4.6. In contrast to the enhancement technology used up to then (for example, function module exits,) BAdIs are based on ABAP objects.
    The reimplementation of BAdIs for Release 7.0 had two main goals:
    · By integrating the BAdIs in the ABAP programming language through the new language elements GET BADIand CALL BADI, their performance was considerably enhanced.
    · The new BAdIs provide more flexibility in the conversion of predefined enhancement options through new, orthogonal properties such as contexts and filters.
    The new ABAP language elements and their additions ensure that these additional options can be used comfortably in ABAP programs. Within the Enhancement Framework, a new BAdI is always meant by the term BAdI. If there is explicit reference to the previous BAdI concept, such BAdIs are referred to as classic BAdIs.
    Definition of BAdIs
    Use
    When you define a BAdI, you must specify a name, a BAdI interface as the interface for the enhancement option, and the required filters. The name of a BAdI is in the same namespace as data types from the ABAP Dictionary, global classes, or interfaces. It is recommended that you use suitable prefixes, such as “BADI_”.
    A filter consists of a filter name and a data type (integer, string, and so on).
    In addition, you also define BAdI properties that are relevant at runtime of a program with the appropriate statements GET BADI and CALL BADI. For more information, see Instance Generation Mode and Multiple Use.
    Other properties that can be assigned to a BAdI include:
    ● An optional fallback BAdI implementation class. This option is used if no BAdI implementation with suitable filter conditions and no standard implementation is found.
    ● Whether the BAdI is internal or not.
    An internal BAdI must only be implemented by SAP and is not visible outside of SAP.
    ● Whether the BAdI is a function code or screen enhancement.
    A BAdI that is defined as a function code enhancement must not have any filters, must not be defined for multiple use, or assigned to any switch. It may contain methods that are independent of the actual function code enhancement.
    A BAdI that is defined as a screen enhancement must be defined in the instance generation mode for the reused instantiation and must not be defined for multiple use. It may contain BAdI methods that can be used to fill or evaluate the screen fields of the respective subscreens.
    Calling BAdIs
    Use
    After their definition and independent of an implementation, BAdIs can be called using a combination of the ABAP statements GET BADI and CALL BADI:
    · GET BADI FILTERS f1=x1 ... fn=xn – selects the BAdI implementations whose filter condition is met by the filter values specified in the statement. The BAdI implementation classes assigned to the selected implementations are instantiated and passed to a simultaneously created BAdI object which serves as a handle for the implementation.
    · CALL BADI badi->meth – addresses the BAdI object which passes the call of BAdI methods to the object plug-ins known to the BAdI handle.
    For detailed information about these statements, see the ABAP Keyword Documentation.
    In the context of the Enhancement Framework, the above statements together form the enhancement spot element calls of an explicit enhancement option. Conceptually, they are part of the definition of an enhancement option.
    Procedure
    For a multiple-use BAdI, several implementations can be called one after the other using CALL BADI. The sequence in which several object plug-ins are called consecutively is the same in repeated calls, but it can be determined in advance in the BADI_SORTER enhancement spot using the predefined BAdI BADI_SORTER:
    1. Create the new implementation BADI_SORTER.
    2. Enter the name of the BAdI whose object plug-ins you want to call in a sorted sequence as the filter condition for the BADI_NAME filter.
    3. Create a screen enhancement to query any kind of sort criterion.
    The Enhancement Builder then displays this subscreen with each implementation of the BAdI to be sorted.
    4. Implement the methods of the BAdI interface IF_BADI_SORTER according to your sort criteria in the BAdI implementation class.
    Without this procedure, the sequence is undefined.
    Reward me if its useful.
    Regards
    Abhay.
    Rewards point.

  • When I went to bed I had 3,000  song and multiple playlists.  This morning I have ~30 songs and no playlists.  What could have happened to my songs playlists?  I run iTunes on a Windows 7 64-bit machine.  HELP! (oh, and the Songs are not in recycle bin)

    When I went to bed I had 3,000  song and multiple playlists.  This morning I have ~30 songs and no playlists.  What could have happened to my songs playlists?  I run iTunes on a Windows 7 64-bit machine.  HELP! (oh, and the Songs are not in recycle bin)
    My wife's ipod nano was plugged into the machine overnight.
    When she went running with it, there were no songs on it.  She checked the computer and was horrified to see that the playlists had disappeared and most of the songs had disappeared.
    QUESTIONS:
    1. What could it be?
    2. How can I fix it?

    Hi, there alot of us suffering from this phernomonon but there is a forum topic about is already.
    https://discussions.apple.com/message/16767377#16767377
    Come check it out.
    Hope this works out for all of us.

  • Cannot load Java plug-in and access R12 Oracle form from client

    Hi, one of my user cannot open Oracle form when accessing R12 environment using IE6. After selecting responsibility and menu, it got stuck after 50% processing when trying to load Java applet. It never got completed even after waiting for 2-3 hours.
    Is there any browser setting that needs to be modified? I checked popup blocker and activeX setting. All seem to be in order. Kindly assist. Thanks.

    Hi,
    What is the difference between this client and other clients?
    Delete the browser cache/history files and check then. If this does not help, enable trace for JRE (as per Note: 549423.1 - How to enable tracing and logging for Sun JRE (Native Plug-in)) and see if it shows any errors when you encounter this issue.
    Regards,
    Hussein

  • I am having issues related to storage and I believe this is causing my computer to slow down. "Other" files part is the major occupier(180 GB). I have done Omni disk and multiple other cleaning(iTunes-device, restart, etc), yet have not been able to empty

    I am having issues related to storage and I believe this is causing my computer to slow down. "Other" files part is the major occupier(180 GB). I have done Omni disk and multiple other cleaning(iTunes-device, restart, etc), yet have not been able to empty any more space, nor to speed up my computer? Any suggestions? All your contributions are welcomed. Thanks. Mehmet Mazhar Celikoyar

    Below is the result:
    Hardware Information:
              MacBook Pro (15-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,3
              1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
              NVIDIA GeForce 9600M GT - VRAM: 512 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    Startup Items:
              HP IO - Path: /Library/StartupItems/HP IO
    System Software:
              OS X 10.9 (13A603) - Uptime: 3 days 22:8:6
    Disk Information:
              ST9500420ASG disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 499.25 GB (220.49 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
              com.rim.driver.BlackBerryUSBDriverInt          (0.0.64)
              com.livedrive.filesystems.livedrivefs          (2.1.14)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.adobe.versioncueCS4.plist
              [loaded] com.creativebe.MainMenuHelper.plist
              [loaded] com.macpaw.CleanMyMac2.Agent.plist
              [loaded] com.magican.castle.plist
              [loaded] com.microsoft.office.licensing.helper.plist
              [loaded] com.rim.BBDaemon.plist
              [failed] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist
    Launch Agents:
              [loaded] com.adobe.CS4ServiceManager.plist
              [loaded] com.hp.messagecenter.launcher.plist
              [loaded] com.hp.productresearch.plist
              [loaded] com.rim.BBLaunchAgent.plist
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist
              [failed] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist
              [failed] com.macpaw.CleanMyMac2Helper.scheduledScan.plist
              [failed] com.macpaw.CleanMyMac2Helper.trashWatcher.plist
              [failed] com.UninstallerTool.plist
              [failed] com.VolumeWatcherTool.plist
              [failed] com.zeobit.MacKeeper.Helper.plist
    User Login Items:
              BlackBerry Device Manager
              HP Scheduler
    3rd Party Preference Panes:
              Adobe Version Cue CS4
              DC30 Xact Driver Panel
              Flash Player
              Flip4Mac WMV
              Perian
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              Default Browser.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Flip4Mac WMV Plugin.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              OfficeLiveBrowserPlugin.plugin
              QuickTime Plugin.plugin
              SharePointBrowserPlugin.plugin
              Silverlight.plugin
    User Internet Plug-ins:
              OctoshapeWeb.plugin
    Bad Fonts:
              None
    Time Machine:
              Mobile backups: OFF
              Auto backup: NO
              Volumes being backed up:
                        Macintosh HD: Disk size: 499.25 GB Disk used: 278.75 GB
              Destinations:
                        TOSHIBA EXT [Local] (Last used)
                        Total size: 2 TB
                        Total number of backups: 5
                        Oldest backup: 2013-10-24 23:21:31 +0000
                        Last backup: 2013-10-25 02:59:08 +0000
                        Size of backup disk: Excellent
                                  Backup size 2 TB > (Disk size 499.25 GB X 3)
    Top Processes by CPU:
                   3%          WindowServer
                   1%          EtreCheck
                   1%          Microsoft PowerPoint
                   0%          BBLaunchAgent
                   0%          fontd
                   0%          aosnotifyd
    Top Processes by Memory:
              168 MB             Microsoft PowerPoint
              123 MB             Safari
              86 MB              Mail
              74 MB              WindowServer
              45 MB              com.apple.WebKit.Networking
              45 MB              com.apple.WebKit.WebContent
              41 MB              Finder
              41 MB              PluginProcess
              41 MB              mds_stores
              33 MB              Notes
    Virtual Memory Statistics:
              72 MB              Free RAM
              1.27 GB            Active RAM
              1.24 GB            Inactive RAM
              667 MB             Wired RAM
              2.58 GB            Page-ins
              111 MB             Page-outs

  • Question about the Apache plug-in and WL server

    We have a bunch of Weblogic app-servers, and I want to set up Apache servers to
    front-end them. Here is what I'd like to do:
    (1) Load balancer forwards requests to one of Apache servers
    (2) Apache serves the static content (html,gif,css etc.)
    (3) Apache servers forward the request to one of the alive Weblogic servers, with
    requests for the same Weblogic session should preferably stay with the same Weblogic
    server.
    The catch is that we are not using Weblogic clustering - we have our own application-specific
    light-weight clustering (virtually no replication of dynamic state). All I want
    is that the Apache plug-ins keep forwarding the packets to the same Weblogic server
    for a session (unless the server dies), and that thsi property hold even if multiple
    client requests (for the same session) are rotated across multiple Apache servers.
    The first is really important, the second just nice-to-have (I can setup load-balancer
    with sticky sessions if needed).
    The Apache plug-in documentation seems to suggest that we must use Weblogic clustering
    for us to be able to specify multiple Weblogic servers in the plug-in config file,
    but is that really required?
    Second, does the session cookie uniquely identify the Weblogic server or does
    the Apache plug-in keep the mapping between the cookie and the server? Also, does
    this answer depend on whether we use Weblogic clustering or not?
    The answer depends on the protocol between the Apache plug-in and the Weblogic
    server. Is it documented? Available under NDA?
    Your help will be really appreciated!!
    thanks
    -amit

    is that the Apache plug-ins keep forwarding the packets to the same Weblogic
    server
    for a session (unless the server dies), If the session id is found in the cookie, request or postdata (in that order),
    the plugin will preserve the sticky session.
    and that thsi property hold even
    if multiple
    client requests (for the same session) are rotated across multiple Apache
    servers.The rules apply to all apache instances as the single instance.
    BTW, the preferred server from the session has to be in the serverList(you defined
    in the httpd.conf). You are not using clusters in the backend hence the server
    list will not be updated
    dynamically. The plugin will not know the changes in the backend without modifying
    the httpd.conf and restarted.
    The first is really important, the second just nice-to-have (I can setup
    load-balancer
    with sticky sessions if needed).
    The Apache plug-in documentation seems to suggest that we must use Weblogic
    clustering
    for us to be able to specify multiple Weblogic servers in the plug-in
    config file,
    but is that really required?
    It's a recommended configuration, but not mandatory.
    Second, does the session cookie uniquely identify the Weblogic server
    or does
    the Apache plug-in keep the mapping between the cookie and the server?The server info is in the cookie for the same client although
    the plugin also maintains a list of servers.
    Also, does
    this answer depend on whether we use Weblogic clustering or not?
    No.
    The answer depends on the protocol between the Apache plug-in and the
    Weblogic
    server. Is it documented? Available under NDA?
    Your help will be really appreciated!!
    We only support http and https(60sp1 or later).

  • Multiple JREs installed - how to select correct one?

    Hi all
    I have multiple JREs installed on my computer, which I need to keep.
    I'm doing some development, and when I try to run the class, I get the following error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorldApp
    (Unsupported major.minor version 50.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)java -version shows:
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)The reason I'm getting this error is because Eclipse is using the following JRE:
    C:\Program Files\Java\jre6\bin>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)My Path environment variable is:
    C:\Program Files\Java\jre6;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Gemalto\GACMy CLASSPATH environment variable is:
    C:\Program Files\Java\jre6;C:\Program Files\gemalto\gac\GATicket.jar;How do I force my Windows XP system to use the latest JRE installed?
    Thanks

    Thanks again.
    However, it appears the PATH variable may be a red herring.
    If I set the class path to exclude the jre6 directory, as follows:
    C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Gemalto\GACThen the following error occurs:
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>java -
    version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>dir
    Volume in drive C has no label.
    Volume Serial Number is 2806-C30D
    Directory of C:\Documents and Settings\Me\workspace\RegexTestProject\bin\re
    gextest
    03/09/2010  13:55    <DIR>          .
    03/09/2010  13:55    <DIR>          ..
    03/09/2010  13:56             1,707 RegexTestHarness.class
                   1 File(s)          1,707 bytes
                   2 Dir(s)  11,257,622,528 bytes free
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>java R
    egexTestHarness
    Exception in thread "main" java.lang.UnsupportedClassVersionError: RegexTestHarn
    ess (Unsupported major.minor version 50.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)This is expected as the class was compiled using a later version of the JDK.
    However, if I update the PATH, and add the JRE6 entry to the path as follows:
    C:\Program Files\Java\jre6\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Gemalto\GACI then get a class not found exception!!??
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>java -
    version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>dir
    Volume in drive C has no label.
    Volume Serial Number is 2806-C30D
    Directory of C:\Documents and Settings\Me\workspace\RegexTestProject\bin\re
    gextest
    03/09/2010  13:55    <DIR>          .
    03/09/2010  13:55    <DIR>          ..
    03/09/2010  13:56             1,707 RegexTestHarness.class
                   1 File(s)          1,707 bytes
                   2 Dir(s)  11,257,618,432 bytes free
    C:\Documents and Settings\Me\workspace\RegexTestProject\bin\regextest>java R
    egexTestHarness
    Exception in thread "main" java.lang.NoClassDefFoundError: RegexTestHarness (wro
    ng name: regextest/RegexTestHarness)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: RegexTestHarness.  Program will exit.Below is the code of the class:
    package regextest;
    import java.io.Console;
    import java.util.regex.Pattern;
    import java.util.regex.Matcher;
    public class RegexTestHarness {
        public static void main(String[] args){
            Console console = System.console();
            if (console == null) {
                System.err.println("No console.");
                System.exit(1);
            while (true) {
                Pattern pattern =
                Pattern.compile(console.readLine("%nEnter your regex: "));
                Matcher matcher =
                pattern.matcher(console.readLine("Enter input string to search: "));
                boolean found = false;
                while (matcher.find()) {
                    console.format("I found the text \"%s\" starting at " +
                       "index %d and ending at index %d.%n",
                        matcher.group(), matcher.start(), matcher.end());
                    found = true;
                if(!found){
                    console.format("No match found.%n");
    }Based on the above, I think the path is set correctly, but I'm doing something else wrong.
    Thanks for you help so far. :-)

  • Difference between Java Deployment Toolkit Plug-in and deployJava.js

    I was reading this article:
    http://www.java.com/en/download/faq/deployment_toolkit.xml
    and I get confused about the purpose and use of the DT Plug-in and the deployJava.js.
    I always believe that the Deployment Toolkit is the set of functions of the deployJava.js file (like this link says: http://blogs.oracle.com/thejavatutorials/entry/deployment_toolkit_101) but according to the article there are two parts of the Deployment Toolkit: the Plug-in and the interface for the developer.
    I'm asking about all of this because the deployJava.js fails to detect the appropriate version of Java in some of the machines of our users and I was wondering if the DT Plug-in could help us improve the detection, but I don't know how exactly it detects the Java version and when it does it or how can I use it to solve detection problems?
    Most of this doubts are driven by the question in the article:
    "Does deployJava.js work if the Java DT Toolkit plug-in is disabled? Yes, deployJava.js contains some pure JavaScript functions, which will continue to work even if the Java DT Toolkit plug-in is disabled."
    So... why do I need the deployJava.js if the DT Plug-in exists or vice versa?
    Any help on this matter would be very appreciated.
    Thank you very much.

    Deployment toolkit is combination of native library and javascript helpers. javascript is the only official public API to native library.
    JRE is installed with DT native library that is left on the system if JRE is uninstalled.
    As of now DT native library is only available on Windows.
    Javascript helper functions use native library if it is available but many actions can be performed (with degraded accuracy, etc.) even if native library is not present.
    Note that there is new Javascript APIs for DT as alternative to deployJava.js. it is called [dtjava.js|http://download.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm#BABJHEJA] and is primary API for JavaFX applications.
    However, it also supports pure Java apps and likely will be main JS API for DT going forward (some more testing and bug fixing may be needed).
    Hope this helps to clarify the relationship.

  • XI Client Installation with Multiple JREs

    I'm wondering if it is possible to have multiple JREs greater than 1.4 installed and still use the XI client for IB/IR.  I have configured JWS to only use the 1.4.2 version I have installed, but it still tries to startup on Java 6.
    Thanks in advance.
    Peter
    Sorry for the simple question, but I haven't been successful in getting this to work.

    One "simple" way of doing this is to manually start Java Web Start 1.4 and run IR and ID directly from there.
    Just run \Java\j2re1.4.2_xx\javaws\javaws.exe and once it opens, type the addresses of IR and ID in the "Location" field (http://<host>:<port>/rep/start/repository.jnlp and http://<host>:<port>/dir/start/directory.jnlp). Once the applications are loaded (once you see the icon in the "Applications" frame) you may click on the Start button. Then the applications will be started using JRE 1.4.
    In order to open the links directly from the XI start page, there is another option. Run the Control Panel/Java entry (assuming you have installed JDK 1.5 or superior), go to the Java tab. The upper part configuration (click on View) is regarding the execution of Java apps and applets. You may select the JREs you want to load for these (select 1.5). In the lower part of the screen, there is the configuration for runtime settings, where you select the JRE that runs the JNLP applications. Here, you may select JRE 1.4. But be aware that all .jnlp's that you run will be loaded with JRE 1.4.
    Regards,
    Henrique.

  • Multiple JRE Versions on Same App Server

    Hello All,
    I have a questions in regards to installing multiple JRE's on the same SAP Application Server.
    Background:
    We currently have an SAP HCM ABAP-only application which will be sitting on a Windows Server 2008 box w/SQL Server backend. The current JRE is 1.4.2 as recommended by SAP for sapinst. What we are trying to achieve is to install the standalone JCo client 3.0 (Java connector) which will be required for a Novell IDM integration (as the HCM is ABAP only - we require JCo standalone client to properly interface). JCo 3.0 requires JRE 5 or 6 as per SAP (we want to install 6).
    So.... to my original questions:
    1) Is anyone aware of any negative impact or deterrent from SAP Support in regards to having multiple JRE's: JRE 1.4.2 as well as JRE 6 installed on the application server? We will obviously have the env variables point to JRE 6 for the JCo Client.
    2)  I am also wondering if it is OK to do this, and simply update the variable path back to the 1.4.2 JRE in cases where we need to run sapinst (refreshes, etc)?
    Any insight will be greatly appreciated! Thank you!
    Tyler

    Hi Tyler,
    In my opinion, you could go ahead with first option - have multiple JRE's and maintain the environment variables accordingly.
    This should not be a problem as the envrionment variable would take care of which JRE is used. Also as you have only another ABAP system on the same server, the other older JRE would only be required during the SAPInst operations. Non-existence of a Java system makes things simpler here
    Regards,
    Srikishan

  • Multiple jre versions using same cache location

    Hi,
    i searched the web but couldnt find an answer.
    I have a Terminal Server deployment with various installed jre Versions (1.6x and 1.7x) on the same Server as well as on different Server Silo Setups.
    But for all Servers i configured the Cache Location to H:\Java-Cache (Homefolder of the user) in the deployment.properties file.
    1. are there any Problems to expect when using the same Cache Folder for many different jre Versions (jre 6/7/8) ? Any knows issues about that ?
    2. is it supported to share the same cache Location (for example D:\java-cache) for many users ? i cannot find ony official KB or Oracle Note about this.
    There are a few Blog Article out there which describe to configure the Cache Location on a terminal Server to a local location like D:\java-cache shared by
    many users. Does it depent on the Java webstart application if tha works well ?
    Thanks a lot,
    Marcus

    Hi Tyler,
    In my opinion, you could go ahead with first option - have multiple JRE's and maintain the environment variables accordingly.
    This should not be a problem as the envrionment variable would take care of which JRE is used. Also as you have only another ABAP system on the same server, the other older JRE would only be required during the SAPInst operations. Non-existence of a Java system makes things simpler here
    Regards,
    Srikishan

  • IcedTea High CPU usage and multiple jobs created

    High CPU usage and multiple jobs created while streaming data via a java applet from a secure/certified website.  CPU usage is normal for a few minutes then suddenly jobs multiply and CPU usage climbs on one of the jobs. 
    Jobs with the following command begin to multiply in my job queue with one job showing CPU usage at 368% and staying resident in memory (yeah, a long one):
    /usr/lib/jvm/java-7-openjdk/jre/bin/java -Xbootclasspath/a:/usr/share/icedtea-web/netx.jar:/usr/share/icedtea-web/plugin.jar:/usr/share/java/js.jar: -classpath /usr/lib/jvm/java-7-openjdk/jre/lib/rt.jar sun.applet.PluginMain /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-plugin-to-appletviewer /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-appletviewer-to-plugin /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-plugin-debug-to-appletviewer
    I have the following java packages installed on my system:
    local/icedtea-web-java7 1.5-1
    local/jdk7-openjdk 7.u51_2.4.6-1
    local/jre7-openjdk 7.u51_2.4.6-1
    local/jre7-openjdk-headless 7.u51_2.4.6-1
    I also get the following message in my system log when starting to stream:
    Apr 11 12:26:18 saturn logger[7872]: IcedTea-Web java error manual log:
    Apr 11 12:26:18 saturn logger[7873]: Application title was not found in manifest. Check with application vendor
    Apr 11 12:26:37 saturn logger[7883]: IcedTea-Web java error - for more info see itweb-settings debug options or console. See http://icedtea.classpath.org/wiki/IcedTea-Web#Filing_bugs for help.
    Anybody having this issue or clue on what to do?  I am wondering if recent changes to openssl (heartbleed) might have java change ramifications?  Should I submit bug to Icedtea?
    FYI - My system:
    Processor : 4x AMD A8-3870 APU with Radeon(tm) HD Graphics
    Memory : 7646MB (2518MB used)
    Operating System : Arch Linux 3.14.0-4
    OpenGL Renderer : Gallium 0.4 on AMD SUMO
    X11 Vendor : The X.Org Foundation

    ...further research and learning. 
    Here is a good tutorial on Java.  Evidently, what I called "jobs" is referred to as processes and threads in this tutorial.  The tutorial states that multithreaded execution is an essential feature of the Java platform which explains the avalanche of threads I observe.  However, I am still stumped at what causes the avalanche of threads and excessive CPU consumption for such a mediocre task.  Also the system log says that IcedTea has an error stating "Application title was not found in manifest. Check with application vendor".   I interpret this to mean that IcedTea does not recognized some application.  What application?  .....the applet?

  • Yoga 13 Turns Off When Plugged In And Won't Charge

    I've had my Lenovo Yoga 13 for about a year. When I plug in the laptop to charge it, it turns off and will not charge while it is off. The only way for me to turn it back on is to unplug the charger.
    So I guess this is two issues in one: my computer turns off when it's plugged in and it will not charge. Do you guys think it could be caused by a bad charger or do you think it has to do with the computer? Has anyone had this happen to them?
    Thanks!

    What happens is as soon as I plug in the charger the computer turns off. The battery does not charge while the charger is plugged in and I cannot turn my computer back on until I unplug the charger.
    When I first noticed this behavior the battery was about 80% charged and I was able to turn the computer on and use it for multiple hours, so I don't think the battery stopped working. It wasn't until I plugged my computer in again when it was charged under 10% that I realized what had happened wasn't a one time thing; my computer turned off again. I waited about an hour before I unplugged the charger and turned my computer on again. The battery hadn't been charged at all that whole time.

Maybe you are looking for

  • After download of latest itunes I can no longer preview songs in the itunes store.

    Now that I have the latest version of iTunes (10.2.2.12) I cannot preview a song.  At the home screen nothing is showing up except the right hand menu.   Running on a laptop with Vista 64bit Service pack 2 

  • Java I18N Questions

    Hello, I've come across a problem trying to internationalize my program (web application, spring). I've successfully be able use UTF-8 encoding to add french characters, however I'm running into an issue with Japanese (multi-byte) characters. I've be

  • Local image load and edit

    Hello, I already spend 2 days on this problem. I want to load local image into AIR application, edit and save as a new image. I know there are some security issues, which don't allow Loader class to access data on different domains than SWF file, but

  • ODBC & Oracle 9.0.1 "SYS" account

    Hello; My ODBC application is not able to connect to an Oracle 9.0.1 server as "SYS" user. It works fine with older versions of Oracle! 1) By default, it is not possible to connect to an Oracle 9.0.1 server as a normal user with "SYS" user account. I

  • Audio Books do not play

    I have seen similar complaints.  My audio books won't play audio in Itunes.  They used to but not now.