Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JVM crashes when calling matlab in stand alone run app.

Reply
Thread Tools

JVM crashes when calling matlab in stand alone run app.

 
 
stacey
Guest
Posts: n/a
 
      11-29-2008
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 (0x0036f9a: 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._mclTermin ateInstance(Lcom/
mathworks/toolbox/javabuilder/NativePtrZ+0
j com.mathworks.toolbox.javabuilder.MWMCR.access$200 (Lcom/mathworks/
toolbox/javabuilder/NativePtrZ+1
j com.mathworks.toolbox.javabuilder.MWMCR$4.run()Lja va/lang/Object;+8
j
com.mathworks.toolbox.javabuilder.MCRThreadUtiliti es.runWhilePumpingEventQueue
(Lcom/mathworks/toolbox/javabuilder/TaskLjava/lang/Object;+12
j com.mathworks.toolbox.javabuilder.MWMCR.mclTermina teInstance(Lcom/
mathworks/toolbox/javabuilder/NativePtrZ+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
 
Reply With Quote
 
 
 
 
timjowers
Guest
Posts: n/a
 
      12-02-2008
On Nov 29, 12:17*pm, stacey <(E-Mail Removed)> 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 (0x0036f9a: *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._mclTermin ateInstance(Lcom/
> mathworks/toolbox/javabuilder/NativePtrZ+0
> j *com.mathworks.toolbox.javabuilder.MWMCR.access$200 (Lcom/mathworks/
> toolbox/javabuilder/NativePtrZ+1
> j *com.mathworks.toolbox.javabuilder.MWMCR$4.run()Lja va/lang/Object;+8
> j
> com.mathworks.toolbox.javabuilder.MCRThreadUtiliti es.runWhilePumpingEventQueue
> (Lcom/mathworks/toolbox/javabuilder/TaskLjava/lang/Object;+12
> j *com.mathworks.toolbox.javabuilder.MWMCR.mclTermina teInstance(Lcom/
> mathworks/toolbox/javabuilder/NativePtrZ+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.
 
Reply With Quote
 
 
 
 
stacey
Guest
Posts: n/a
 
      12-03-2008
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
Crogram 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.Win32GraphicsEnvironm ent,
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:\WINDOW S;C:\WINDOWS
\system32\wbem;C:\Program Files\MATLAB\R2006b\bin;C:\Program Files
\MATLAB\R2006b\bin\win32;C:\Xi6linx91i\bin\nt;C:\P rogram 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=Ho tSpot 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_20 08\ProtCV
\MatlabFunctions\distrib\MatlabFunctions.jar;C:\Pr ogram 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\MatlabFunct ions\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.Win32GraphicsEnvironm ent,
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=UnicodeLittl e,
sun.cpu.endian=little, sun.desktop=win
dows, sun.cpu.isalist=}



On Dec 2, 10:30*pm, timjowers <(E-Mail Removed)> 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.


 
Reply With Quote
 
stacey
Guest
Posts: n/a
 
      12-03-2008
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
Crogram 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.Win32GraphicsEnvironm ent,
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:\WINDOW S;C:\WINDOWS
\system32\wbem;C:\Program Files\MATLAB\R2006b\bin;C:\Program Files
\MATLAB\R2006b\bin\win32;C:\Xi6linx91i\bin\nt;C:\P rogram 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=Ho tSpot 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_20 08\ProtCV
\MatlabFunctions\distrib\MatlabFunctions.jar;C:\Pr ogram 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\MatlabFunct ions\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.Win32GraphicsEnvironm ent,
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=UnicodeLittl e,
sun.cpu.endian=little, sun.desktop=win
dows, sun.cpu.isalist=}



On Dec 2, 10:30*pm, timjowers <(E-Mail Removed)> 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.


 
Reply With Quote
 
stacey
Guest
Posts: n/a
 
      12-03-2008
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
 
Reply With Quote
 
Nigel Wade
Guest
Posts: n/a
 
      12-03-2008
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
> Crogram 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run python2.6 module with absolute imports stand alone Gelonida N Python 0 09-07-2012 10:04 PM
run a function as a stand-alone app with arguments shawn bright Ruby 2 12-24-2008 04:28 PM
Eclipse RCP and MATLAB (calling MATLAB from JAVA) siki Java 0 01-16-2007 04:19 AM
Re: Cannot run as stand alone trout Computer Support 12 04-09-2005 12:29 PM
stand alone executable using pp doesn't stand alone Plotinus Perl Misc 2 12-17-2004 01:09 AM



Advertisments