Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pair in Java?

16,303 views
Skip to first unread message

saneman

unread,
Nov 12, 2007, 10:42:57 AM11/12/07
to
In C++ its possible to make a pair is there something like that for java
or do I need to make a separate class with to fields?

Bent C Dalager

unread,
Nov 12, 2007, 10:57:29 AM11/12/07
to
In article <fh9s9c$edo$1...@news.net.uni-c.dk>, saneman <yy...@dd.com> wrote:
>In C++ its possible to make a pair is there something like that for java
>or do I need to make a separate class with to fields?

I don't think there is a Pair<> as such. The Map interface defines a
Map.Entry<K,V> which is similar, but using it as a pair seems overly
hackish (and is probably not much less work than defining a proper
Pair<> anyway).

Cheers,
Bent D
--
Bent Dalager - b...@pvv.org - http://www.pvv.org/~bcd
powered by emacs

Lew

unread,
Nov 12, 2007, 11:27:10 AM11/12/07
to
Bent C Dalager wrote:
> In article <fh9s9c$edo$1...@news.net.uni-c.dk>, saneman <yy...@dd.com> wrote:
>> In C++ its possible to make a pair is there something like that for java
>> or do I need to make a separate class with to fields?
>
> I don't think there is a Pair<> as such. The Map interface defines a
> Map.Entry<K,V> which is similar, but using it as a pair seems overly
> hackish (and is probably not much less work than defining a proper
> Pair<> anyway).

public class Pair <T, U>
{
private final T first;
private final U second;
private transient final int hash;

public Pair( T f, U s )
{
this.first = f;
this.second = s;
hash = (first == null? 0 : first.hashCode() * 31)
+(second == null? 0 : second.hashCode());
}

public T getFirst()
{
return first;
}
public U getSecond()
{
return second;
}

@Override
public int hashCode()
{
return hash;
}

@override
public boolean equals( Object oth )
{
if ( this == oth )
{
return true;
}
if ( oth == null || !(getClass().isInstance( oth )) )
{
return false;
}
Pair<T, U> other = getClass().cast( oth );
return (first == null? other.first == null : first.equals( other.first ))
&& (second == null? other.second == null : second.equals( other.second ));
}

}

(untested, uncompiled, YMMV)

--
Lew

Roedy Green

unread,
Nov 12, 2007, 2:18:05 PM11/12/07
to
On Mon, 12 Nov 2007 16:42:57 +0100, saneman <yy...@dd.com> wrote,
quoted or indirectly quoted someone who said :

>In C++ its possible to make a pair is there something like that for java
>or do I need to make a separate class with to fields?

You need a class with two fields. Or use Point which has x,y if that
is appropriate.

Using an IDE to generate all the bubblegum, constructor, getters,
setters etc. helps ease the pain creating this tiny classes.

see http://mindprod.com/jgloss/ide.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Hunter Gratzner

unread,
Nov 12, 2007, 4:39:24 PM11/12/07
to
On Nov 12, 4:42 pm, saneman <y...@dd.com> wrote:
> In C++ its possible to make a pair is there something like that for java
> or do I need to make a separate class with to fields?

I hate pair in C++ and I would recommend not to implement and not to
use such a class in Java. The class name pair says absolutely nothing
about what it is really good for and what is the actual relation of
the data in a pair. It just expresses a minor property of the data,
that it split into two parts. But it is still just data. So with a
pair class in your program you have data hanging around in the program
screaming "look at me, I am data, data consisting of two parts".

My answer to that is: Who cares? Objects should have meaningful
operations. Not just "store something and you can get it back". Their
classes should have meaningful names. Map.Entry() is such a meaningful
name, since it indicates what the data is about. Pair() means nothing.
Two farts in the same direction.

Lew

