JVM crashes when calling matlab in stand alone run app.

S

stacey

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
 
T

timjowers

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.
 
S

stacey

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=}
 
S

stacey

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=}
 
S

stacey

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
 
N

Nigel Wade

stacey said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,039
Messages
2,570,375
Members
47,020
Latest member
anuradha

Latest Threads

Top