Run WL 6.1 with JDK 1.4 RC

Anyone tried JDK 1.4 yet with WL 6.1? I got the following error message when I
did it. I understand that WL 6.1 is not officially supported yet from BEA.
thanks
Frank
========
C:\bea\wlserver6.1>"C:\java\j2sdk1.4.0-rc\bin\java" -hotspot -ms64m -mx64m -classpath
".;.\lib\weblo
gic_sp.jar;.\lib\weblogic.jar" -Dweblogic.Domain=mojdomain -Dweblogic.Name=mojserver
"-Dbea.home=C:\
bea" -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled=true "-Djava.security.policy==
C:\bea\wlserver6.1\lib\weblogic.policy" weblogic.Server
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:393)
at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate.java:81)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:200)
at weblogic.Server.main(Server.java:35)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
... 16 more

I do not think you can do it easily, because it appears that WebLogic is shipped
with 'customized' Sun's security classes (most likely to implement JAAS).
Frank <[email protected]> wrote:
Anyone tried JDK 1.4 yet with WL 6.1? I got the following error message when I
did it. I understand that WL 6.1 is not officially supported yet from BEA.
thanks
Frank
========
C:\bea\wlserver6.1>"C:\java\j2sdk1.4.0-rc\bin\java" -hotspot -ms64m -mx64m -classpath
".;.\lib\weblo
gic_sp.jar;.\lib\weblogic.jar" -Dweblogic.Domain=mojdomain -Dweblogic.Name=mojserver
"-Dbea.home=C:\
bea" -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled=true "-Djava.security.policy==
C:\bea\wlserver6.1\lib\weblogic.policy" weblogic.Server
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:393)
at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate.java:81)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:200)
at weblogic.Server.main(Server.java:35)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
... 16 more--
Dimitri