unread,
Nov 12, 2007, 4:47:08 PM11/12/07
to
Hunter Gratzner wrote:
> On Nov 12, 4:42 pm, saneman <y...@dd.com> wrote:
>> In C++ its possible to make a pair is there something like that for java
>> or do I need to make a separate class with to fields?
>
> I hate pair in C++ and I would recommend not to implement and not to
> use such a class in Java. The class name pair says absolutely nothing
> about what it is really good for and what is the actual relation of
> the data in a pair. It just expresses a minor property of the data,
> that it split into two parts. But it is still just data. So with a
> pair class in your program you have data hanging around in the program
> screaming "look at me, I am data, data consisting of two parts".

And that might be desirable. Many times I've needed a wrapper for a pair of
values with no easily-describable relationship other than being paired.
That's why it's so easy for me to crank out a Pair class now - lots of times
when it was a useful thing to have.

One use case is to return more than one value from a method.

As easy as it is to implement, it makes sense that it's not part of the
standard API I suppose.

--
Lew

Hunter Gratzner

unread,
Nov 12, 2007, 6:15:59 PM11/12/07
to
On Nov 12, 10:47 pm, Lew <l...@lewscanon.com> wrote:
> One use case is to return more than one value from a method.

If you have a method which returns two otherwise unrelated values then
I'd argue that the method is wrong and should be split in two
independent methods.

If the method returns two related values, each value should have a
meaning (and not that generic "first", "second"), and the relation of
these two values should be expressed in the container class name.

Examples:

Position(x, y)
Size(width, height)
Fraction(dividend, divisor)
Service(ipAddress, port)
DivisionResult(quotient, reminder)
Range(start, end)

I don't even have to give methods but just from the class names one
can imagine what the classes are good for. Try to do that with
Pair(first, second).

Message has been deleted

Lew

unread,
Nov 12, 2007, 7:05:41 PM11/12/07
to
Hunter Gratzner wrote:
> If the method returns two related values, each value should have a
> meaning (and not that generic "first", "second"), and the relation of
> these two values should be expressed in the container class name.
>
> Examples:
>
> Position(x, y)
> Size(width, height)
> Fraction(dividend, divisor)
> Service(ipAddress, port)
> DivisionResult(quotient, reminder)
> Range(start, end)
>
> I don't even have to give methods but just from the class names one
> can imagine what the classes are good for. Try to do that with
> Pair(first, second).

You make interesting points. The implementation is almost certain to be
identical to a generic Pair, and indeed one can imagine an abstract Pair<T,U>
class to be the base class of all the use cases you mention.

Or one could use a Pair directly in those use cases.

--
Lew

Hunter Gratzner

unread,
Nov 12, 2007, 7:33:30 PM11/12/07
to
On Nov 13, 1:05 am, Lew <l...@lewscanon.com> wrote:
> You make interesting points. The implementation is almost certain to be
> identical to a generic Pair,

That is arguable. To make up an artificial example I can imagine that
Position() internally stores the data in a different coordinate
system, doing some coordinate conversion. Or a Position() object can
just be a facade, internally holding an index pointing into a global
list of coordinates, and not holding the values directly. I did
similar things a few times.

> Or one could use a Pair directly in those use cases.

Are you saying lazy programmers will use Pair, while thorough
programmers care about their class names and meaning? :-)

Message has been deleted

Lew

unread,
Nov 12, 2007, 9:03:46 PM11/12/07
to
Hunter Gratzner wrote:
> Are you saying lazy programmers will use Pair, while thorough
> programmers care about their class names and meaning? :-)

Yes! That's it exactly!

I actually agree with your points, but the pragmatics seem to argue for a
generalized approach. I can picture using Pair as a hackish solution or being
more rigorous in the ways you recommend.

Subclassing allows meaningful names while abstracting the common elements of a
pair (or tuple).

--
Lew

Wolf

unread,
Nov 12, 2007, 9:36:31 PM11/12/07
to
Hi all, I may be on the wrong news group but I need some help.
Could somebody either tell me what the below Java related message means, It
appeared on my desktop and I don't know what to do. Thanks in advance for
your help.


# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d4a22ed, pid=2752,
tid=4000
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
# Problematic frame:
# C 0x6d4a22ed
#

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

Current thread (0x04152d98): JavaThread "Thread-12" [_thread_in_native,
id=4000]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00007d00
ESP=0x0ae2f764, EBP=0x0ae2f790, ESI=0x04ff94f0, EDI=0x00000000
EIP=0x6d4a22ed, EFLAGS=0x00010202

Top of Stack: (sp=0x0ae2f764)
0x0ae2f764: 00000000 00000000 04152d98 04ff94f0
0x0ae2f774: 26bebe58 00000000 00000002 0b778068
0x0ae2f784: 00000000 00007d00 00000000 0ae2f7a8
0x0ae2f794: 6d4a2a9f 04ff94f0 00000000 26bebe58
0x0ae2f7a4: 00000001 0ae2f7ec 6d4a1bd3 04ff94f0
0x0ae2f7b4: 00000001 06b7826f 04152e54 0ae2f7f4
0x0ae2f7c4: 04f78c60 00000000 00000001 0ae2f7d0
0x0ae2f7d4: 00000000 0ae2f804 26becc80 00000000

Instructions: (pc=0x6d4a22ed)
0x6d4a22dd: f3 aa 39 5e 04 74 3d ff 75 fc 8b 46 08 ff 75 f4
0x6d4a22ed: 8b 08 ff 75 f8 ff 75 f0 50 ff 51 4c 39 5d 0c 75


Stack: [0x0ad30000,0x0ae30000), sp=0x0ae2f764, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
code)
C 0x6d4a22ed
C 0x6d4a2a9f
C 0x6d4a1bd3
j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+85
j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
j com.sun.media.sound.JavaSoundAudioClip.play()V+2
j sun.plugin.viewer.context.AppletAudioClip.play()V+11
j sun.plugin.viewer.context.PluginAudioClip.play()V+11
j sprite.AudioThread.run()V+37
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0x82696]
V [jvm.dll+0xd6fd9]
V [jvm.dll+0x82567]
V [jvm.dll+0x822c4]
V [jvm.dll+0x9d216]
V [jvm.dll+0x101489]
V [jvm.dll+0x101457]
C [msvcrt.dll+0x2a3b0]
C [kernel32.dll+0xb683]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.media.sound.DirectAudioDevice.nFlush(JZ)V+0
j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+85
j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
j com.sun.media.sound.JavaSoundAudioClip.play()V+2
j sun.plugin.viewer.context.AppletAudioClip.play()V+11
j sun.plugin.viewer.context.PluginAudioClip.play()V+11
j sprite.AudioThread.run()V+37
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x04fe6098 JavaThread "Direct Clip" daemon [_thread_blocked, id=1668]
0x04121188 JavaThread "Thread-28" [_thread_blocked, id=1176]
0x04121008 JavaThread "Thread-27" [_thread_blocked, id=1700]
0x04ff5930 JavaThread "Direct Clip" daemon [_thread_blocked, id=1672]
0x04f7ddb8 JavaThread "Java Sound Event Dispatcher" daemon
[_thread_blocked, id=1080]
=>0x04152d98 JavaThread "Thread-12" [_thread_in_native, id=4000]
0x0418bc38 JavaThread "Thread-10" [_thread_blocked, id=3476]
0x041889e8 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=3764]
0x0416ec18 JavaThread "AWT-EventQueue-3" [_thread_blocked, id=1072]
0x04150958 JavaThread "thread applet-y.cnt.0" [_thread_blocked, id=848]
0x0416fde8 JavaThread "thread applet-gamehouse.SuperApplet.class"
[_thread_blocked, id=2604]
0x0415cbf0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3924]
0x04157b90 JavaThread "AWT-Shutdown" [_thread_blocked, id=2024]
0x04110e88 JavaThread "traceMsgQueueThread" daemon [_thread_blocked,
id=384]
0x04182fc0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1352]
0x041737e8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3444]
0x04150b90 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=2684]
0x04105638 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4060]
0x04157940 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=2736]
0x041d8780 JavaThread "Finalizer" daemon [_thread_blocked, id=3772]
0x041efd60 JavaThread "Reference Handler" daemon [_thread_blocked,
id=3544]
0x041a3e80 JavaThread "main" [_thread_in_native, id=1012]

