Using DRS to specify Java version when executing JNLP file.

We have an application that executes from a JNLP file that we are told is version sensitive.  We have a rule set created for a number of apps that work just fine to meet this goal.  However, when creating a rule to execute this JNLP application we are having issues getting it to work.  To simplify the process we created a certificate hash rule for this application and when reviewing console\trace we can see it correctly identifying and executing under the Java 6U29 environment.  The issue is that even though 6u29 is being invoked it does not work (merely displays a "application error" message).  However, if I instead launch the JNLP file using the Javaws.exe in the 1.6.0_29 folder the app loads fine.  When comparing behavior with the rule set environment and a 6u29 only environment I saw some peculiar entries. 
basic:   jvmParams: [JVMParameters: isSecure: false, args: "-Xmx256m" "-Xms32m" "-DEAS_HOME=http://appserver:10080/easconsole/" "-DEPM_ORACLE_INSTANCE=http://appserver:10080/easconsole/" "-DUSE_FOXTROT_BY_DEFAULT=NO" "-DDEFAULT_COMMAND_MANAGER=com.essbase.eas.framework.client.defs.command.UICommandManager" "-Deas_country=US" "-Deas_language=EN" "-DEAS_CONSOLE_LOG=LOG_NULL" "-Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration" "-DmaxFileSize=1000000" "-DmaxLogSize=5000000" "-Dformat=ODL-Text" "-DEAS_LOG_FORMAT=ODL-Text" "-Dsun.awt.keepWorkingSetOnMinimize=true" "-Dswing.defaultlaf=oracle.bali.ewt.olaf2.OracleLookAndFeel" "-Dswing.metalTheme=OracleBlueTheme"]
basic: cmd 0 : C:\Program Files\Java\jre1.6.0_29\bin\javaw.exe
basic: cmd 1 : -Dsun.awt.keepWorkingSetOnMinimize=true
basic: cmd 2 : -Dswing.metalTheme=OracleBlueTheme
basic: cmd 3 : -Xmx256m
basic: cmd 4 : -Xms32m
Xbootclasspath/a:C:\Program Files\Java\jre1.8.0_25\lib\javaws.jar;C:\Program Files\Java\jre1.8.0_25\lib\deploy.jar;C:\Program Files\Java\jre1.8.0_25\lib\plugin.jar
basic: cmd 6 : -classpath
basic: cmd 7 : C:\Program Files\Java\jre1.8.0_25\lib\deploy.jar
basic: cmd 8 : -Djnlpx.vmargs=LURzdW4uYXd0LmtlZXBXb3JraW5nU2V0T25NaW5pbWl6ZT10cnVlAC1Ec3dpbmcubWV0YWxUaGVtZT1PcmFjbGVCbHVlVGhlbWUALVhteDI1Nm0ALVhtczMybQA=
basic: cmd 9 : -Djnlpx.jvm=C:\Program Files\Java\jre1.6.0_29\bin\javaw.exe
basic: cmd 10 : -Djnlpx.splashport=50425
basic: cmd 11 : -Djnlpx.home=C:\Program Files\Java\jre1.8.0_25\bin
basic: cmd 12 : -Djnlpx.remove=false
basic: cmd 13 : -Djnlpx.offline=false
basic: cmd 14 : -Djnlpx.relaunch=true
basic: cmd 15 : -Djnlpx.session.data=C:\Users\Username\AppData\Local\Temp\session7225377494424974596
basic: cmd 16 : -Djnlpx.heapsize=33554432,268435456
basic: cmd 17 : -Djava.security.policy=file:C:\Program Files\Java\jre1.8.0_25\lib\security\javaws.policy
basic: cmd 18 : -DtrustProxy=true
basic: cmd 19 : -Xverify:remote
basic: cmd 20 : -Dsun.awt.warmup=true
basic: cmd 21 : -Djava.security.manager
basic: cmd 22 : com.sun.javaws.Main
basic: cmd 23 : C:\Users\Username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\2\56c68c82-305f8577
network: Created version ID: 1.7
basic: Exiting
So it appears that the 6u29 version of Javaws.exe is getting called however some of the configured paths are being set to the 8u25 path.  Not sure if its a cause but does seem to be relevant since on the exact same system if I run the JNLP specifically with the 6u29 exe it works as expected.  Any assistance would be appreciated. 