Similar Messages

  • Error while running Dev60 with jdk 11711o

    Dear OTN Members / Oracle Development Team.
    Have any one tried it. Help required form Oracle Devlopemnt
    Team.
    hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
    with NT 4.0 and service Pack 3
    when i try to run the form through jinitinator or JDK provided
    with the package i get the following error.
    running with jinitator
    Oracle JInitiator version 1.1.7.11
    Using JRE version 1.1.7.11o
    User home directory = E:\WINNT\Profiles\Administrator
    Proxy Configuration: no proxy
    java.io.FileNotFoundException: \forms60\f60all.jar
    at java.io.FileInputStream.<init>(FileInputStream.java:56)
    at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
    Code)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
    LConnection.java:162)
    at
    sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
    directs(Compiled Code)
    at
    sun.applet.AppletCache.getInputStream(AppletCache.java:588)
    at
    sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
    171)
    at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
    Code)
    at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
    at
    sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
    at sun.applet.JinitAppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:466)
    and with JDK
    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
    ]: cannot access file E:\WINNT\Java\.hotjava
    at com/ms/security/permissions/FileIOPermission.check
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkRead
    at java/io/File.exists
    at java/io/File.mkdirs
    at sun/applet/AppletViewer.<clinit>
    at java/lang/ClassLoader.findSystemClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    Error getting package information: sun/applet
    com.ms.packagemanager.PackageManagerException: Package not
    ound
    at com/ms/packagemanager/PackageManager.getPackage
    at
    com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: sun.applet.AppletViewer
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    what could be the problem have any one encountered this kind of
    problem.
    pls help required.
    mobeen
    null

    Dear OTN Members / Oracle Development Team.
    Have any one tried it. Help required form Oracle Devlopemnt
    Team.
    hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
    with NT 4.0 and service Pack 3
    when i try to run the form through jinitinator or JDK provided
    with the package i get the following error.
    running with jinitator
    Oracle JInitiator version 1.1.7.11
    Using JRE version 1.1.7.11o
    User home directory = E:\WINNT\Profiles\Administrator
    Proxy Configuration: no proxy
    java.io.FileNotFoundException: \forms60\f60all.jar
    at java.io.FileInputStream.<init>(FileInputStream.java:56)
    at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
    Code)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
    LConnection.java:162)
    at
    sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
    directs(Compiled Code)
    at
    sun.applet.AppletCache.getInputStream(AppletCache.java:588)
    at
    sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
    171)
    at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
    Code)
    at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
    at
    sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
    at sun.applet.JinitAppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:466)
    and with JDK
    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
    ]: cannot access file E:\WINNT\Java\.hotjava
    at com/ms/security/permissions/FileIOPermission.check
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkRead
    at java/io/File.exists
    at java/io/File.mkdirs
    at sun/applet/AppletViewer.<clinit>
    at java/lang/ClassLoader.findSystemClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    Error getting package information: sun/applet
    com.ms.packagemanager.PackageManagerException: Package not
    ound
    at com/ms/packagemanager/PackageManager.getPackage
    at
    com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: sun.applet.AppletViewer
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    what could be the problem have any one encountered this kind of
    problem.
    pls help required.
    mobeen
    null

  • Is it possible to run OAS 10.1.2  with JDK 1.6 ???

    Well on the one hand we have Oracle ADF BC application that was developed with JDeveloper 10.3.4 and runs fine on OAS 10.1.2 JDK 1.4 on the other hand we have a 3rd party Map Server (servlet + java code) that is black box and only runs on JDK 1.6 because it needs JDK 1.6 features.
    Currently the only available course of going forward is to introduce a new open source 1.6 compliant server to run the Map Server and use AJAX to cross domain communicate the two. Client would like to avoid this, would like one application on one server.
    Restrictions are
    1) To get the Map Server in JDK 1.4 format is not an option and
    2) Upgrading to a Oracle Server that is JDK 1.6 and supports the ADF BC application is not an option. And not sure if OAS 11 can run the ADF BC application since I did a quick test by trying to compile the ADF BC application JDeveloper 10.3.4 code in JDeveloper 11 with out any success.
    So to my question if I could run OAS 10.1.2 JDK 1.6 it might solve the problem before i attempt that I like to ask the ideas of others that might have faced such integration issues before.
    This is urgent any help is welcome by anyone and everyone and especially the Gurus.
    thanks in advanced health and happiness to every one

    AFAIK, Oracle AS 10.1.2 is not certified with JDK 1.5 or higher.
    Oracle AS 10.1.3 is certified with JDK 1.5 and 1.6 on some platforms. (Check metalink.oracle.com -> certify for details)
    Oracle FMW 11.1.1.0.1 (aka WebLogic 10.3 plus JDeveloper 11.1.1.0.1) is certified with JDK 1.6
    Not certified means use it on your own risk - no support.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Why can't I run my Java program with just the JRE, the JDK is required?

    I've recently written 3 programs in Java using the Netbeans IDE with JDK 1.6 as the default Java platform. The compile-time libraries include the Swing Application Framework. I use BuildDesk from ProductiveMe to package the each program into a Windows installer.
    When I install the programs on a new computer without a JRE or JDK being present, and attempt to run them I get an error (as expected) stating that there is no JVM. The messages says that I need to install JDK 1.3 or higher. I downloaded the latest JRE onto the new computer and attempted to run the programs and I get the same error message. My question is, why can't I run these programs with just the JRE installed? Why do I need the JDK? When I install the JDK, the programs run fine. The typical user may not have the JDK on their system, but they likely have the JRE if they've run Java programs before.
    Is the answer as simple as there must be library functions being used by the programs that belong to the JDK, but not the JRE? I'd rather a user not have to install the JDK verses the JRE because they may also have to update some Windows environment variables.
    Thank you for any help on this issue.

    915088 wrote:
    Thanks for your replies. I further investigated BuildDesk and found an option which allows a JVM check but that check needs the JDK. I stopped the JVM check and rebuilt using BuildDesk and it now only requires the JRE to run the programs. The reason why I use BuildDesk is to package more than just the jar file for the user. BuildDesk allows me to create a installation folder structure as well as include any other files in the build. I could just as well zipped all this together for the user but decided against that method.I don't think anyone will question your usage of an installer tool; that is entirely up to you. But what is questionable is that you have problems with that installer tool and then go look for help in a Java programming forum. The next time, go look for help at the source. If there is no way to acquire help (support, a forum, a mailinglist, anything) then that is a very good reason to not use the product in question.

  • Problem with JDK running

    I am relatively new to java programming and currently cannot get the
    jdk to run. I had the jdk working fine until last week when I reinstalled
    vista. I have changed the the environmental variable in the system properties to
    Class variable : c:\program files\java\jdk1.6.0_01\bin
    and I still get errors when trying to run one my java programs. The
    error I get is :
    Exception in thread "main" java.lang.NoClassDefFoundError: book
    What do I need to do to get java working again. Any help anyone
    can provide would be greatly appreciated.

    Please be very precise about what you are doing and what you have entered. There is no such thing as "Class Variable" that has anything to do with how Java finds classes.
    You need to set or specify the classpath. I recommend against setting it as an environment variable. The classpath is where Java looks for classes. C:\Program Files\Java\jdk1.6.0_01\bin is where Windows looks for the JDK executables, such as javac.exe and java.exe.
    You should specify the classpath using the -cp argument of both javac and java.
    The classpath needs to point to any directories containing your source code and/or class files, and also to any jar files needed by your application (if any).
    The classpath only needs to point to the top of the package hierarchy, if you are using packages for your Java classes (which you should for anything beyond a "Hello World" program).
    Finally, you need to be precise about case as well. Java expects a class called book to be in a file called book.class. However, conventionally, Java class names should start with a capital letter.
    For example, assuming you have a class Book in a package example and the code for your project is in C:\myproject\src, you would call :javac -cp C:\myproject\src C:\myproject\src\example\Book.javato compile your Book class, and thenjava -cp C:\myprojects\src example.Book to run it.

  • RUn WLS 7 as Windows 2K service with JDK 1.4.1

    Has anyone able to get WLS 7 to run as Windows 2K service with JDK 1.4.1?

    NO -- the first product to support JDK 1.4 is WLS 8.1. Period.
    Wayne
    cdd wrote:
    Has anyone able to get WLS 7 to run as Windows 2K service with JDK 1.4.1?

  • A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 &java 2

    A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 and Java 2 SDK ( Ver 1.3 Beta)
    After the installation of Oracle Lite 3.6.0.2.0 on a laptop (with WIN 95 OS), When I run Oracle Lite Designer from start menu, I receive following error message :
    ====================================
    Invalid class name 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    usage: java [-options] class
    where options include:
    -help print out this message
    -version print out the build version
    -v -verbose turn on verbose mode
    -debug enable remote JAVA debugging
    -noasyncgc don't allow asynchronous garbage collection
    -verbosegc print a message when garbage collection occurs
    -noclassgc disable class garbage collection
    -ss<number> set the maximum native stack size for any thread
    -oss<number> set the maximum Java stack size for any thread
    -ms<number> set the initial Java heap size
    -mx<number> set the maximum Java heap size
    -classpath <directories separated by semicolons>
    list directories in which to look for classes
    -prof[:<file>] output profiling data to .\java.prof or .\<file>
    -verify verify all classes when read in
    -verifyremote verify classes read in over the network [default]
    -noverify do not verify any class
    -nojit disable JIT compiler
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ====================================
    My ORACLE_HOME is c:\program files\ora95_2 and Oracle Lite is installed under the ORACLE_HOME in LITE\DESIGNER directory.
    JDK version is 1.1.8 which is greater than 1.1.4 installed in c:\program files\jdk1.1.8, My PATH, and CLASSPATH are set in AUTOEXEC.BAT as follows:
    set CLASSPATH=c:\Progra~1\jdk1.1.8\lib\classes.zip;c:\progra~1\ora95_2\lite\classes\olite36.jar;c:\progra~1\ora95_2\lite\designer\oldes.jar;c:\progra~1\ora95_2\lite\designer\swingall.j ar
    PATH=C:\Progra~1\Ora95_2\bin;.;c:\Progra~1\jdk1.1.8\lib;c:\Progra~1\jdk1.1.8\bin;C:\Progra~1\Ora95_2\lite\Designer;C:\WIN95;C:\WIN95\COMMAND;C:\UTIL
    And, I can run JAVA.EXE from any directory on command prompt.
    With JAVA 2 SDK (ver 1.3 Beta) instead of JDK 1.1.8 I'm getting a different Error message as follows:
    =============================
    java.lang.NoClassFoundError: 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ==============================
    the PATH and CLASSPATH were set accordingly, as with JDK1.1.8, and there was no classes.zip in classpath
    also the class file or the jar file looks weird or wrapped in the error message : 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Another interesting thing I noticed is if I run oldes.exe from Installation CD, the Oracle Lite Designer runs fine, and without error, I'm able to modify tables in the database of my laptop also.
    Could someone shade some light on what am I doing wrong here ?
    Thanks for help in advance .
    Regards
    Viral
    null

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • Performance problems with jdk 1.5 on Linux plattform

    Performance problems with jdk 1.5 on Linux plattform
    (not tested on Windows, might be the same)
    After refactoring using the new features from java 1.5 I lost
    performance significantly:
    public Vector<unit> units;
    The new code:
    for (unit u: units) u.accumulate();
    runs more than 30% slower than the old code:
    for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
    I expected the opposite.
    Is there any information available that helps?

    Here's the complete benchmark code I used:package test;
    import java.text.NumberFormat;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.Vector;
    public class IterationPerformanceTest {
         private int m_size;
         public IterationPerformanceTest(int size) {
              m_size = size;
         public long getArrayForLoopDuration() {
              Integer[] testArray = new Integer[m_size];
              for (int item = 0; item < m_size; item++) {
                   testArray[item] = new Integer(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testArray[index]);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayForEachDuration() {
              Integer[] testArray = new Integer[m_size];
              for (int item = 0; item < m_size; item++) {
                   testArray[item] = new Integer(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testArray) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListForLoopDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testList.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListForEachDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testList) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListIteratorDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testList.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListForLoopDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testList.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListForEachDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testList) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListIteratorDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testList.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorForLoopDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testVector.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorForEachDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testVector) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorIteratorDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testVector.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
          * @param args
         public static void main(String[] args) {
              IterationPerformanceTest test = new IterationPerformanceTest(1000000);
              System.out.println("\n\nRESULTS:");
              long arrayForLoop = test.getArrayForLoopDuration();
              long arrayForEach = test.getArrayForEachDuration();
              long arrayListForLoop = test.getArrayListForLoopDuration();
              long arrayListForEach = test.getArrayListForEachDuration();
              long arrayListIterator = test.getArrayListIteratorDuration();
    //          long linkedListForLoop = test.getLinkedListForLoopDuration();
              long linkedListForEach = test.getLinkedListForEachDuration();
              long linkedListIterator = test.getLinkedListIteratorDuration();
              long vectorForLoop = test.getVectorForLoopDuration();
              long vectorForEach = test.getVectorForEachDuration();
              long vectorIterator = test.getVectorIteratorDuration();
              System.out.println("Array      for-loop: " + getPercentage(arrayForLoop, arrayForLoop) + "% ("+getDuration(arrayForLoop)+" sec)");
              System.out.println("Array      for-each: " + getPercentage(arrayForLoop, arrayForEach) + "% ("+getDuration(arrayForEach)+" sec)");
              System.out.println("ArrayList  for-loop: " + getPercentage(arrayForLoop, arrayListForLoop) + "% ("+getDuration(arrayListForLoop)+" sec)");
              System.out.println("ArrayList  for-each: " + getPercentage(arrayForLoop, arrayListForEach) + "% ("+getDuration(arrayListForEach)+" sec)");
              System.out.println("ArrayList  iterator: " + getPercentage(arrayForLoop, arrayListIterator) + "% ("+getDuration(arrayListIterator)+" sec)");
    //          System.out.println("LinkedList for-loop: " + getPercentage(arrayForLoop, linkedListForLoop) + "% ("+getDuration(linkedListForLoop)+" sec)");
              System.out.println("LinkedList for-each: " + getPercentage(arrayForLoop, linkedListForEach) + "% ("+getDuration(linkedListForEach)+" sec)");
              System.out.println("LinkedList iterator: " + getPercentage(arrayForLoop, linkedListIterator) + "% ("+getDuration(linkedListIterator)+" sec)");
              System.out.println("Vector     for-loop: " + getPercentage(arrayForLoop, vectorForLoop) + "% ("+getDuration(vectorForLoop)+" sec)");
              System.out.println("Vector     for-each: " + getPercentage(arrayForLoop, vectorForEach) + "% ("+getDuration(vectorForEach)+" sec)");
              System.out.println("Vector     iterator: " + getPercentage(arrayForLoop, vectorIterator) + "% ("+getDuration(vectorIterator)+" sec)");
         private static NumberFormat percentageFormat = NumberFormat.getInstance();
         static {
              percentageFormat.setMinimumIntegerDigits(3);
              percentageFormat.setMaximumIntegerDigits(3);
              percentageFormat.setMinimumFractionDigits(2);
              percentageFormat.setMaximumFractionDigits(2);
         private static String getPercentage(long base, long value) {
              double result = (double) value / (double) base;
              return percentageFormat.format(result * 100.0);
         private static NumberFormat durationFormat = NumberFormat.getInstance();
         static {
              durationFormat.setMinimumIntegerDigits(1);
              durationFormat.setMaximumIntegerDigits(1);
              durationFormat.setMinimumFractionDigits(4);
              durationFormat.setMaximumFractionDigits(4);
         private static String getDuration(long nanos) {
              double result = (double)nanos / (double)1000000000;
              return durationFormat.format(result);
    }

  • Error while running Java Web Start in JDK 1.5

    I have been running an application using Jboss3.2 in JDK1.4.2_09. The Java Web Start application ran perfectly then.
    Now, I am running Jboss3.2 with JDK 1.5.0_11. While some applications (HTML client and some Java Web Start applications are working correctly) are working correctly, this particular Java Web Start application fails.
    General Tab:
    An error occurred while launching/running the application.
    Title: Server_Security
    Vendor: df
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://localhost:8080/webapp/SampDB1/Server_Security/application/javassist.jar - null
    Exception Tab:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:617)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(DownloadProtocol.java:884)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:698)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:662)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:1032)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:375)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
         at com.sun.javaws.Launcher.run(Launcher.java:165)
         at java.lang.Thread.run(Thread.java:595)

    You appear to be using a 1.4.x program on a file belonging to 1.5. Check your path variable, it's probably the cause.

  • Issue while installing ODI 11.1.1.6 with JDK 7u

    Hi All,
    I am working on installing ODI on windows 64 bit. I downloaded lastest web logic server files, ODI files and JDK files from oracle site..
    I installed Web Logice server with no errors but when I tried to install ODI by running the setup.exe it was giving me an error:
    "Error: Provide the JDK/JRE Location while launching the installer. Invoke the sertup.exe with -jreLoc <JDK/JRE Location absolute path>Parameter(s)".
    So, I looked in to JDK file and noticed that it is an old file and need to be updated so I installed "jdk-7uf-windows-i586.exe". After installing when I try to setup ODI, I am still getting the same error..
    It is asking me to provide the location but I am not srue where to provide the location.. I know the location for JDK i.e. C:\Program files\Java\jdk1.7.0_04 but I am not sure where to provide this location for ODI..
    Thanks a lot!

    2 things must be noticed:
    First: ODI 11g is not supported by JDK 7, I always use the JDK1.6.0_27 and works fine. When you try to open the ODI Studio, this message appears, telling that ODI is supported only with JDK 6 versions, so don't try to use JDK 7.
    Second: I always install the JDK in a path without spaces, like "C:\JDK1.6.0_27\" and the excatly same thing to odi install files. So I call via Command Prompt:
    C:\ODI_INSTALL\Disk1\setup.exe -jreLoc C:\JDK1.6.0_27\
    I did over 20 windows installations using these settings, it'll work perfectly.
    Regards.
    Luiz Araujo

  • OC4J 9.0.2 production with JDK 1.4.0: mostly broken

    I have tried OC4J 9.0.2 production with several combinations of JDK 1.3.1 and JDK 1.4.0 for building, deploying, and running a simple, home-grown EJB-based web service. If I build the EAR file using JDK 1.3.1, it will run fine on OC4J using JDK 1.3.1 or JDK 1.4.0.
    I have thus far found it to be impossible to build the EAR file using JDK 1.4.0 and have it run sucessfully on OC4J using either JDK 1.4.0 or JDK 1.3.1. I always get the following when attempting to invoke the web service via the generated Java proxy stubs:
    5/8/02 7:33 PM database: oracle.jsp.runtimev2.JspServlet: init
    5/8/02 7:33 PM database: 9.0.2.0.0 Started
    5/8/02 7:33 PM database: oracle.j2ee.ws.SessionBeanWebService: init
    5/8/02 7:33 PM database: Servlet error
    oracle.j2ee.xanadu.JasperGenerationError: no source generated during code generation!: 1 in getFile name: com\mycompany\common\ejb\Info.class
    1 in getFile name: com\mycompany\common\ejb\Info.java
    error: error message 'class.format' not found
    binary class definition not found: com.mycompany.common.ejb.Info
         at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGenerator.java:267)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:662)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:767)
         at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Notes:
    1) When attempting to deploy onto an OC4J instance running on JDK 1.4.0, I have replaced the tools.jar file and modified the global-web-application.xml as per: ORA-92102 Timeout on Web Forms
    2) I have verified that the EJB deploys correctly regardless of build and/or deployment environment.
    3) Let's pretend that I can configure each of these environments to run under JDK 1.4.0 or JDK 1.3.1: run OC4J (fresh install), build ear, deploy ear, invoke web service. Here are the combinations I have tried:
    BROKEN: run OC4J 1.4.0, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.3.1, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    Is Oracle aware of this problem? What is causing it (e.g. class format change in classes compiled in JDK 1.4.0)? Are you working to fix it in the next release (either preview or production)?

    I've also just downloaded JDK 1.4.0 and tried running the "Simple JSP Examples" that come with OC4J R2.
    Of course these simple examples didn't even compile:
    <blockquote>
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:/oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java
    error: Invalid class file format in /oracle/product/j2sdk1.4.0/jre/lib/rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    /oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package examples.jsp._num;
    ^
    2 errors
    </blockquote>
    So whose fault is this?
    Is it my fault for not reading this forum before downloading the 40MB J2SE 1.4.0 install?
    Is it Oracle's fault for failing to point out that OC4J is compatible with ONLY 1.3.1 ?
    Is it Sun's fault for breaking compatibility with their own product? So much for write once run anywhere. This is not what Java was supposed to be about.

  • Problem in using sybase drivers with JDK 1.5

    hi all,
    i have an app that is connecting to a sybase database.
    so far i have run it using jdk 1.4 using sybase jconn2.jar , it has workedf ine.
    Now, i haven't changed the code, i just recompiled it and re-run it using jdk 1.5 , and suddenly i am getting a classNotFoundException
    java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
    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)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at BNPParibas.Collateral.SQL.SQLConnectionFactory.DoConnection(SQLConnec
    tionFactory.java:65)
    at BNPParibas.Collateral.SQL.SQLConnectionFactory.Connect(SQLConnectionF
    actory.java:29)
    at BNPParibas.Collateral.SQL.ResultSetFactory.<init>(ResultSetFactory.ja
    va:27)
    at BNPParibas.Collateral.Batch.Flow.FlowControl.load(FlowControl.java:81
    at BNPParibas.Collateral.Batch.Flow.FlowControl.<init>(FlowControl.java:
    62)
    at BNPParibas.Collateral.Batch.Flow.FlowControl.main(FlowControl.java:37
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Appe
    nder
    at BNPParibas.Collateral.Batch.Flow.FlowControl.load(FlowControl.java:16
    8)
    at BNPParibas.Collateral.Batch.Flow.FlowControl.<init>(FlowControl.java:
    62)
    at BNPParibas.Collateral.Batch.Flow.FlowControl.main(FlowControl.java:37
    and NOTHING has changed except that now i am runnign java 1.5 instead of 1.4
    has anyone ever experienced a similar problem?
    regards
    marco

    Hello,
    well, yes it is.
    Running the code with jdk 1.4 is absolutely fine.
    if i run it like this
    <myjdk14install>\bin\java -jar xxx.jar works fine
    if i run it l ike this (which will use 1.5 by default)
    java -jar xxx.jar it gives me that exception...
    have the classloading mechanism changed between jdk 1.4 and jdk 1.5?
    regards
    marco

  • When JDev (9.0.4/9.0.5/?) runnable with JDK 1.4.x?

    I installed JDeveloper 9.0.3.1 on a Red Hat 8 system with JDK 1.4.1_01 and have using it successfully for non-GUI, non-BC4J development. I have been following the discussions and understand there are potential problems but I haven't hit any yet and have really enjoyed the improved performance.
    Over the weekend I also installed JDK 1.4.2_beta. I reinstalled JDeveloper 9.0.3.1. WOW! JDeveloper went from sluggish but useable to not bad at all (as did a lot of Java GUI apps I use).
    I did find some new and interesting JDBC problems (ones I did not have with JDK 1.4.1_01) but was able to solve them by adding a library with the JDK 1.4.x specific JDBC drivers (ojdbc14.jar) to my projects.
    My question is ... when (days, weeks, months?) will some version, preview or production, 9.0.3.x, 9.0.4, 9.0.5, whatever be supported (ie available on OTN) with JDK 1.4.x+ (preferably 1.4.2+)?
    Thanks
    R.Parr
    Temporal Arts

    Thanks Robert.
    I am assuming I may take this as confirmation that JDev 9.0.4 will, in fact, support JDK 1.4.x (hopefully including 1.4.2 as there appears to be a real performance bump from 1.4.1 to 1.4.2). Please correct me if I am wrong so that I may adjust my expectations.
    I understand your inability and reluctance to provide precise dates. I do not ask for that. It would, however, aid my planning, and adjustment of expectations, if you could provide an estimate of JDev 9.0.4 availibility within an "order of calendar magnitude". That is, are we talking weeks, months, quarters, or years? As an example, at this time apps like Mozilla on Red Hat 9 seem to require use of the newest JDK 1.4.x. If a JDev which can run under 1.4.x will be unavailable for some time, I and my customer will have to install the older RH8 on new workstations. If it will be available in a relatively short time we can plan on the ability to use RH9.
    Thanks again.
    R.Parr
    Temporal Arts

  • JDeveloper 3.2.3 with jdk 1.4.0-beta2

    Hi there,
    had an application developed with Jdev3.2.3 and jdk 1.3.1-r2. Was working well, accept a small problem with minimize and maixmize items. Dropped the problem with sun and they said it would be solved with jdk 1.4.0-beta2.
    Tried to define this within Jdev, but get the next error when rebuilding the code:
    Error: (0) initialization error: class Error const *: class file has wrong version 48.0, should be 45.3 or 46.0.
    If I build the code with javac from jdk 1.4.0 it builds correctly and runs ok.
    anyone know if i can solve this ???

    I ran into a similiar problem with JBuilder 5. The answers on their boards indicate the problem traces to the change Sun made with versioniong class files in JDK1.4.
    Someone offers a patch tool for JBuilder, but Borland does not support it. It will be interesting to see what Oracle does with this problem.
    Mark

  • Is nw 2004s j2ee engine built with JDK 1.4?

    i am currently running NetWeaver 2004 WAS 6.40 J2EE Engine SP14. from the version.txt file, i see this line:
    Build java version:1.3.1_12-b03 Sun Microsystems Inc.
    i understand that during installation of j2ee engine i can specify jdk versions such as 142_09 etc. but i have a specific issue with the dbpool service provided by the j2ee engine. since the engine is itself built with jdk 1.3.1, it doesn't and couldn't support some of the jdbc apis introduced since jdk 1.4.
    so i'd like to know which version of j2ee engine starts to be built with jdk 1.4?
    if anyone has nw 2004s installed, could you pls check your version.txt file and let me know what the "Build java version" is?
    kind regards,
    wentao

    Hi wentao
    check the version from following.
    http://host:j2eeport/sp
    login with administrator user.
    exand server node ->j2ee->version information click
    under task click on run u get the current version .
    regards,
    kaushal

Maybe you are looking for

  • What are the things we can do in cs4 trial?

    Just want to know what features can we do and not do in adobe cs4? In specific can we embed a video into our story? Can we generate an avi (video) as an output? Can we loop frames indefinitely? PS: I've no prev multimedia experience.

  • Printing envelopes in address book

    i have added an image to print beside my return address. it not printing right with the type of paper i am using. how do i delete the picture?

  • I am getting a Not Enough Storage error message on my iPad.  How do I fix it?

    I can't sign in or even use the iPad.  It is frozen and the only message that comes up is Not Enough Storage This iPad cannot be backed up because there is not enough ICloud storgage available.  You can manage our storage in Settings.  It will not al

  • Dsc Error after install

    Hi I created the project with DSC (LV 2010). Then I created the Installer. After I Installed this project on another PC (Win XP) without error. And when I run my project on another PC I have the ERROR. I added the Error. Where is my Error? Regards Is

  • Calculation of Averages

    I need to be able to calculate the average difference between a total average on a single row for example Value , AverageTotValue , Difference 2, 4, -2 4, 4, 0 6, 4, +2 preferably using Discoverer plus (although I could write a function if necessary)