"java -version" command result in error stream

i am getting output of following command in error stream instead of input stream
Runtime rt = Runtime.getRuntime();
               ProcessBuilder builder = new ProcessBuilder(new String[]{"cmd.exe","/c","java -version"});
               Process pr = builder.start();
               BufferedReader input = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
               String line=input.readLine();
               System.out.println(line);
please explain
Edited by: Mayur Mitkari on Feb 27, 2013 5:25 AM

Using System class you can work with 3 different types of streams to read or print data
System.in : Standard Input Stream - open and ready to supply input data
System.out : Stand Output Stream - open and ready to accept output data
System.err : Stand Error Stream - open and ready to accept output data
Generally output stream may be set with any output device or file. Based on the stream which are using the output will be redirected to the corresponding stream.
Here in your program you are printing the data using "System.out" - nothing but standard output stream so what ever the output come through your program will be redirected to the default output device.
Input streams are used to read the data. For example, assume that you want to read the data from the keyboard then you can read like the below
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext())
     System.out.println(scanner.next());
}

Similar Messages

  • Java Georaster API error - wrong java version

    Hi all. I've done some searching about but cannot see this question answered (or indeed asked) anywhere else so perhaps i'm the first person to encounter it.
    I've got some georaster data from a customer in an Oracle DMP file which i've imported. It all checks out as being valid (using sdo_geor.validategeoraster) but i cannot view it in the Georaster Viewer tool. I wrote some java to extract a piece to a file but i get this error with the select command ...
    DEBUG <10:27:51> [GeoRaster] jGeor.getRasterImage(conn,0,600, 1199, 1801, 2400 )
    ERROR <10:27:51> [GeoRaster] Failed to getRasterImage() because of a GeoRasterException : -13464;GeoRaster object has float or double data type.
    It can be retrieved only with Java version 1.4.1 or higher.
    Java version found: 1.5
    ERROR <10:27:51> [GeoRaster] stack trace is ...
    DEBUG <10:27:51> [GeoRaster] 0  oracle.spatial.georaster.JGeoRaster.getColorModel(JGeoRaster.java:1276)
    DEBUG <10:27:51> [GeoRaster] 1  oracle.spatial.georaster.JGeoRaster.getRasterImage(JGeoRaster.java:2568)
    DEBUG <10:27:51> [GeoRaster] 2  com.espatial.ps.georaster.GeoRaster.getRenderedImage(GeoRaster.java:736)
    DEBUG <10:27:51> [GeoRaster] 3  com.espatial.ps.utilities.TemplateApplicationHelper.testExport(TemplateApplicationHelper.java:294)
    DEBUG <10:27:51> [GeoRaster] 4  com.espatial.ps.utilities.TemplateApplicationHelper.main(TemplateApplicationHelper.java:130)If I query the georaster I get this ...
    ORCL10GR:SQL> SELECT georaster FROM intermap_iscsi.CORE_DTM g WHERE g.georaster.RASTERDATATABLE = 'CORE_DTM_RDT_01' AND g.georid = 101;
    GEORASTER(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES), RASTERDATATABLE, RASTERID, METADATA)
    SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-114.87502, 35.0000208, -114.87502, 34.93
    75, -114.87502, 34.8749792, -114.8125, 34.8749792, -114.74998, 34.8749792, -114.74998, 34.9375, -114.74998, 35.0000208, -114.8125, 35.0000208, -1
    14.87502, 35.0000208)), 'CORE_DTM_RDT_01', 101, XMLTYPE(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
      <objectI))I'm running my java program with JDK 1.5.0_11 so that error about needing 1.4.1 or higher is odd. Is it to do with the Oracle instance needing that JDK? Anyone got any ideas?
    John.

    Looks like the code is explicitly checking for a specific version of Java without doing a greater than check, you'll have to trick the API
    Before you call the JGeoRaster Method, call:
    String temp = System.getProperty("java.specification.version");
    System.setProperty( "java.specification.version", "1.4.1" );
    the after call:
    System.setProperty("java.specification.version", temp);
    Alternatively, the JGeoRaster library that comes with 11g has a fix for this issue.

  • Mainframe problem - java -version output : Error: unable to allocate

    Hi,
    I am calling "java -version" command from my java program. my program is executing well but when it comes to execute this command using Java Runtime it giving following error.
    java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
    JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
    Could not create the Java virtual machine.
    and pogram continue executing.
    is any body have idea why it is behaving like this and wht needs to be done.
    this program i am writing for IBM mainframe machine.

    java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
    JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
    Could not create the Java virtual machine.As a guess
    1. Environment is messed up
    2. Install of java is messed up.
    You might look for command line options that allow you to change the heap size. Try making it smaller.
    You might also want to verify that the 'java' you are running is actually the binary that you think it is, versus a script/link to someplace weird.

  • Windows 7 Command Prompt Message Errors (cmd.exe)

    Opening a command prompt in Windows 7 and running any command results in error messages such as the ones below (in this case a dir command):
    01/28/2010  09:06 AM    The system cannot find message text for message number 0x2373 in the message file for Application.
                                           Windows
          The system cannot find message text for message number 0x2378 in the message file for Application.
          The system cannot find message text for message number 0x2379 in the message file for Application.
    For other commands it references "System" rather than "Application" in the error message.  I've seen other posts online describing the same behavior linked to the copies of Win7 distributed at the Gartner Symposium in October as part of the general availability announcement (this is where I got my copy). 
    Any help or suggestions would be appreciated.

    Explorer has never really been able to accept drag-dropped files from multiple users very well, i.e., dragging a file from a window from a user-opened folder into an admin-opened folder.  It can be done though with a hack.  What I have been able
    to do in the past, as a workaround, is hot-login.  Hot-login is as opposed to warm-login in which is logging off Explorer and logging back in as a different user, or cold-login which is rebooting the system.  It is considered a hack by most Microsoft
    professionals though is useful.
    To hot-login, then, while logged in as a user use the Task Manager to stop the "explorer.exe" process.  This will close all Explorer windows and cause your taskbar and you desktop icons to disappear, but you will still have other applications running,
    such as your Cmd windows.  Note that due to the user's credentials on that machine, you may need to do this using PsKill (part of PsTools, now a Microsoft Product), using the admin Cmd window itself.  After doing that, immediately run explorer.exe
    from the admin Cmd window before Explorer has a chance to rerun itself (usually several seconds, though it might never come back by itself).
    Doing that should now load the taskbar and desktop back, and they may look different if you previously had them customized.  This is because Explorer is now running as admin, as if you had logged into Windows as the admin account.  But, part of
    the OS is also still running as the user, such as the server and workstation services, so you may, perhaps, be able to drag-drop files between users interchangeably, at that point.  In the least, running Explorer as admin has its enough advantages, in
    some roles (like server administration), to be useful in and of itself.
    This all may of course change after enough updates to Windows security.
    Oh -- to access the user-specific desktop icons which are now gone from the actual desktop, find its icons in the respective subfolder in the \Users\ folder on the system drive and use them from there.  It should in a \Desktop\ folder right in the respective
    user folder.  User-specific Quick Launch icons from the taskbar are probably in AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\, from the respective user folder. 
    Now again, this is a hack that I'd use as an Active Directory administrator.  It is only needed once per Windows session, usually in conjunction with an AD admin account I had, as logged in and running Cmd via RunAs.  Local administrator accounts
    function the same way with this process.  I don't expect Microsoft to officially endorse this process, so consider it from one power user to the next as the need arises.

  • Java - version does not return the version??

    Hi,
    The following is from a cmd window
    C:\Program Files\JavaSoft\JRE\1.2\bin>java -version
    C:\Program Files\JavaSoft\JRE\1.2\bin>
    It seems to be missing the expected:
    java version "1.2.2"
    Classic VM (build JDK-1.2.2_006, native threads, symcjit)
    Another side effect is that any application using java to launch creates a java process (briefly observed through task manager) and then dies almost instantly.
    The machine is a Win2000 Server running JRE 1.2.2_006, I've tried uninstalling, re-installing, rebooting (between unistalling and reinstalling), setting the path and classpath variables to nothing and running from the folder.
    Anyone seens this before? know what the resolution is?
    Thanks
    Dave

    Thanks for the response, I've already tried that with no success.
    It appears that it might be related to the fact that it's installed on a VMWare machine.
    The java -version command works fine on the VMWare machine when the VM is running on the host machine that it was built on, however when the VMWare machine was moved to a new host it seems that when you run the java interpreter it launches and then just dies??
    I still don't have an answer for why the Java -version does not work.
    As I said before I have uninstalled and reinstalled JRE 1.2.2 a couple of times with no success, however a workaround appears to be to install the JRE 1.3.1.
    After installing JRE 1.3.1 the java -version command works, fortunately the java applications I am using 'seem' to be compatible (with a few modifications to path variables etc) with the 1.3.1 version�.
    Thanks
    Dave

  • Set java version

    I am into development of a J2EE project, where jdk version is 1.4.2_04 in Win XP environment.
    My JAVA_HOME, classpath, Path variables point to this version.
    Then for testing purpose I installed JDK 1.6.0_11 in a different drive. Now my java -version command shows 1.6.0_11, although the JAVA_HOME, classpath, Path variables point to the older version. I want to go back to the previous jdk for my work. Also I want to do some testing in the new java version. My idea before installing the JDK 1.6.0_11 was that I will toggle between the versions by changing the values of environment variables. But since they point to the older jdk I am lost. Please help me.

    The 6u11 JRE install updated the Registry and java/javaw/javaws files in the windows\system32 directory. Since that directory is listed first in the classpath, the 6u11 version became the default.
    If you don't need the 6u11 JRE, you can uninstall it, which should restore what you previously had - a JDK (as opposed to a JRE) only installs the one JDK directory, no other changes are made.
    You should be able to execute a desired java.exe version by using the full path for the java.exe file on the commandline. Java doesn't use any form of java_home.

  • Sun Java Plug-in - Java Version

    Hi. We are using the Sun Java Plug-in configuration and I've noticed that when first-time user click on my URL that Forms is requiring that they download Java v. 1.4. How is this controlled? What if I want user to be using a different version like v. 1.6? Can I control this?
    Also, how is Forms finding that v. 1.4 is installed on my user's computers after they complete the installation of v. 1.4? From DOS, if I issue the 'java -version' command it still returns their previous version?
    Thanks in advance.

    Sun's plug-in is the future. Oracle made JInitiator because at the time we needed to release Forms for the web, Sun's plugin was not up to par. It now is very much so. There are two major versions after 1.4 so you should look into using 1.6 of the plug-in.
    JInitiator is not going to be supported with upcoming Forms v11. You will need to go to Sun's plug-in if you upgrade. Version 10.1.2 will be supported for 18 months after 11 comes out so you need to upgrade the Java plug-in within roughly 2 years anyway. The upgrade from Client/Server can be somewhat time consuming if you have client/server only functionality (see the Forms Upgrade Center for resources: http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html). The upgrade from 10.1.2 to 11 should just entail a recompile of the FMB filies.

  • ERROR: Invalid java version found: while runing Autoconfig

    Hi
    while upgrading EBS 12.1.3 Database from 11.1.0.7 to 11.2.0.2
    We got the below error on autoconfig.
    F:\app\mocppd\product\11.2.0\dbhome_1\appsutil>F:\app\mocppd\product\11.2.0\dbho
    me_1\appsutil\bin\adconfig.cmd contextfile=prod_srv-moc.xml
    Enter the APPS user password: apps
    cygwin warning:
      MS-DOS style path detected: F:\app\mocppd\product\11.2.0\dbhome_1\appsutil\bin
    \adconfig.pl
      Preferred POSIX equivalent is: /cygdrive/f/app/mocppd/product/11.2.0/dbhome_1/
    appsutil/bin/adconfig.pl
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    The log file for this session is located at: F:\app\mocppd\product\11.2.0\dbhome
    _1/appsutil/log/prod_srv-moc/02040321/adconfig.log
    AutoConfig is configuring the Database environment...
    AutoConfig will consider the custom templates if present.
            Using ORACLE_HOME location : F:\app\mocppd\product\11.2.0\dbhome_1
    ERROR: Invalid java version found:
            sh: F:appmocppdproduct11.2.0dbhome_1jdkjre/bin/java: No such file or dir
    ectory
    ERROR: Invalid java version found:
            sh: F:appmocppdproduct11.2.0dbhome_1jdkjre/bin/java: No such file or dir
    ectory
            Classpath                   :
    sh: - : invalid option
    Usage:  sh [GNU long option] [option] ...
            sh [GNU long option] [option] script-file ...
    GNU long options:
            --debug
            --debugger
            --dump-po-strings
            --dump-strings
            --help
            --init-file
            --login
            --noediting
            --noprofile
            --norc
            --posix
            --protected
            --rcfile
            --restricted
            --verbose
            --version
            --wordexp
    Shell options:
            -irsD or -c command or -O shopt_option          (invocation only)
            -abefhkmnptuvxBCHP or -o option
    Version Conflicts among development maintained and customized templates encounte
    red; aborting AutoConfig run.
    The logfile for this session is located at: F:\app\mocppd\product\11.2.0\dbhome_
    1/appsutil/log/prod_srv-moc/02040321/adconfig.logThanks
    Nawneet

    Hi Helios,
    I have changed the prod_srv-moc.xml script and executed the script.
    And now i got the below error.
    F:\app\mocppd\product\11.2.0\dbhome_1\appsutil>F:\app\mocppd\product\11.2.0\dbho
    me_1\appsutil\bin\adconfig.cmd contextfile=prod_srv-moc.xml
    Enter the APPS user password: apps
    cygwin warning:
    MS-DOS style path detected: F:\app\mocppd\product\11.2.0\dbhome_1\appsutil\bin
    \adconfig.pl
    Preferred POSIX equivalent is: /cygdrive/f/app/mocppd/product/11.2.0/dbhome_1/
    appsutil/bin/adconfig.pl
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    The log file for this session is located at: F:/app/mocppd/product/11.2.0/dbhome
    _1/appsutil/log/prod_srv-moc/02040605/adconfig.log
    AutoConfig is configuring the Database environment...
    AutoConfig will consider the custom templates if present.
    Using ORACLE_HOME location : F:/app/mocppd/product/11.2.0/dbhome_1
    Classpath : :F:/app/mocppd/product/11.2.0/dbhome_1/jdb
    c/lib/ojdbc6.jar:F:/app/mocppd/product/11.2.0/dbhome_1/appsutil/java/xmlparserv2
    .jar:F:/app/mocppd/product/11.2.0/dbhome_1/appsutil/java:F:/app/mocppd/product/1
    1.2.0/dbhome_1/jlib/netcfg.jar:F:/app/mocppd/product/11.2.0/dbhome_1/jlib/ldapjc
    lnt11.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/ad/tools/
    configuration/VersionConflictListGenerator
    Caused by: java.lang.ClassNotFoundException: oracle.apps.ad.tools.configuration.
    VersionConflictListGenerator
    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)
    Could not find the main class: oracle.apps.ad.tools.configuration.VersionConflic
    tListGenerator. Program will exit.
    ERROR: Version Conflicts utility failed.
    Terminate.
    The logfile for this session is located at: F:/app/mocppd/product/11.2.0/dbhome_
    1/appsutil/log/prod_srv-moc/02040605/adconfig.log
    Thanks
    Nawneet

  • "java -version" fails in Solaris 5.9 with relocation error

    Hi all,
    Appologies for the Java 'newbie-ness' of this query from the outset... But here goes. My current configuration is ...
    SunOS 5.9 Generic_112233-11 sun4u sparc SUNW,UltraAX-i2
    and I'm trying to run with Java 2 SDK, Standard Edition Version 1.4.1
    As far as I know, local support has fed me with the required patches to get me up and running so as I can use 'jar' to upgrade a jarfile. But if I try to do this (or even just try "java -version"), I just get...
    Error: failed /usr/j2se/jre/lib/sparc/client/libjvm.so, because ld.so.1: java: fatal: relocation error: file /usr/j2se/jre/lib/sparc/client/libjvm.so: symbol __1cG__CrunSregister_exit_code6FpG_v_v_: referenced symbol not found
    I can only find this bug (?) referencing Solaris 5.7 at most recent. Am I missing something obvious?
    I've got...
    setenv JAVA_HOME /usr/j2se
    setenv LD_LIBRARY_PATH $JAVA_HOME/jre/lib/sparc/server:$JAVA_HOME/jre/lib/sparc
    Are the solaris 7 patches not necessarilly in the patch bundle I've had stuffed on here...?

    It looks like that the likely cause of this error is some failed library dependancy. You can manually check if all libraries libjvm.so depends on are actually present on the system by running the following commands:
    $ cd /usr/j2se/jre/lib/sparc/client/
    $ ldd libjvm.so
    The output of the ldd command should look something like the following with possible slight deviations:
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libw.so.1 => /usr/lib/libw.so.1
    libc.so.1 => /usr/lib/libc.so.1
    librt.so.1 => /usr/lib/librt.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    libaio.so.1 => /usr/lib/libaio.so.1
    libmd5.so.1 => /usr/lib/libmd5.so.1
    /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
    /usr/platform/SUNW,Ultra-60/lib/libmd5_psr.so.1
    Check if all library path's are actually present on the system, otherwise you will need to satisfy the missing dependencies.

  • Installation Error 1350 for java version 1.5 and 1.4 which i have tried

    i tried to install the latest java ie 1.5.0_04 or matter of fact other java versions also but the Installation of java is stopped by the Error code : 1335. following up with the Internal Error code : 2350.
    My system configuration is PIV 2.4 Ghz HT enabled. Intel 865GBF motherboard. 512Mb DDR ram. The problem is coming in the Data1.Cab.
    I even tried online installation. Eventually J2RE latest edition has installed from Java.com update. But the JDK 1.5 has the same problem even while downloading it from the Server online.
    Plz help me out in installing java in my computer. Its urgent for my project work.
    Email:[email protected]

    I also had problems when trying to install 1.5.0. I must have downloaded the offline installation file at least a dozen times and always got the 1335 error. I tried just about all the "recommended solutions", but none of them worked for me. I downloaded the file through WellGet, Firefox, and Internet Explorer. The installation file downloaded through WellGet and Firefox had identical results (error at the same point in the installation "timeline", but the file downloaded through Internet Explorer errored at bit later, which seemed weird, but I guess different software runs differently (obviously!)...
    During my lunchbreak at work, I downloaded the offline installation file (through Internet Explorer--my only option at work) and tried to install it when I got home. At first it seemed like it was going to work, as it didn't immediately pop up and say the Data1.cab was corrupted. However, at the end of the installation, I got a 1722 error, so I was disappointed.
    Then I decided to try something that people always recommend, but I never do--disabling everything possible when installing something. I rebooted, disabled everything I could in my Systray (anything that had an Exit option in the menu--I didn't go wild and stop everything in Task Manager though...), and lo and behold, the installation went through the SDK, started installing the JRE, and I held my breath, hoping I didn't get a 1722 at the end. No 1722. It finally installed! Yay!
    My theory is that either my firewall, anti-virus, or anti-spyware programs were messing up the downloading of the installation file. My workplace only has anti-virus and a hardware firewall. The fact that one download had a 1335 error and the other did not supports this theory. Or that maybe the file got corrupted by chance, but what are the odds I'd get a dozen corrupts in a dozen attempts? If one blames the source file at Sun as being corrupt, then no one would ever be able to install 1.5...
    Another strong theory is that I needed to shut off all programs before installing. I'm not going to risk uninstalling my good install to test out that theory on my "corrupted" installation file, though... This could explain a dozen corrupts in a dozen attempts. If so, the file is not corrupt, but something is amiss in the OS environment.
    It's feasible that someone could be stuck in a rut trying to download the same file through the same "pipeline" (firewall, anti-virus, anti-spyware) or stubbornly trying to bulldoze through an installation with their RAM chock full of unnecessary programs. It's too easy to just say "their" file is corrupt or Windows Installer is busted--I too was thinking along those lines...
    Anyway, if you consistently get a 1335 error (or maybe other kinds of errors), try shutting down all non-essential programs in the Systray (and maybe in the Startup and Task Manager--although that wasn't necessary for me). If that doesn't work, download the installation file from another computer/source or get ahold of an installation file that has proven to work. These two options are possibly the easiest to try. If they don't work, then one'd have resort to the more esoteric fix-its...
    On a side note, it was a bit scary having to shut off my firewall and anti-virus... I hope nothing got through in the two minutes they were down--I should have turned off my DSL modem...oh well.
    Now, I have to test out my 1.5 install to see if it is really okay. If it's not, I'll post back and complain...haha

  • Unable to execute java version of ojc, error string C:\jdk\jdev\bin\ojcw

    I Can't deploy EJB to WebLogic Server 6.1.
    I get error:
    Checking weblogic-ejb-jar.xml for completeness...
    Wrote EJB .jar file to C:\java\webservices\weather\ejb1.jar
    Generating WebLogic EJB container classes...
    C:\jdk\jdk\jre\bin\javaw.exe -classpath C:\jdk\jdev\lib\ext\weblogic.jar;C:\jdk\jdk\jre\lib\rt.jar;C:\jdk\jdk\jre\lib\i18n.jar;C:\jdk\jdk\jre\lib\sunrsasign.jar;C:\jdk\jdk\jre\lib\jsse.jar;C:\jdk\jdk\jre\lib\jce.jar;C:\jdk\jdk\jre\lib\charsets.jar;C:\jdk\jdk\jre\classes;C:\jdk\jdev\lib\ojc.jar;C:\jdk\jdev\lib\jdev-rt.jar;C:\jdk\jdk\jre\lib\ext\activation.jar;C:\jdk\jdk\jre\lib\ext\jcert.jar;C:\jdk\jdk\jre\lib\ext\jndi.jar;C:\jdk\jdk\jre\lib\ext\jnet.jar;C:\jdk\jdk\jre\lib\ext\jta.jar;C:\jdk\jdk\jre\lib\ext\mail.jar;C:\jdk\j2ee\home\ejb.jar;C:\jdk\j2ee\home\jaxp.jar;C:\jdk\j2ee\home\jdbc.jar;C:\jdk\j2ee\home\jaas.jar;C:\jdk\j2ee\home\jsse.jar weblogic.ejbc -compiler C:\jdk\jdev\bin\ojcw.exe -classpath C:\jdk\jdev\lib\ext\weblogic.jar;C:\jdk\jdk\jre\lib\rt.jar;C:\jdk\jdk\jre\lib\i18n.jar;C:\jdk\jdk\jre\lib\sunrsasign.jar;C:\jdk\jdk\jre\lib\jsse.jar;C:\jdk\jdk\jre\lib\jce.jar;C:\jdk\jdk\jre\lib\charsets.jar;C:\jdk\jdk\jre\classes;C:\jdk\jdev\lib\ojc.jar;C:\jdk\jdev\lib\jdev-rt.jar;C:\jdk\jdk\jre\lib\ext\activation.jar;C:\jdk\jdk\jre\lib\ext\jcert.jar;C:\jdk\jdk\jre\lib\ext\jndi.jar;C:\jdk\jdk\jre\lib\ext\jnet.jar;C:\jdk\jdk\jre\lib\ext\jta.jar;C:\jdk\jdk\jre\lib\ext\mail.jar;C:\jdk\j2ee\home\ejb.jar;C:\jdk\j2ee\home\jaxp.jar;C:\jdk\j2ee\home\jdbc.jar;C:\jdk\j2ee\home\jaas.jar;C:\jdk\j2ee\home\jsse.jar C:\java\webservices\weather\ejb1.jar C:\DOCUME~1\jakubowg\USTAWI~1\Temp\wlejb61185.jar
    fatal error: unable to execute java version of ojc, error string <C:\jdk\jdev\bin\ojcw.exe>
    Exec failed .. exiting
    **** weblogic.ejbc returned with a non-zero exit status:
    #### Deployment incomplete. #### 2002-06-27 11:19:29
    Does anyone give me some advices?
    Grzegorz

    try to compile your programm from command prompt
    change dir to hello.java directory
    to compile programm type:
    javac hello.java
    if it will compile successfully run it by typing
    java hello
    if it will not be helpfull uninstall JDK 1.4 and instal JDK again. I'd recomend JDK 1.5.

  • Error While Installing Netweaver SP16(ABAP+JAVA Version)

    Hi everyone,
    I am trying to install the Netweaver SP16 but in vain. I am struck at the 11thphase(DataBase instance Creation) I had installed the J2sdk correct version which is requried. I tried five times but could not succeed.
    Does anyone had face this problem, please let me know if you had any suggestions to overcome the installation problem.
    Your Feedback is appreciated.
    Regards
    Ram

    Hi,
    I could solve the problem. Its because of the port number. Below line help me to solve the problem
    The file C:\WINNT\system32\drivers\etc\services (Windows 2000) or C:\Windows\system32\drivers\etc\services (Windows XP) must not include an entry for the ports 3601, 3201 and 50000 to 50030. A possible entry can be excluded by using the hash symbol (#).
    I am right now Having one more problem
    Now it is (i think 17th step)
    Log says
    ERROR 2006-04-22 15:11:30
    CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
    ERROR 2006-04-22 15:11:30
    FCO-00011  The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|10|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
    Can some one tell me what is the problem
    regards
    ram

  • After upgrade java version - Error occurred during initialization of VM

    Hi,
    I have upgraded the java version to 6 in apps tier of my 12.0.4 ebs running on OEL 5.
    I followed below steps for this.
    Download Latest JDK 6.0 Update
    Stop All Application Tier Services
    Replace JDK Home Used With Oracle E-Business Suite Release 12
    $ cd [IAS_ORACLE_HOME]/appsutil
    $ mv jdk jdk_old
    $ mv jdk1.6.0_15 jdk
    After that when i tried to do any thin starting the services, autoconfig it gives me below error.
    $ADJVAPRG -version
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    Do i need to update any values in XML file?
    Please help.
    Thanks,
    Kavitha

    I have upgraded the java version to 6 in apps tier of my 12.0.4 ebs running on OEL 5.
    I followed below steps for this.
    Download Latest JDK 6.0 Update
    Stop All Application Tier Services
    Replace JDK Home Used With Oracle E-Business Suite Release 12
    $ cd [IAS_ORACLE_HOME]/appsutil
    $ mv jdk jdk_old
    $ mv jdk1.6.0_15 jdkDid you complete all the steps in (Using Latest Java 6.0 Update With Oracle E-Business Suite Release 12 [ID 455492.1])?
    After that when i tried to do any thin starting the services, autoconfig it gives me below error.
    $ADJVAPRG -version
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    Do i need to update any values in XML file?
    Please help.What does "echo $ADJVAPRG" return? Make sure it is set in the context file correctly and run AutoConfig then.
    Please see "Step 5.2: Verify Configurations On All Application Tier Nodes" section in (Using Latest Java 6.0 Update With Oracle E-Business Suite Release 12 [ID 455492.1]).
    Thanks,
    Hussein

  • Java Mapping - Class versions are incompatible (linkage error)

    Hi Friends,
        While testing java mapping in Integration Repository i am getting an error - "Class versions are incompatible (linkage error)". Can anyone plz tell what might be the reason.
    Regards,
    Gowtham Kuchipudi.

    hello
    I have this message but my trace look like this:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <Trace level="1" type="B" name="interface activity determination">
      <Trace level="1" type="T">Version 000</Trace>
      <Trace level="1" type="T">Message status 000</Trace>
      <Trace level="1" type="T">Interface action INIT</Trace>
      <Trace level="1" type="T">(must be INIT for a new determination)</Trace>
      <Trace level="1" type="T">Message type BEST EFFORT. -> No determination</Trace>
      <Trace level="1" type="T">Set interface action INIT into *MAST*</Trace>
      </Trace>
      <Trace level="1" type="E">CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST</Trace>
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV">
      <Trace level="1" type="T">number of receivers: 1</Trace>
      <Trace level="1" type="T">Single-receiver split case</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
    - <!--  ************************************
      -->
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Interface Mapping http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService ProposalDeatailsService_WS2RFC_IM</Trace>
      <Trace level="1" type="T">LinkageError at JavaMapping.load(): Could not load class: xmlpayload</Trace>
      <Trace level="1" type="T">java.lang.UnsupportedClassVersionError: xmlpayload (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at com.sap.aii.ibrun.server.mapping.MappingLoader.findClass(MappingLoader.java:158) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:95) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
      <Trace level="1" type="T">Linkage error occurred when loading class xmlpayload (http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService, d7e31f30-53be-11dc-8fbd-ee09c0a8664d, -1)</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Linkage error occurred when loading class xmlpayload (http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService, d7e31f30-53be-11dc-8fbd-ee09c0a8664d, -1) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:115) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Root Cause: java.lang.UnsupportedClassVersionError: xmlpayload (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at com.sap.aii.ibrun.server.mapping.MappingLoader.findClass(MappingLoader.java:158) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:95) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      </SAP:Trace>
    the error that I recieve in the SXMB is:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">LINKAGE_ERROR</SAP:Code>
      <SAP:P1>xmlpayload</SAP:P1>
      <SAP:P2>http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsS~</SAP:P2>
      <SAP:P3>d7e31f30-53be-11dc-8fbd-ee09c0a8664d</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Class versions are incompatible (linkage error)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    this is my XI information
    Runtime Environment
    Java version:1.4.2_12
    Java vendor:Sun Microsystems Inc.
    Version
    Service pack:21
    Release:30_VAL_REL
    Latest change:409678
    Sync time:200709211024
    since I already have the SP required by the note, any other suggestions?
    Thanks
    Kfir

  • Patching Web AS Java, upgrading SDM results in version conflict

    Hi,
    We are currently patching Web AS Java for our XI 3.0 system which is based on Netweaver 2004 system. Since patching Java with this Netweaver version is implemented through SDM only, unlike for Netweaver 2004s which uses JSPM, we are having problems while upgrading SDM which is a requirement for patching web AS Java. Please see the error below:
    SpecVersion of new SDM is older than installed SDM:(location of SDM)
    SDM terminated with errors: Exit code: 4
    What is the best thing do with this? Shall we continue upgrading using our SDM version? Or shall we have to find another SDM version. Also, how can we determine the patch level of SDM?
    Thanks and God Bless!
    Regards,
    Jennah

    got to you java home page:
    http://system.fqdn:5<SYSNO>00/index.html
    Goto system information.
    Select all components:
    search for SDM;
    sap.com  tc_SL_SDM_Client  null (7.0010.20061019070020.0000)  SAP AG  SAP AG  20070505222412  null/null 
    sap.com  tc_SL_SDM_Util  null (7.0010.20061019070020.0000)  SAP AG  SAP AG  20070505222418  null/null
    http://help.sap.com/saphelp_nw04/helpdata/en/76/fb72ec091f4bf8a2d8ba321bb7e8d9/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/22/a7663bb3808c1fe10000000a114084/frameset.htm

Maybe you are looking for

  • Message in BPM

    Hello everyone, I have two diff  interfaces both are outbound Interfaces to which there is common i/P IDOC , Both the interfaces are using BPM. When we trigger an IDOC from background SAP system , Interface 1 completes successfully . But The iNterfac

  • Is oracle database 10.2.0.4 be used in oracle applications 12.1.3

    We are palnning to upgrade from our current applications version 12.0.4 to 12.1.3 We understand it will done in 2 phases ie 12.0.4 - 12.1.1 and 12.1.1 to 12.1.3 but our current database version is 10.2.0.4 My question here is can we upgrade applicati

  • Cashflow reporting based on TB as per IFRS

    Hello, I have a client who recently migrated from SAP Business one 8.81 to 9.0 PL8. They have been using the cash flow selection criteria to create a cash flow statement based on the Chart of Accounts and then make manual adjustment to fit  IFRS repo

  • Returning User Password in Java code for custom reports

    Hi I'm doing a custom report and for the life of me I can't seem to find the password field in the database. :( Anyways I'm thinking maybe I can use java code to return the password and then using the decrypt password function. Could someone please s

  • What is the best way to view FLV files?

    I remember installing a plug-in for QuickTime that would allow FLV movies to be viewed. (How do you know what plug-ins you have anyway?) With QuickTime, the longer the FLV movie is, the more the audio and video go out of sync. Any opinions on standal