JVM crashes when calling matlab in stand alone run app.

Discussion in 'Java' started by stacey, Nov 29, 2008.

  1. stacey

    stacey Guest

    Hello everyone,

    I am kinda new in Java and i have the following problem
    My app used to work in stand alone pretty good. Then i didnt touch it
    for a while..in the meatime java 1.6 updates where installed in my pc
    and i kept uninstalling them cause Matlab apps in java(created from
    the javabuilder) require jvm 1.5. Usually when this happened i was re-
    installing 1.5 and everything worked. But now after almost a year, i
    re-opened the app and i cant call a matlab module when running as a
    stand alone app.
    When running from inside netbeans, everything works well.

    I created the app in netbeans 5.5, but i just installed netbeans 6.5
    with jdk 1.5.
    This thing occurs in both versions of netbeans.

    Any ideas??

    Best regards,

    Stacey

    When running as stand alone i get a JVM error: (just a part of it. if
    someone requires its i ll post it fulll)

    An unexpected error has been detected by HotSpot Virtual Machine:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x794473ba, pid=8960,
    tid=8980
    #
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_16-b02 mixed mode,
    sharing)
    # Problematic frame:
    # C [mcr.dll+0x173ba]
    #

    --------------- T H R E A D ---------------

    Current thread (0x0036f9a8): JavaThread "Finalizer" daemon
    [_thread_in_native, id=8980]

    siginfo: ExceptionCode=0xc0000005, reading address 0x00000008
    .....
    .....
    Stack: [0x02b10000,0x02b50000), sp=0x02b4f730, free space=253k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
    C=native code)
    C [mcr.dll+0x173ba]
    C [mclmcrrt75.dll+0x86c7]
    C [nativemcl75.dll+0x43870]
    j com.mathworks.toolbox.javabuilder.MWMCR._mclTerminateInstance(Lcom/
    mathworks/toolbox/javabuilder/NativePtr;)Z+0
    j com.mathworks.toolbox.javabuilder.MWMCR.access$200(Lcom/mathworks/
    toolbox/javabuilder/NativePtr;)Z+1
    j com.mathworks.toolbox.javabuilder.MWMCR$4.run()Ljava/lang/Object;+8
    j
    com.mathworks.toolbox.javabuilder.MCRThreadUtilities.runWhilePumpingEventQueue
    (Lcom/mathworks/toolbox/javabuilder/Task;)Ljava/lang/Object;+12
    j com.mathworks.toolbox.javabuilder.MWMCR.mclTerminateInstance(Lcom/
    mathworks/toolbox/javabuilder/NativePtr;)Z+8
    j com.mathworks.toolbox.javabuilder.MWMCR.dispose()V+8
    j MatlabFunctions.MatlabFunctionsMCR.dispose()V+1
    j com.mathworks.toolbox.javabuilder.MWMCR.finalize()V+1
    ...
    ....
    --------------- S Y S T E M ---------------

    OS: Windows XP Build 2600 Service Pack 3

    CPU:total 2 (cores per cpu 2, threads per core 1) family 15 model 107
    stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnowext,
    3dnow

    Memory: 4k page, physical 2031084k(885912k free), swap 3348708k
    (2253128k free)

    vm_info: Java HotSpot(TM) Client VM (1.5.0_16-b02) for windows-x86,
    built on May 28 2008 01:04:49 by "java_re" with MS VC++ 6.0
     
    stacey, Nov 29, 2008
    #1
    1. Advertising

  2. stacey

    timjowers Guest

    On Nov 29, 12:17 pm, stacey <> wrote:
    > Hello everyone,
    >
    > I am kinda new in Java and i have the following problem
    > My app used to work in stand alone pretty good. Then i didnt touch it
    > for a while..in the meatime java 1.6 updates where installed in my pc
    > and i kept uninstalling them cause Matlab apps in java(created from
    > the javabuilder) require jvm 1.5. Usually when this happened i was re-
    > installing 1.5 and everything worked. But now after almost a year, i
    > re-opened the app and i cant call a matlab module when running as a
    > stand alone app.
    > When running from inside netbeans, everything works well.
    >
    > I created the app in netbeans 5.5, but i just installed netbeans 6.5
    > with jdk 1.5.
    > This thing occurs in both versions of netbeans.
    >
    > Any ideas??
    >
    > Best regards,
    >
    > Stacey
    >
    > When running as stand alone i get a JVM error: (just a part of it. if
    > someone requires its i ll post it fulll)
    >
    > An unexpected error has been detected by HotSpot Virtual Machine:
    > #
    > #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x794473ba, pid=8960,
    > tid=8980
    > #
    > # Java VM: Java HotSpot(TM) Client VM (1.5.0_16-b02 mixed mode,
    > sharing)
    > # Problematic frame:
    > # C  [mcr.dll+0x173ba]
    > #
    >
    > ---------------  T H R E A D  ---------------
    >
    > Current thread (0x0036f9a8):  JavaThread "Finalizer" daemon
    > [_thread_in_native, id=8980]
    >
    > siginfo: ExceptionCode=0xc0000005, reading address 0x00000008
    > ....
    > ....
    > Stack: [0x02b10000,0x02b50000),  sp=0x02b4f730,  free space=253k
    > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
    > C=native code)
    > C  [mcr.dll+0x173ba]
    > C  [mclmcrrt75.dll+0x86c7]
    > C  [nativemcl75.dll+0x43870]
    > j  com.mathworks.toolbox.javabuilder.MWMCR._mclTerminateInstance(Lcom/
    > mathworks/toolbox/javabuilder/NativePtr;)Z+0
    > j  com.mathworks.toolbox.javabuilder.MWMCR.access$200(Lcom/mathworks/
    > toolbox/javabuilder/NativePtr;)Z+1
    > j  com.mathworks.toolbox.javabuilder.MWMCR$4.run()Ljava/lang/Object;+8
    > j
    > com.mathworks.toolbox.javabuilder.MCRThreadUtilities.runWhilePumpingEventQueue
    > (Lcom/mathworks/toolbox/javabuilder/Task;)Ljava/lang/Object;+12
    > j  com.mathworks.toolbox.javabuilder.MWMCR.mclTerminateInstance(Lcom/
    > mathworks/toolbox/javabuilder/NativePtr;)Z+8
    > j  com.mathworks.toolbox.javabuilder.MWMCR.dispose()V+8
    > j  MatlabFunctions.MatlabFunctionsMCR.dispose()V+1
    > j  com.mathworks.toolbox.javabuilder.MWMCR.finalize()V+1
    > ..
    > ...
    > ---------------  S Y S T E M  ---------------
    >
    > OS: Windows XP Build 2600 Service Pack 3
    >
    > CPU:total 2 (cores per cpu 2, threads per core 1) family 15 model 107
    > stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnowext,
    > 3dnow
    >
    > Memory: 4k page, physical 2031084k(885912k free), swap 3348708k
    > (2253128k free)
    >
    > vm_info: Java HotSpot(TM) Client VM (1.5.0_16-b02) for windows-x86,
    > built on May 28 2008 01:04:49 by "java_re" with MS VC++ 6.0



    stacey,

    if it works in netbeans and noit standalone then print out the
    System.getProperty() stuff like jvm.version or whatever it is. And
    classpath and maybe path from the environment. I'm sure you'll find
    you are running under two different setups of Java or associated DLL's.
     
    timjowers, Dec 2, 2008
    #2
    1. Advertising

  3. stacey

    stacey Guest

    Ok, i understood what you told me. I checked the version netbeans is
    using and its Jdk 1.5.0_10 and when i run is as standalone its
    1.5.0_16.

    I went to my control panel->java control panel-java tab-> java
    application runtime settings (JNPL) and i saw that there are 2 jdks
    enabled. So i disabled the 1.5.0_16 and it still acts like mentioned
    above.
    In that menu there is also a tab named system which says:
    platform 6.0, product 6.0, location java.sun.com/autodl/j2se , path
    C:program files/Java/jdk1.5.0_16/bin/javaw.exe . but its always
    enabled, and i cannot alter it.

    (sorry for the big post)
    When i run my app through netbeans (i inserted the System.getProperties
    ()) i get:

    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard
    Edition,sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_10\jre
    \bin,
    java.vm.version=1.5.0_10-b03,java.vm.vendor=Sun Microsystems Inc.,
    java.vendor.url=http://java.sun.com/, path.separator=;,
    java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io,
    user.country=US, sun.os.patch.level=Service Pack
    3,java.vm.specification.name=Java Virtual Machine Specification,
    user.dir=Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV,
    java.runtime.version=1.5.0_10-
    b03,mathworks.DisableSetLookAndFeel=true,
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment,
    java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_10\jre\lib\endorsed,
    os.arch=x86, java.io.tmpdir=C:\DOCUME~1\Stacey\LOCALS~1\Temp
    \,line.separator=, java.vm.specification.vendor=Sun Microsystems Inc.,
    user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252,
    java.library.path=C:\Program Files\Java\jdk1.5.0_10\bin;.;C:\WINDOWS
    \system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
    \system32\wbem;C:\Program Files\MATLAB\R2006b\bin;C:\Program Files
    \MATLAB\R2006b\bin\win32;C:\Xi6linx91i\bin\nt;C:\Program Files\Common
    Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\ProgramFiles
    \Bitvise Tunnelier;C:\RSoft\bin;C:\Program Files\Java
    \jdk1.5.0_10\bin;C:\Modeltech_xe_starter\win32xoem,
    java.specification.name=Java Platform API Specification,
    java.class.version=49.0,sun.management.compiler=HotSpot Client
    Compiler, os.version=5.1, user.home=C:\Documents and Settings
    \Stacey,user.timezone=Europe/Athens,
    java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252,
    java.specification.version=1.5, java.class.path=C:\Program Files\MATLAB
    \R2006b\toolbox\javabuilder\jar\javabuilder.jar;C:\Program Files
    \NetBeans 6.5\java2\modules\ext
    \AbsoluteLayout.jar;Q:Netbeans_6.5\ProtCV_02_12_2008\ProtCV
    \MatlabFunctions\distrib\MatlabFunctions.jar;C:\Program Files\NetBeans
    6.5\java2\modules\ext
    \beansbinding-1.2.1.jar;Q:Netbeans_6.5\ProtCV_02_12_2008\ProtCV\build
    \classes;Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\src;Q:
    \Netbeans_6.5\ProtCV_02_12_2008\ProtCV\MatlabFunctions\src
    \MatlabFunctions;Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\images,
    user.name=Stacey,
    java.vm.specification.version=1.0, java.home=C:\Program Files\Java
    \jdk1.5.0_10\jre, sun.arch.data.model=32, user.language=en,
    java.specification.vendor=Sun Microsystems Inc.,
    awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode,
    sharing, java.version=1.5.0_10, java.ext.dirs=C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\ext, sun.boot.class.path=C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib
    \i18n.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\sunrsasign.jar;C:
    \Program Files\Java\jdk1.5.0_10\jre\lib\jsse.jar;C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib
    \charsets.jar;C:\Program Files\Java\jdk1.5.0_10\jre\classes,
    java.vendor=Sun Microsystems Inc., file.separator=\,
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi,
    sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little,
    sun.desktop=windows, sun.cpu.isalist=}


    and when i run it in cmd:

    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition,
    sun.boot.library.path=C:\Program Files\Java\jre1.5.0_16\bin,
    java.vm.version=1.5.0_16-b02,
    java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://
    java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client
    VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD,
    user.country=US, sun.os.patch.level=Service Pack 3,
    java.vm.specification.name=Java Virtual Machine Specification,
    user.dir=Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\dist,
    java.runtime.version=1.5.0_16-b02,
    mathworks.DisableSetLookAndFeel=true,
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment,
    java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_16\lib\endorsed,
    os.arch=x86, java.io.tmpdir=C:\DOCUME~1\Stacey\LOCALS~1\Temp\,
    line.separator=, java.vm.specification.vendor=Sun Microsystems Inc.,
    user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252,
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:
    \WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:
    \Program Files\MATLAB\R2006b\bin;C:\Program Files\MATLAB\R2006b\bin
    \win32;C:\Xi6linx91i\bin\nt;C:\Program Files\Common Files\Adobe\AGL;C:
    \Program Files\QuickTime\QTSystem\;C:\Program Files\Bitvise
    Tunnelier;C:\RSoft\bin;C:\Program Files\Java\jdk1.5.0_10\bin;C:
    \Modeltech_xe_starter\win32xoem, java.specification.name=Java Platform
    API Specification, java.class.version=49.0,
    sun.management.compiler=HotSpot Client Compiler, os.version=5.1,
    user.home=C:\Documents and Settings\Stacey, user.timezone=,
    java.awt.printerjob=sun.awt.windows.WPrinterJob, file.enc
    oding=Cp1252, java.specification.version=1.5,
    java.class.path=ProtCV.jar, user.name=Stacey,
    java.vm.specification.version=1.0, java.home=C:\Program Files\Java
    \jre1.5.0_16, sun.arch.data.model=32, user.language=en,
    java.specification.vendor=Sun Microsystems Inc.,
    awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixedmode, sharing,
    java.version=1.5.0_16, java.ext.dirs=C:\Program Files\Java
    \jre1.5.0_16\lib\ext, sun.boot.class.path=C:\Program Files\Java
    \jre1.5.0_16\lib\rt.jar;C:\Program Files\Java\jre1.5.0_16\lib
    \i18n.jar;C:\Program Files\Java\jre1.5.0_16\lib\sunrsasign.jar;C:
    \Program Files\Java\jre1.5.0_16\lib\jsse.jar;C:\Program Files\Java
    \jre1.5.0_16\lib\jce.jar;C:\Program Files\Java\jre1.5.0_16\lib
    \charsets.jar;C:\Program Files\Java\jre1.5.0_16\classes,
    java.vendor=Sun Microsystems Inc., file.separator=\,
    java.vendor.url.bug=http://java.sun.com/cgi-bin/
    bugreport.cgi,sun.io.unicode.encoding=UnicodeLittle,
    sun.cpu.endian=little, sun.desktop=win
    dows, sun.cpu.isalist=}



    On Dec 2, 10:30 pm, timjowers <> wrote:

    >
    > > vm_info: Java HotSpot(TM) Client VM (1.5.0_16-b02) for windows-x86,
    > > built on May 28 2008 01:04:49 by "java_re" with MS VC++ 6.0

    >
    > stacey,
    >
    > if it works in netbeans and noit standalone then print out the
    > System.getProperty() stuff like jvm.version or whatever it is. And
    > classpath and maybe path from the environment. I'm sure you'll find
    > you are running under two different setups of Java or associated DLL's.
     
    stacey, Dec 3, 2008
    #3
  4. stacey

    stacey Guest

    Ok, i understood what you told me. I checked the version netbeans is
    using and its Jdk 1.5.0_10 and when i run is as standalone its
    1.5.0_16.

    I went to my control panel->java control panel-java tab-> java
    application runtime settings (JNPL) and i saw that there are 2 jdks
    enabled. So i disabled the 1.5.0_16 and it still acts like mentioned
    above.
    In that menu there is also a tab named system which says:
    platform 6.0, product 6.0, location java.sun.com/autodl/j2se , path
    C:program files/Java/jdk1.5.0_16/bin/javaw.exe . but its always
    enabled, and i cannot alter it.

    (sorry for the big post)
    When i run my app through netbeans (i inserted the System.getProperties
    ()) i get:

    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard
    Edition,sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_10\jre
    \bin,
    java.vm.version=1.5.0_10-b03,java.vm.vendor=Sun Microsystems Inc.,
    java.vendor.url=http://java.sun.com/, path.separator=;,
    java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io,
    user.country=US, sun.os.patch.level=Service Pack
    3,java.vm.specification.name=Java Virtual Machine Specification,
    user.dir=Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV,
    java.runtime.version=1.5.0_10-
    b03,mathworks.DisableSetLookAndFeel=true,
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment,
    java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_10\jre\lib\endorsed,
    os.arch=x86, java.io.tmpdir=C:\DOCUME~1\Stacey\LOCALS~1\Temp
    \,line.separator=, java.vm.specification.vendor=Sun Microsystems Inc.,
    user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252,
    java.library.path=C:\Program Files\Java\jdk1.5.0_10\bin;.;C:\WINDOWS
    \system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
    \system32\wbem;C:\Program Files\MATLAB\R2006b\bin;C:\Program Files
    \MATLAB\R2006b\bin\win32;C:\Xi6linx91i\bin\nt;C:\Program Files\Common
    Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\ProgramFiles
    \Bitvise Tunnelier;C:\RSoft\bin;C:\Program Files\Java
    \jdk1.5.0_10\bin;C:\Modeltech_xe_starter\win32xoem,
    java.specification.name=Java Platform API Specification,
    java.class.version=49.0,sun.management.compiler=HotSpot Client
    Compiler, os.version=5.1, user.home=C:\Documents and Settings
    \Stacey,user.timezone=Europe/Athens,
    java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252,
    java.specification.version=1.5, java.class.path=C:\Program Files\MATLAB
    \R2006b\toolbox\javabuilder\jar\javabuilder.jar;C:\Program Files
    \NetBeans 6.5\java2\modules\ext
    \AbsoluteLayout.jar;Q:Netbeans_6.5\ProtCV_02_12_2008\ProtCV
    \MatlabFunctions\distrib\MatlabFunctions.jar;C:\Program Files\NetBeans
    6.5\java2\modules\ext
    \beansbinding-1.2.1.jar;Q:Netbeans_6.5\ProtCV_02_12_2008\ProtCV\build
    \classes;Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\src;Q:
    \Netbeans_6.5\ProtCV_02_12_2008\ProtCV\MatlabFunctions\src
    \MatlabFunctions;Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\images,
    user.name=Stacey,
    java.vm.specification.version=1.0, java.home=C:\Program Files\Java
    \jdk1.5.0_10\jre, sun.arch.data.model=32, user.language=en,
    java.specification.vendor=Sun Microsystems Inc.,
    awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode,
    sharing, java.version=1.5.0_10, java.ext.dirs=C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\ext, sun.boot.class.path=C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib
    \i18n.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\sunrsasign.jar;C:
    \Program Files\Java\jdk1.5.0_10\jre\lib\jsse.jar;C:\Program Files\Java
    \jdk1.5.0_10\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib
    \charsets.jar;C:\Program Files\Java\jdk1.5.0_10\jre\classes,
    java.vendor=Sun Microsystems Inc., file.separator=\,
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi,
    sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little,
    sun.desktop=windows, sun.cpu.isalist=}


    and when i run it in cmd:

    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition,
    sun.boot.library.path=C:\Program Files\Java\jre1.5.0_16\bin,
    java.vm.version=1.5.0_16-b02,
    java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://
    java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client
    VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD,
    user.country=US, sun.os.patch.level=Service Pack 3,
    java.vm.specification.name=Java Virtual Machine Specification,
    user.dir=Q:\Netbeans_6.5\ProtCV_02_12_2008\ProtCV\dist,
    java.runtime.version=1.5.0_16-b02,
    mathworks.DisableSetLookAndFeel=true,
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment,
    java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_16\lib\endorsed,
    os.arch=x86, java.io.tmpdir=C:\DOCUME~1\Stacey\LOCALS~1\Temp\,
    line.separator=, java.vm.specification.vendor=Sun Microsystems Inc.,
    user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252,
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:
    \WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:
    \Program Files\MATLAB\R2006b\bin;C:\Program Files\MATLAB\R2006b\bin
    \win32;C:\Xi6linx91i\bin\nt;C:\Program Files\Common Files\Adobe\AGL;C:
    \Program Files\QuickTime\QTSystem\;C:\Program Files\Bitvise
    Tunnelier;C:\RSoft\bin;C:\Program Files\Java\jdk1.5.0_10\bin;C:
    \Modeltech_xe_starter\win32xoem, java.specification.name=Java Platform
    API Specification, java.class.version=49.0,
    sun.management.compiler=HotSpot Client Compiler, os.version=5.1,
    user.home=C:\Documents and Settings\Stacey, user.timezone=,
    java.awt.printerjob=sun.awt.windows.WPrinterJob, file.enc
    oding=Cp1252, java.specification.version=1.5,
    java.class.path=ProtCV.jar, user.name=Stacey,
    java.vm.specification.version=1.0, java.home=C:\Program Files\Java
    \jre1.5.0_16, sun.arch.data.model=32, user.language=en,
    java.specification.vendor=Sun Microsystems Inc.,
    awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixedmode, sharing,
    java.version=1.5.0_16, java.ext.dirs=C:\Program Files\Java
    \jre1.5.0_16\lib\ext, sun.boot.class.path=C:\Program Files\Java
    \jre1.5.0_16\lib\rt.jar;C:\Program Files\Java\jre1.5.0_16\lib
    \i18n.jar;C:\Program Files\Java\jre1.5.0_16\lib\sunrsasign.jar;C:
    \Program Files\Java\jre1.5.0_16\lib\jsse.jar;C:\Program Files\Java
    \jre1.5.0_16\lib\jce.jar;C:\Program Files\Java\jre1.5.0_16\lib
    \charsets.jar;C:\Program Files\Java\jre1.5.0_16\classes,
    java.vendor=Sun Microsystems Inc., file.separator=\,
    java.vendor.url.bug=http://java.sun.com/cgi-bin/
    bugreport.cgi,sun.io.unicode.encoding=UnicodeLittle,
    sun.cpu.endian=little, sun.desktop=win
    dows, sun.cpu.isalist=}



    On Dec 2, 10:30 pm, timjowers <> wrote:

    >
    > > vm_info: Java HotSpot(TM) Client VM (1.5.0_16-b02) for windows-x86,
    > > built on May 28 2008 01:04:49 by "java_re" with MS VC++ 6.0

    >
    > stacey,
    >
    > if it works in netbeans and noit standalone then print out the
    > System.getProperty() stuff like jvm.version or whatever it is. And
    > classpath and maybe path from the environment. I'm sure you'll find
    > you are running under two different setups of Java or associated DLL's.
     
    stacey, Dec 3, 2008
    #4
  5. stacey

    stacey Guest

    Thank you very much. Any help is appreciated. I am kind lost here.. :S
    I didnt think that two version of 1.5 can cause so much problem..
    since mathworks confirms that it works with jdk 1.5.

    Thanx again,

    Regards, Stacey
     
    stacey, Dec 3, 2008
    #5
  6. stacey

    Nigel Wade Guest

    stacey wrote:

    > Ok, i understood what you told me. I checked the version netbeans is
    > using and its Jdk 1.5.0_10 and when i run is as standalone its
    > 1.5.0_16.
    >
    > I went to my control panel->java control panel-java tab-> java
    > application runtime settings (JNPL) and i saw that there are 2 jdks
    > enabled. So i disabled the 1.5.0_16 and it still acts like mentioned
    > above.
    > In that menu there is also a tab named system which says:
    > platform 6.0, product 6.0, location java.sun.com/autodl/j2se , path
    > C:program files/Java/jdk1.5.0_16/bin/javaw.exe . but its always
    > enabled, and i cannot alter it.


    It is, however, still using 1.5.0_16.

    The main difference I can see is:

    > When i run my app through netbeans (i inserted the System.getProperties
    > ()) i get:
    >
    > java.vm.version=1.5.0_10-b03,java.vm.vendor=Sun Microsystems Inc.,


    >
    > and when i run it in cmd:
    >
    > java.vm.version=1.5.0_16-b02,


    Everything else looks the same (it is a bit difficult to tell with the format of
    the output).

    What happens if you get NetBeans to use the 1.5.0_16-b02 JDK?

    --
    Nigel Wade
     
    Nigel Wade, Dec 3, 2008
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shawn bright
    Replies:
    2
    Views:
    101
    shawn bright
    Dec 24, 2008
  2. Plotinus
    Replies:
    2
    Views:
    296
    Tad McClellan
    Dec 17, 2004
  3. Gelonida N
    Replies:
    0
    Views:
    195
    Gelonida N
    Sep 7, 2012
  4. Mark Lawrence
    Replies:
    0
    Views:
    185
    Mark Lawrence
    Sep 8, 2012
  5. Gelonida N
    Replies:
    0
    Views:
    179
    Gelonida N
    Sep 9, 2012
Loading...

Share This Page