sunjavaboy wrote:
..how do I specify a specific range of JREs in the jnlp file so that JWS picks up a JRE from that range only? So if 1.5.0_07, 1.5.0_17 and JRE 6 are installed, it should run the app on 1.5.0_17.From the JNLP Specification
*4.6 Java Runtime Environment*
Several JREs can be specified, which indicates a prioritized list of the supported JREs, with the most preferred version first. For example,
    <java version="1.3" initial-heap-size="64m"/>
    <java version="1.2">
      <resources> ... </resources>
    </java>So your app. would need more along the lines of..
    <java version="1.5.0_07 1.5.0_08 1.5.0_09 1.5.0_10 1.5.0_11 1.5.0_12 1.5.0_07 1.5.0_13 1.5.0_14 1.5.0_15 1.5.0_16 1.5.0_17 " />
    <java version="1.6+" />Actually you'd need the list of 1.5 versions reversed. Well, you get the idea hopefully. For more on versioning, see my [JWS versioning page|http://pscode.org/jws/version.html].

Similar Messages

  • In Java 2 - when executing java get "realpath.. ,libjava.so not found" erro

    Hi !
    I have installed Java 2( j2se 1.4.1_02) and when i execute java it gives
    Error: realpath ("//java") not found
    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment
    I have been trying for the past 3 days to get this setup working, but no success. Have made the LD_LIBRARY_PATH and PATH to have the required values. Is there anything else that need to be done.
    Can anyone help please?
    Thanks
    Raji

    Which platform is it? Java version "1.4.1_02" works fine for me on my Linux. Maybe these pieces of information are of some help.
    $ uname -a
    Linux bijpc 2.4.19-4GB #1 Wed Sep 25 18:58:10 UTC 2002 i686 unknown
    $ java -version
    java version "1.4.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
    $ type java
    java is hashed (/usr/lib/jdk1.4.1_02/bin/java)
    $ file /usr/lib/jdk1.4.1_02/bin/java
    /usr/lib/jdk1.4.1_02/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
    $ ldd /usr/lib/jdk1.4.1_02/bin/java
    libpthread.so.0 => /lib/libpthread.so.0 (0x40025000)
    libdl.so.2 => /lib/libdl.so.2 (0x4003a000)
    libc.so.6 => /lib/libc.so.6 (0x4003d000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    $ find /usr/lib/jdk1.4.1_02 -name 'libjava*so'
    /usr/lib/jdk1.4.1_02/jre/lib/i386/libjava.so
    /usr/lib/jdk1.4.1_02/jre/lib/i386/libjavaplugin_jni.so
    /usr/lib/jdk1.4.1_02/jre/plugin/i386/ns600/libjavaplugin_oji.so
    /usr/lib/jdk1.4.1_02/jre/plugin/i386/ns610/libjavaplugin_oji.so

  • Java error when execute SAP MII Workbench

    Hi Experts,
    I getting the following error when I execute the SAP MII Workbench. I have the Java 1.6.0.23 on a Windows 7 64 bits. I tried the Java 64 bits version and had the same error.
    Any idea?
    Regards,
    Vinicius
    A fatal error has been detected by the Java Runtime Environment:
    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x75671d76, pid=6912, tid=1300
    JRE version: 6.0_23-b05
    Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing windows-x86 )
    Problematic frame:
    C  [WININET.dll+0x71d76]
    If you would like to submit a bug report, please visit:
      http://java.sun.com/webapps/bugreport/crash.jsp
    The crash happened outside the Java Virtual Machine in native code.
    See problematic frame for where to report the bug.
      T H R E A D  -
    Current thread (0x0675bc00):  JavaThread "Java Web Start Main Thread" [_thread_in_native, id=1300, stack(0x06bc0000,0x06c10000)]
    siginfo: ExceptionCode=0xc0000005, writing address 0x0000064c
    Registers:
    EAX=0x00000000, EBX=0x06c0f2f0, ECX=0x00000000, EDX=0x0002020e
    ESP=0x06c0f068, EBP=0x06c0f068, ESI=0x00000000, EDI=0x06c0f088
    EIP=0x75671d76, EFLAGS=0x00010246
    Register to memory mapping:
    EAX=0x00000000
    0x00000000 is pointing to unknown location
    EBX=0x06c0f2f0
    0x06c0f2f0 is pointing into the stack for thread: 0x0675bc00
    "Java Web Start Main Thread" prio=6 tid=0x0675bc00 nid=0x514 runnable [0x06c0f000]
       java.lang.Thread.State: RUNNABLE
    ECX=0x00000000
    0x00000000 is pointing to unknown location
    EDX=0x0002020e
    0x0002020e is pointing to unknown location
    ESP=0x06c0f068
    0x06c0f068 is pointing into the stack for thread: 0x0675bc00
    "Java Web Start Main Thread" prio=6 tid=0x0675bc00 nid=0x514 runnable [0x06c0f000]
       java.lang.Thread.State: RUNNABLE
    EBP=0x06c0f068
    0x06c0f068 is pointing into the stack for thread: 0x0675bc00
    "Java Web Start Main Thread" prio=6 tid=0x0675bc00 nid=0x514 runnable [0x06c0f000]
       java.lang.Thread.State: RUNNABLE
    ESI=0x00000000
    0x00000000 is pointing to unknown location
    EDI=0x06c0f088
    0x06c0f088 is pointing into the stack for thread: 0x0675bc00
    "Java Web Start Main Thread" prio=6 tid=0x0675bc00 nid=0x514 runnable [0x06c0f000]
       java.lang.Thread.State: RUNNABLE
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:
    Program Files (x86)
    Java
    jre6
    lib
    javaws.jar;C:
    Program Files (x86)
    Java
    jre6
    lib
    deploy.jar;C:
    Program Files (x86)
    Java
    jre6
    lib
    plugin.jar -Djava.security.policy=file:C:
    Program Files (x86)
    Java
    jre6
    lib
    security
    javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.home=C:
    Program Files (x86)
    Java
    jre6
    bin -Dsun.awt.warmup=true -Djnlpx.origFilenameArg=C:
    Users
    Vinicius
    AppData
    Local
    Microsoft
    Windows
    Temporary Internet Files
    Content.IE5
    7SYHPOU8
    Workbench[1].jnlp -Djnlpx.remove=true -Xms64m -Xmx128m -Djnlpx.heapsize=64m,128m -Djnlpx.splashport=64156 -Djnlpx.jvm=C:
    Program Files (x86)
    Java
    jre6
    bin
    javaw.exe
    java_command: com.sun.javaws.Main C:\Users\Vinicius\AppData\Local\Temp\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    PATH=C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Internet Explorer;;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Google\Google Apps Sync\;C:\Program Files\PuTTY;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;"C:\Program Files (x86)\Java\jre6\bin"
    USERNAME=Vinicius
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
      S Y S T E M  -
    OS: Windows 7 Build 7600
    CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
    Memory: 4k page, physical 4044900k(1962628k free), swap 8087900k(5218924k free)
    vm_info: Java HotSpot(TM) Client VM (19.0-b09) for windows-x86 JRE (1.6.0_23-b05), built on Nov 12 2010 15:00:43 by "java_re" with MS VC++ 7.1 (VS2003)
    time: Tue Dec 21 16:45:03 2010
    elapsed time: 2 seconds

    There is the error when I installed Java 64 bits:
    A fatal error has been detected by the Java Runtime Environment:
    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000771ab18d, pid=5956, tid=6888
    JRE version: 6.0_23-b05
    Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode windows-amd64 compressed oops)
    Problematic frame:
    C  [WININET.dll+0x9b18d]
    If you would like to submit a bug report, please visit:
      http://java.sun.com/webapps/bugreport/crash.jsp
    The crash happened outside the Java Virtual Machine in native code.
    See problematic frame for where to report the bug.
      T H R E A D  -
    Current thread (0x000000000605f000):  JavaThread "Java Web Start Main Thread" [_thread_in_native, id=6888, stack(0x00000000075f0000,0x00000000076f0000)]
    siginfo: ExceptionCode=0xc0000005, writing address 0x000000000000088c
    Registers:
    RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x00000000076ee290, RDX=0x0000000000000000
    RSP=0x00000000076ee2f0, RBP=0x00000000076ee3f0, RSI=0x0000000000000000, RDI=0x0000000000000000
    R8=0x0000000000000001, R9=0x0000000076ff0000, R10=0x000000000000ffff, R11=0x0000000000000000
    R12=0x0000000000000000, R13=0x0000000000000000, R14=0x0000000000502690, R15=0x00000000076ee5b8
    RIP=0x00000000771ab18d, EFLAGS=0x0000000000010246
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:
    Program Files
    Java
    jre6
    lib
    javaws.jar;C:
    Program Files
    Java
    jre6
    lib
    deploy.jar;C:
    Program Files
    Java
    jre6
    lib
    plugin.jar -Djava.security.policy=file:C:
    Program Files
    Java
    jre6
    lib
    security
    javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.home=C:
    Program Files
    Java
    jre6
    bin -Dsun.awt.warmup=true -Djnlpx.origFilenameArg=C:
    Users
    Vinicius
    AppData
    Local
    Microsoft
    Windows
    Temporary Internet Files
    Content.IE5
    OH1DE0ZW
    Workbench[1].jnlp -Djnlpx.remove=true -Xms64m -Xmx128m -Djnlpx.heapsize=64m,128m -Djnlpx.splashport=64455 -Djnlpx.jvm=C:
    Program Files
    Java
    jre6
    bin
    javaw.exe
    java_command: com.sun.javaws.Main C:\Users\Vinicius\AppData\Local\Temp\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    PATH=C:\Windows\system32;C:\Program Files (x86)\Internet Explorer;;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Google\Google Apps Sync\;C:\Program Files\PuTTY;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;"C:\Program Files\Java\jre6\bin"
    USERNAME=Vinicius
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
      S Y S T E M  -
    OS: Windows 7 Build 7600
    CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
    Memory: 4k page, physical 4044900k(1897908k free), swap 8087900k(5161388k free)
    vm_info: Java HotSpot(TM) 64-Bit Server VM (19.0-b09) for windows-amd64 JRE (1.6.0_23-b05), built on Nov 13 2010 02:43:42 by "java_re" with MS VC++ 8.0 (VS2005)
    time: Tue Dec 21 16:59:47 2010
    elapsed time: 2 seconds

  • Error when executing JAR file

    I am trying to execute a JAR file, via the command line, when I get the following error:
    Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    Any suggestions?

    I am trying to execute a JAR file, via the command
    line, when I get the following error:
    Any suggestions?How are you trying to execute the file?
    some suggestions
    create a manifest.mf file with the following content
    Main-Class:TheNameOfTheClassWithMainMethod
    and hit return
    jar this file with any other .class files folders etc like this
    java -jar manifest.mf nameUwantToGive.jar *.class
    run by double click or by with the following
    java -jar nameUwantToGive.jar
    Hope this helps
    AA

  • How to create java classes when multiple xsd files with same root element

    Hi,
    I got below error
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. 'resultClass' is already defined
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. (related to above error) the first definition appears here
    12/08/09 16:26:38 BST: Build errors for viafrance; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate': Mojo execution failed.
    I tried genarate java classes from multiple xsd files, but getting above error, here in .xsd file i have the <xe: element="resultClass"> in all .xsd files.
    So I removed all .xsd files accept one, now genarated java classes correctly. but i want to genarte the java classes with diffrent names with out changing .xsd
    Can you please tell me any one how to resolve this one......
    regards
    prasad.nadendla

    Gregory:
    If you want to upload several Java classes in one script the solution is .sql file, for example:
    set define ?
    create or replace and compile java source named "my.Sleep" as
    package my;
    import java.lang.Thread;
    public class Sleep {
    public static void main(String []args) throws java.lang.InterruptedException {
    if (args != null && args.length>0) {
    int s = Integer.parseInt(args[0]);
    Thread.sleep(s*1000);
    } else
    Thread.sleep(1000);
    create or replace and compile java source named "my.App" as
    package my;
    public class App {
    public static void main(String []args) throws java.lang.InterruptedException {
    System.out.println(args[0]);
    exit
    Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
    HTH, Marcelo.

  • Specifying the version of dependent jar file?

    Hi all
    At the moment I am fighting with some class loading issues in a J2EE Appcontainer... Acutally the app server uses a different version of a jar file than my application.. Now the classloader always uses
    the already loaded classes of the AppServers jar Version instead of those that I want..
    I have my application together with the dependent jar packaged together into one jar file... In the manifest I lsit the dependency...
    Now my question is if its possible to explicitly state the version of the package that my jar is dependent of...
    Any help would be appreciated
    regards
    tom

    Vijay
    Acutally I just read through the thread. Actually what I am working on is an J2EE App Containing a couple of EJB (2.0) components in different jars, some utility jars and 2 Wars. All this is packaged together into an ear.
    Now Actually the basic structure is like:
    Ear
    --> WAR1
    --> webinf containing classes and manifest with dependent jars
    --> War2
    --> EJB Jar
    --> metinf containing deployment desc and manifest where the manifest references JDom-b10.jar on the classpath
    --> Also conatiner JDom-b10.jar
    Acutally the JDom.jar is already loaded by the Application Server (Jboss 3.2.3) in its bootstrap loader... I need to have the b10 as otherwise some other 3rd Party stuff of the Ejb is not running...
    Now I expected the classloader to prefer the direct deployment unit against all parents and delegating loader... but it doesnt:
    15:17:04,011 INFO [STDOUT]
    org.jdom.Document(1bb8ea).ClassLoader=org.jboss.system.server.NoAnnotationURLClassLoader@e3b895
    ..org.jboss.system.server.NoAnnotationURLClassLoader@e3b895
    ..sun.misc.Launcher$AppClassLoader@e80a59
    ....file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/bin/
    ....file:/C:/Entwicklungstools/abaXX/components36/lib/3rdparty/oracle9iR2.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/lib/tools.jar
    ....file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/bin/run.jar
    ..sun.misc.Launcher$ExtClassLoader@1ff5ea7
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/dnsns.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/ldapsec.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/localedata.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/sunjce_provider.jar
    ++++CodeSource: (file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/lib/jdom.jar <no certificates>)
    Implemented Interfaces:
    ++interface java.io.Serializable(f62373)
    ++++ClassLoader: null
    ++++Null CodeSource
    ++interface java.lang.Cloneable(13e8d89)
    ++++ClassLoader: null
    ++++Null CodeSource
    This above is a small JBoss utility acutally printing out the watched URLs of the CL and the Codesource of a class... .. Now actually the classloader shouldn't use the Jdom.jar mentioned as source but the one listed here:
    15:16:24,308 INFO [EJBDeployer] nested deployment: file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/server/tebs/tmp/deploy/tmp27652tebs-0.1-SNAPSHOT.e
    ar-contents/tebs-migration-0.1-SNAPSHOT.jar-contents/jdom-b10.jar
    Actually I think the problem is pretty close to the thread you mentioned before... AFAIK the classloaders in J2EE Containers have to prefer the direct deployment unit (in this case the jar and its content) to any other parent class loaders files... I also thought that there can be mulitple versions of a class file in one VM an that the appserver has to preserve every app from using a class of another app... So that there is some housing principles....
    As I could not figure out how to solve this I came to the question regarding versioning... As both JDom.jars contain version information this would solve my probem... But as you already mentioned AFAIK there is only support to give some verision informationen about a jar in the manifest but nothing mentions that you can explicitely request a specific version.
    So If anyone has a clou how I get that crapp working I would be very thankful
    Tom

  • How to specify a JRE range in jnlp file?

    We have a java app which uses Java Web Start. The jnlp file is configured with [j2se version="1.5+"]. So if JRE 1.5 and 1.6 are installed, the app is run on 1.6.
    Now, we have requirement where the app should be restricted to run only within the range - JRE 1.5.0_07 through JRE 1.5.0_17
    [j2se version="1.5*"] will not work - it will always launch the app with the latest jre from 1.5 family.
    I can request an exact product version by including the href attribute. [j2se version="1.5.0_14" href="http://java.sun.com/products/autodl/j2se"/]
    But how do I specify a specific range of JREs in the jnlp file so that JWS picks up a JRE from that range only? So if 1.5.0_07, 1.5.0_17 and JRE 6 are installed, it should run the app on 1.5.0_17.
    Can JNLP really allow you to select specific range of JREs? Is there a good way to accomplish this? Please help.

    sunjavaboy wrote:
    ..how do I specify a specific range of JREs in the jnlp file so that JWS picks up a JRE from that range only? So if 1.5.0_07, 1.5.0_17 and JRE 6 are installed, it should run the app on 1.5.0_17.From the JNLP Specification
    *4.6 Java Runtime Environment*
    Several JREs can be specified, which indicates a prioritized list of the supported JREs, with the most preferred version first. For example,
        <java version="1.3" initial-heap-size="64m"/>
        <java version="1.2">
          <resources> ... </resources>
        </java>So your app. would need more along the lines of..
        <java version="1.5.0_07 1.5.0_08 1.5.0_09 1.5.0_10 1.5.0_11 1.5.0_12 1.5.0_07 1.5.0_13 1.5.0_14 1.5.0_15 1.5.0_16 1.5.0_17 " />
        <java version="1.6+" />Actually you'd need the list of 1.5 versions reversed. Well, you get the idea hopefully. For more on versioning, see my [JWS versioning page|http://pscode.org/jws/version.html].

  • Application does not load when the JNLP file URL is given

    Hi,
    I have created a JNLP file to load a swing based application and i'm trying to host it on a tomcat web server.
    But when i type in the URL in the browser window, nothing happens. No errors shown.I'm not able to figure out where i have gone wrong. following are the steps i have followed:
    1)Created a .jar file which contains all the class files required for the application to run
    2)created another jar file containing the main class file which loads the application.
    3)included these two jar files in the JNLP <resource> tag
    4)placed the 2 jar files along with the jnlp file in the ROOT directory of the web server.
    5)type in teh URL of the jnlp file which is supposed to start the appilcation.
    please do let me know if i'v done anything wrong in the above steps..
    TIA,...

    Check if the href attribute in the html file is
    referencing the jnlp file correctly or not.I'm not using any HTML file to access this jnlp... i'm directly giving the URL smthing like this--> http://localhost:8080/test/client.jnlp
    where, client.jnlp is present in a directory called test under the ROOT directory of the tomcat/webapps.
    i hope this is the way to do it!!! plz do correct me if i'm wrong...!!!
    TIA...

  • Newest java version, when using UCS 2.1.3a

    Hi
    I have version 2.0.5a today on our UCS enviroment.
    Everything is working fine, but I have to have Java 7 update 17, because if I upgrade java to newer version, the KVM Console fails.
    Can anyone tell me, if I upgrade to 2.1.3a, can also upgrade Java to the newest version?

    Hello,
    Avoid Java 7 update 45 . Please use Java 7 update 25 or lower.
    https://supportforums.cisco.com/thread/2246189
    Padma

  • Specifying JRE version when starting CRM On Demand

    I am trying to find a way to specify what jre version to use when logging into CCA. Our users have multiple jre version including newer versions that are not compatible with CCA. They have open java and disable the newer versions in order to get CCA to work. Of course this causes issues when they run other programs that require the newer versions (what a mess!).
    Is this possible and can someone tell me how to do this? Any help would be greatly appreciated!
    Thanks in advance!

    This could be a problem with mounting of CD.
    If you are not using Solaris Volume Management software. Execute the following commands as root user.
    prompt> mkdir /cdrom
    prompt> mount -r -F hsfs device_name /cdrom
    prompt> exit
    Regards
    Ranga
    null

  • Cannot find java.exe when executing Sun Java Enterprise 8.1

    I downloaded and installed Sun Java Enterprise 8.1 (actually because I kept getting not enough space messages I downloaded it in 3 parts). When attempting to execute by clicking on the icon I keep getting a message saying "cannot find java.exe". I previously installed the java runtime successfully. Is anyone familiar with this and if so how do I get around it. I am running Win2k SP4 on a laptop. Thank you for any insight you can provide.

    Hi,
    I faced same problem. I had jdk 1.5.0_05 installed on C: drive directly. But When I check the log though the installation found the version it was assuming it to be at 'C:\Program Files\Java' so even after finding the installed JDK it was failing. When I copied the JDK at 'C:\Program Files\Java' and then uninstalled and reinstalled the Sun java studio 8 again, at this time it asked me about which JDK to use! Then there I could point to C:\jdk1.5.0_05. Then everything went through fine. I guess this is some problem in installation code. Try this out.

  • Can JWS be used as a multiple Java version management tool?

    WinNT4 WKS with JRE 1.3.1 - 1.4.2 loaded on it using IExplorer or Netscape.
    We don't have a need for the JWS download features because our clients (and their applications) remain static for the most part. However, we do require multiple JRE version support because our customers have written class/objet "fixes" (mostly for text rendering) and these fixes break if you try and run the application on a different version of Java from which it was written. Basically, we can't have a default JRE on each machine and hope that it will work with all customer applications. So we will load all necessary Java components on our workstations (in this case JRE versions 1.3.1 - 1.4.2). I know that browsers can be forced to load with a specific Plug-in version (providing it exists on the machine) through Object & Embed tags in the HTML and that standalone apps can be directed to the correct Java directory path. My question is, can JWS automatically identify the Java requirements of our customers applications and act simply as a multi-version management tool to provide the right JRE/Plug-In for either standalone or browser applications? Keeping in mind that all the JREs will be loaded on the workstions and it won't need to download any components from some site.
    I've noticed that JWS identifies all JREs loaded on a machine in the Java tab so I'm wondering if it can "switch" the environment as needed for each application.
    Does anyone know if I can use JWS in the scenario I described above? Thanks!

    JWS can manage the multiple JREs installed if you run the application through a .jnlp. This can not "switch" the default JRE. It runs the application specified in the .jnlp using the requested version specified in the .jnlp.
    JWS does not apply to applets. You should use the object tags as you mentioned below.
    ...can JWS automatically identify the Java requirements of our customers applications
    No. You must determine this and setup the .jnlp appropriately.

  • On a certain website, it says to click here to download plugin (Java). When executing the download, it says 'the installer cannot proceed with the current Internet Connection settings. I'm running 4.01. It was fine before the upgrade.

    On a certain website, it says to click here to download plugin Java Runtime Environment. I receive the message installer cannot proceed with the current Internet Connection settings. It was fine before the upgrade to 4.01. I have another PC that has IE on it and it works fine and again it worked fine until the upgrade to 4.01. I've done the off-line download but in Firefox it still says I need the plugin and still results in the installer cannot proceed with the current Internet Connection settings.

    You can install Java from here: http://www.java.com/en/<br><br>
    You also need to update your Flash installation since the one you have at the moment exposes your system to attack. It's a similar story for Adobe Reader.
    See:<br><br>
    * http://www.adobe.com/support/security/bulletins/apsb11-12.html<br><br>
    * http://www.adobe.com/support/security/bulletins/apsb11-08.html<br><br>
    Download from here:<br><br>
    * Adobe Flash: http://get.adobe.com/flashplayer/<br><br>
    * Adobe Shockwave For Director: http://get.adobe.com/shockwave/<br><br>
    * Adobe Reader: http://get.adobe.com/reader/?promoid=BUIGO<br><br>

  • Urgent,java Error when compiling class file for jsp

    Hi!
    Reference to statement is ambbiguous,both class java.sql.statement in java.sql and class.java.beans.statement in java beans match.
    this is my file . When i comment the java.import.bean headre it does compile but my server is not able to recognize the class file.,Cud someone help me.
    THis is my source file
    package dbmg;
    //import java.beans.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DbBean
    Connection con;
    ResultSet rs;
    String sql;
    boolean queryType;
    int edited;
    public DbBean() throws Exception
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:Forums");
    public void setQueryType(String s)
    queryType=s.equalsIgnoreCase("select");
    public void setSql(String s)
    sql = s;
    synchronized public void processRequest(HttpServletRequest req) throws
    Exception
    if (queryType)
    Statement stmt=con.createStatement();
    rs=stmt.executeQuery(sql);
    else
    PreparedStatement ps=null;
    ps=con.prepareStatement(sql);
    int count=0;
    String sqlParam,paramValue;
    boolean set=true;
    while (set)
    count++;
    sqlParam="param"+String.valueOf(count);
         if (sqlParam==null)
              set=false;
              continue;
    paramValue=req.getParameter(sqlParam);
         if (paramValue==null)
    set=false;
    continue;
              else
                   paramValue=paramValue.trim();
    try
                   ps.setString(count,paramValue);
              catch(Exception ex)
                   set=false;
                   continue;
    try
    edited=ps.executeUpdate();
    catch(SQLException e)
    edited=0;
    public Connection getConnection()
    return con;
    public ResultSet getResultSet()
    return rs;
    public int stored()
    return edited;
    public void closeCon() throws Exception
    con.close();
    rs = null;

    No need of commenting your import statement. Whenever there is ambiguity, you can use full class name (with package).
    Like,
    java.sql.Statement stmt=con.createStatement();
    Now there is no ambiguity.
    Sudha

  • Using ftp in core java code to transferring a file to other sys

    My mail id:[email protected]
    hi to all
    I am actually using this code for transforing a file from my system to side system of mine.but the code is compiling and when runing this code i am getting an error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.sshtools.j2ssh.net.SocketTransportProvider.<init>(Unknown Source)
    at com.sshtools.j2ssh.net.TransportProviderFactory.connectTransportProvider(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at ftpsample1.main(ftpsample1.java:36)
    I am getting this error.
    friend is saying some proxy should should be installed in that other system.
    Plase help me..
    my code is:
    import java.io.File;
    import java.util.List;
    import java.io.*;
    import com.sshtools.j2ssh.SftpClient;
    import com.sshtools.j2ssh.SshClient;
    import com.sshtools.j2ssh.authentication.AuthenticationProtocolState;
    import com.sshtools.j2ssh.authentication.PasswordAuthenticationClient;
    import com.sshtools.j2ssh.sftp.SftpFile;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class ftpsample1
         public static void main(String[] args) {
         String username="administrator";
         String password="thota1976";
    try{
    // Make a client connection
    System.out.println("Before SSHCLIENT......");
    SshClient ssh = new SshClient();
         System.out.println("After SSHCLIETNT ......");
    // Connect to the host
    System.out.println("Connecting ......");
    System.out.println("ssh.connect ->9.182.54.70*************************......");
         ssh.connect("9.182.54.70");
    System.out.println("Connected***");
         // Create a password authentication instance
    PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();
         // Get the users name
    pwd.setUsername(username);
         // Get the password
    pwd.setPassword(password);
         // Try the authentication
    int result = ssh.authenticate(pwd);
         System.out.println("ssh.authenticate(pwd):::" +result);
    System.out.println("AuthenticationProtocolState.COMPLETE:::***:" +AuthenticationProtocolState.COMPLETE);
              System.out.println("Beforet he AuthenticationProtocolState.COMPLETE ::");
         if (result == AuthenticationProtocolState.COMPLETE) {
              System.out.println("BOTH ARE SAME RESULT AND .COMPLETED*--------------");
    // The connection is authenticated we can now do some real work!
    SftpClient sftp = ssh.openSftpClient();
              sftp.put("c:/temp/Balaji.jpg");
                   System.out.println("after he AuthenticationProtocolState.COMPLETE ::");
    }catch(Exception e)
                        e.printStackTrace();
                        System.out.println("*****");
                        e.getMessage();

    You could use only Java classes without and 3rd party classes (com.sshtools.j2ssh) for doing this:
         * Upload a file to a FTP server. A FTP URL is generated with the following syntax:
         * <code>ftp://user:password@host:port/filePath;type=i</code>.
         * @param ftpServer FTP server address (incl. optional port ':portNumber').
         * @param user Optional user name to login.
         * @param pwd Optional password for <i>user</i>.
         * @param fileName Destination file name on FTP server (with optional preceeding relative path, e.g. "one/two/three.txt").
         * @param source Source file to upload.
         * @throws MalformedURLException, IOException on error.
        public void upload(String ftpServer, String user, String pwd, String fileName, File source) throws MalformedURLException, IOException {
            if (ftpServer != null && fileName != null && source != null) {
                StringBuffer sb = new StringBuffer("ftp://");
                if (user != null && pwd != null) { //need authentication?
                    sb.append(user);
                    sb.append(':');
                    sb.append(pwd);
                    sb.append('@');
                }//else: anonymous access
                sb.append(ftpServer);
                sb.append('/');
                sb.append(fileName);
                sb.append(";type=i"); //a=ASCII mode, i=image (binary) mode, d= file directory listing
                BufferedInputStream bis = null;
                BufferedOutputStream bos = null;
                try {
                    URL url = new URL(sb.toString());
                    URLConnection urlc = url.openConnection();
                    bos = new BufferedOutputStream(urlc.getOutputStream());
                    bis = new BufferedInputStream(new FileInputStream(source.getName()));
                    int i;
                    while ((i = bis.read()) != -1) { //read next byte until end of stream
                        bos.write(i);
                    }//next byte
                } finally {
                    if (bis != null) try { bis.close(); } catch (IOException ioe) { /* ignore*/ }
                    if (bos != null) try { bos.close(); } catch (IOException ioe) { /* ignore*/ }
            }//else: input unavailable
        }//upload()

Maybe you are looking for