Other Threads:
0x0418f008 VMThread [id=1724]
0x0414fd80 WatcherThread [id=1332]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 1152K, used 368K [0x20a50000, 0x20b90000,
0x211b0000)
eden space 1024K, 34% used [0x20a50000, 0x20aa8bc8, 0x20b50000)
from space 128K, 10% used [0x20b50000, 0x20b53520, 0x20b70000)
to space 128K, 0% used [0x20b70000, 0x20b70000, 0x20b90000)
tenured generation total 14188K, used 8520K [0x211b0000, 0x21f8b000,
0x26a50000)
the space 14188K, 60% used [0x211b0000, 0x21a023e8, 0x21a02400,
0x21f8b000)
compacting perm gen total 8192K, used 1749K [0x26a50000, 0x27250000,
0x2aa50000)
the space 8192K, 21% used [0x26a50000, 0x26c05490, 0x26c05600,
0x27250000)
ro space 8192K, 62% used [0x2aa50000, 0x2af593f0, 0x2af59400,
0x2b250000)
rw space 12288K, 46% used [0x2b250000, 0x2b7dfe20, 0x2b7e0000,
0x2be50000)

Dynamic libraries:
0x00400000 - 0x00419000 C:\Program Files\Internet Explorer\iexplore.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x7e410000 - 0x7e4a0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e290000 - 0x7e401000 C:\WINDOWS\system32\SHDOCVW.dll
0x77a80000 - 0x77b14000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x754d0000 - 0x75550000 C:\WINDOWS\system32\CRYPTUI.dll
0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
0x771b0000 - 0x7725a000 C:\WINDOWS\system32\WININET.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x773d0000 - 0x774d3000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x003c0000 - 0x003dc000 C:\Program Files\Common
Files\Logishrd\LVMVFM\LVPrcInj.dll
0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\SHELL32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x75f80000 - 0x7607d000 C:\WINDOWS\system32\BROWSEUI.dll
0x20000000 - 0x20012000 C:\WINDOWS\system32\browselc.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\appHelp.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x7e1e0000 - 0x7e282000 C:\WINDOWS\system32\urlmon.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x10000000 - 0x1000d000 C:\Program Files\Adobe\Acrobat
7.0\ActiveX\AcroIEHelper.dll
0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll
0x66e50000 - 0x66e68000 C:\Program Files\Common Files\Symantec
Shared\coShared\Browser\1.0\NppBho.dll
0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll
0x6ae80000 - 0x6af05000 C:\Program Files\Common Files\Symantec
Shared\ccL60U.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\ws2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6fb20000 - 0x6fb52000 C:\Program Files\Common Files\Symantec
Shared\AppCore\AppMgr32.dll
0x7c120000 - 0x7c139000 C:\WINDOWS\system32\ATL71.DLL
0x01a70000 - 0x01d35000 C:\WINDOWS\system32\xpsp2res.dll
0x6fbd0000 - 0x6fbdd000 C:\Program Files\Common Files\Symantec
Shared\AppCore\AppSet32.dll
0x6b480000 - 0x6b4a2000 C:\Program Files\Common Files\Symantec
Shared\ccSet.dll
0x6b790000 - 0x6b7af000 C:\Program Files\Common Files\Symantec
Shared\ccVrTrst.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x6b500000 - 0x6b54a000 C:\Program Files\Common Files\Symantec
Shared\ccSvc.dll
0x66950000 - 0x66977000 C:\Program Files\Common Files\Symantec
Shared\coShared\Browser\1.0\BrRules.dll
0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
0x66930000 - 0x66943000 C:\Program Files\Common Files\Symantec
Shared\coShared\Browser\1.0\BrCore.dll
0x66f30000 - 0x66f56000 C:\Program Files\Common Files\Symantec
Shared\coShared\WP\1.0\nppwUI.dll
0x67380000 - 0x673ff000 C:\Program Files\Common Files\Symantec
Shared\coShared\Browser\1.0\UIBHO.dll
0x76380000 - 0x76385000 C:\WINDOWS\system32\MSIMG32.dll
0x4ec50000 - 0x4edf3000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
0x74e30000 - 0x74e9c000 C:\WINDOWS\system32\RICHED20.DLL
0x023f0000 - 0x02463000 C:\Program Files\Common Files\Symantec
Shared\coShared\Browser\1.0\UIBHORes.loc
0x6ce00000 - 0x6ce25000 C:\Program Files\Common Files\Symantec
Shared\coShared\WP\1.0\nppwBHO.dll
0x6cd00000 - 0x6cd8f000 c:\program files\common files\symantec
shared\coshared\wp\1.0\nppw.dll
0x75150000 - 0x75164000 C:\WINDOWS\system32\Cabinet.dll
0x6fdd0000 - 0x6fe13000 C:\Program Files\Common Files\Symantec
Shared\AntiVirus\AVIfc.dll
0x75e90000 - 0x75f40000 C:\WINDOWS\system32\SXS.DLL
0x67e30000 - 0x67f29000 C:\Program Files\Norton Internet Security\isRes.dll
0x027b0000 - 0x02838000 C:\WINDOWS\system32\shdoclc.dll
0x75cf0000 - 0x75d81000 C:\WINDOWS\system32\mlang.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x76ee0000 - 0x76f1c000 C:\WINDOWS\system32\RASAPI32.DLL
0x76e90000 - 0x76ea2000 C:\WINDOWS\system32\rasman.dll
0x76eb0000 - 0x76edf000 C:\WINDOWS\system32\TAPI32.dll
0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x77c70000 - 0x77c93000 C:\WINDOWS\system32\msv1_0.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
0x7d1e0000 - 0x7d49e000 C:\WINDOWS\system32\msi.dll
0x722b0000 - 0x722b5000 C:\WINDOWS\system32\sensapi.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x7dc30000 - 0x7df22000 C:\WINDOWS\system32\mshtml.dll
0x746c0000 - 0x746e7000 C:\WINDOWS\system32\msls31.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x746f0000 - 0x7471a000 C:\WINDOWS\system32\msimtf.dll
0x5c2c0000 - 0x5c300000 C:\WINDOWS\ime\sptip.dll
0x74c80000 - 0x74cac000 C:\WINDOWS\system32\OLEACC.dll
0x76080000 - 0x760e5000 C:\WINDOWS\system32\MSVCP60.dll
0x02fc0000 - 0x02fd1000 C:\WINDOWS\IME\SPGRMR.DLL
0x02fe0000 - 0x0303d000 C:\Program Files\Common Files\Microsoft
Shared\INK\PENUSA.DLL
0x03070000 - 0x0308c000 C:\Program Files\Common Files\Microsoft
Shared\INK\SKCHOBJ.DLL
0x325c0000 - 0x325d2000 C:\Program Files\Microsoft
Office\OFFICE11\msohev.dll
0x75c50000 - 0x75cbe000 C:\WINDOWS\system32\jscript.dll
0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
0x66880000 - 0x6688c000 C:\WINDOWS\system32\ImgUtil.dll
0x767f0000 - 0x76817000 C:\WINDOWS\system32\schannel.dll
0x6bdd0000 - 0x6be06000 C:\WINDOWS\system32\dxtrans.dll
0x76b20000 - 0x76b31000 C:\WINDOWS\system32\ATL.DLL
0x6d430000 - 0x6d43a000 C:\WINDOWS\system32\ddrawex.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\DDRAW.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6be10000 - 0x6be6a000 C:\WINDOWS\system32\dxtmsft.dll
0x0ffd0000 - 0x0fff8000 C:\WINDOWS\system32\rsaenh.dll
0x68100000 - 0x68124000 C:\WINDOWS\system32\dssenh.dll
0x71d40000 - 0x71d5c000 C:\WINDOWS\system32\actxprxy.dll
0x6d590000 - 0x6d5a1000 C:\Program
Files\Java\jre1.5.0_04\bin\npjpi150_04.dll
0x5edd0000 - 0x5ede7000 C:\WINDOWS\system32\OLEPRO32.DLL
0x6d400000 - 0x6d417000 C:\Program Files\Java\jre1.5.0_04\bin\jpiexp32.dll
0x6d450000 - 0x6d468000 C:\Program Files\Java\jre1.5.0_04\bin\jpishare.dll
0x6d640000 - 0x6d7c9000 C:\PROGRA~1\Java\JRE15~1.0_0\bin\client\jvm.dll
0x6d280000 - 0x6d288000 C:\PROGRA~1\Java\JRE15~1.0_0\bin\hpi.dll
0x6d610000 - 0x6d61c000 C:\PROGRA~1\Java\JRE15~1.0_0\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\PROGRA~1\Java\JRE15~1.0_0\bin\java.dll
0x6d630000 - 0x6d63f000 C:\PROGRA~1\Java\JRE15~1.0_0\bin\zip.dll
0x6d000000 - 0x6d167000 C:\Program Files\Java\jre1.5.0_04\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
0x6d240000 - 0x6d27d000 C:\Program
Files\Java\jre1.5.0_04\bin\fontmanager.dll
0x6d1f0000 - 0x6d203000 C:\Program Files\Java\jre1.5.0_04\bin\deploy.dll
0x6d5d0000 - 0x6d5ed000 C:\Program Files\Java\jre1.5.0_04\bin\RegUtils.dll
0x6d3e0000 - 0x6d3f4000 C:\Program Files\Java\jre1.5.0_04\bin\jpicom32.dll
0x09550000 - 0x095a7000 C:\WINDOWS\system32\xpsp3res.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar
-Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_04
-Djavaplugin.nodotversion=150_04 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0
-Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~1.0_0\classes
-Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_04 -Djavaplugin.nodotversion=150_04 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol vfprintfjava_command: <unknown>Environment Variables:CLASSPATH=.;C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zipPATH=C:\PROGRA~1\Java\JRE15~1.0_0\bin;C:\Program Files\InternetExplorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ProgramFiles\QuickTime\QTSystem\;.USERNAME=WolfOS=Windows_NTPROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel--------------- S Y S T E M ---------------OS: Windows XP Build 2600 Service Pack 2CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2, htMemory: 4k page, physical 1046508k(490340k free), swap 2523672k(2049008kfree)vm_info: Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86, built onJun 3 2005 02:10:41 by "java_re" with MS VC++ 6.0

Hunter Gratzner

unread,
Nov 13, 2007, 2:10:22 AM11/13/07
to
On Nov 13, 3:36 am, "Wolf" <whoca...@notme.com> wrote:
> Hi all, I may be on the wrong news group

No.

> but I need some help.

But you are in the wrong thread. Don't hijack other discussions, start
an own discussion thread.

> Could somebody either tell me what the below Java related message means,

The virtual machine (Java as such) crashed. This is bad.

> It appeared on my desktop and I don't know what to do.

You can't do much. Update to a later Java version and hope that the
problem was fixed. Update your sound card drivers, since something in
this area crashes. If you have written the program try to figure out
what part of your Java code makes it crash, write that code in a
different way and hope it no longer triggers the error.

Wolf

unread,
Nov 13, 2007, 11:47:06 AM11/13/07
to
Although I don't understand half of what you're suggesting, due to my
ignorance in computers, I thank you for your reply and apologize for
interrupting your thread.


"Hunter Gratzner" <a24...@googlemail.com> wrote in message
news:1194937822.6...@19g2000hsx.googlegroups.com...

0 new messages