Gentoo Archives: gentoo-user

From: dhk <dhkuhl@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee
Date: Sun, 14 Feb 2010 20:37:30
Message-Id: 4B785EEF.8000906@optonline.net
In Reply to: Re: [gentoo-user] Keyword for dev-java/sun-j2ee by dhk
1 dhk wrote:
2 > Alan McKinnon wrote:
3 >> On Friday 12 February 2010 00:58:52 dhk wrote:
4 >>> I put /usr/bin/java back the way it was.
5 >>> ln -s /usr/bin/run-java-tool /usr/bin/java
6 >>>
7 >>> I set the CLASSPATH, got it from java-config --runtime
8 >>> export CLASSPATH=$CLASSPATH:/opt/sun-jdk-1.6.0.18/jre/lib/resources.jar:
9 >>> /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar:/opt/sun-jdk-1.6.0.18/jre/lib/jsse.jar
10 >>> :
11 >>> /opt/sun-jdk-1.6.0.18/jre/lib/jce.jar:/opt/sun-jdk-1.6.0.18/jre/lib/charse
12 >>> ts.jar
13 >>>
14 >>> Is it safe to set the CLASSPATH as follows?
15 >>> export CLASSPATH=$CLASSPATH:`java-config --runtime`
16 >>> That seems to work too.
17 >>>
18 >>> I ran /opt/sun-j2ee-1.3.1/bin/j2ee and still got the errors. It
19 >>> definately looks like the CLASSPATH, but what should it be?
20 >> I'm getting out of my depth here :-)
21 >>
22 >> It's been a while since I used java to any extent, and things change rapidly
23 >> in that arena. Perhaps you need a more java-specific forum, or wait for
24 >> someone with a real clue to come along and read this thread.
25 >>
26 >>
27 >>
28 >
29 > Well, thanks for your help. I appreciate it.
30 >
31 > dhk
32 >
33 >
34
35
36 Ok, I think the problem is in the rt.jar file. The beginning of the
37 error is as follows:
38
39 # /opt/sun-j2ee-1.3.1/bin/j2ee -verbose
40 J2EE server listen port: 1050
41 Exception in thread "main" java.lang.NoClassDefFoundError:
42 com/sun/corba/se/internal/util/IdentityHashtable
43
44 However, the following command shows the IdentityHashtable in a
45 different location.
46
47 # jar tf /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar | grep "IdentityHashtable"
48 com/sun/corba/se/impl/util/IdentityHashtable.class
49 com/sun/corba/se/impl/util/IdentityHashtableEntry.class
50 com/sun/corba/se/impl/util/IdentityHashtableEnumerator.class
51
52
53 I think the difference is j2ee is looking for "IdentityHashtable" in
54 com/sun/corba/se/internal/util/IdentityHashtable but the jar file has it
55 in com/sun/corba/se/impl/util/IdentityHashtable.class .
56
57 Is this the problem? If so haw can it be fixed?
58
59 Thanks,
60
61 dhk

Replies

Subject Author
Re: [gentoo-user] Keyword for dev-java/sun-j2ee Alan McKinnon <alan.mckinnon@×××××.com>