Rob Saul

Greenhorn
+ Follow
since Jul 18, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rob Saul



Thought the failure to create the xmbean might have been relevant. Guess not.

Here is the first actual error :


That's the top of a very long trace.

A few lines above this was this message :


That looked more like a 'don't expect optimal performance' type informative message. I note that MacPorts lists "tomcat-native", but
I don't know if this will be of any help with the error.


Thanks for your time.
11 years ago

Starting JBoss 4.2.3 on my Snow Leopard system results in the following problem :



I works fine an a Linux system (JDK 1.6 as well).

Any hints?

11 years ago

Originally posted by marc weber:

Hmmm... These are more dynamic than I realized. So when you changed CurrentJDK to point to 1.5.0, that also changed JavaVM.framework/Libraries to point to Versions/1.5.0/Libraries (for example)?



Yep. Mind you, this sort of thing should be used with care, as it can lead to a tangle of links.
16 years ago

Originally posted by marc weber:
I'm thinking that you also need to change the aliases under JavaVM.framework in order to get a 1.5 runtime environment.

But .



Actually, that shouldn't be necessary. The way the sym links ( or as you say, aliases ) work out the stuff in JavaVM.framework points to there equivalent in Versions/CurrentJDK. Of course, Versions/CurrentJDK just points the one of the actual jdks ( 1.5.0 in my case ). A few levels of indirection, but not that unusual a set up on a *nix type OS where several version of something are installed.

right now I'm looking at info generate by ktrace and kdump to see if there anything there that look odd.
16 years ago
Thanks for the info Marc.

By changing CurrentJDK to be a link to 1.5 I now have the latest Java(tm), but Swing stuff still isn't working. I tried starting in debug mode and attaching jdb, but got "Fatal error: Unable to attach to target VM."

This suggests the problem is independent of the jvm in use.
16 years ago

Originally posted by marc weber:
Well, since Swing implementation is platform-specific, I'm guessing that you're seeing something unique to the Mac version of Java you're running. If that's the case, then you might want to change the version you're using -- at least to see if this corrects the problem.

If I'm not mistaken, the Java Preferences app is new with Apple's Java 1.5, so I'm assuming that you have the new 1.5 download. However, 1.4.2 remains the default after downloading 1.5. To change your runtime version, Apple wants you to use that Java Preferences app. (To change your development version, you need to use Terminal to change the CurrentJKD alias.)



Yes, the Java Preferences app is new with 1.5.


So the questions are:
1) What do you get when you type "java -version" (without quotes) in Terminal?


java -version
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-215)
Java HotSpot(TM) Client VM (build 1.4.2-50, mixed mode)


2) What versions do you have installed under /System/Library/Frameworks/JavaVM.framework/Versions?


Contents of /System/Library/Frameworks/JavaVM.framework/Versions/:



3) Once we know the answers to the first 2 questions, how can you change the version without using the Java Preferences app? I suspect this will require using Terminal to change some aliases.



Looking about in /System/Library/Frameworks/JavaVM.framework/ and
/System/Library/Frameworks/JavaVM.framework/Versions I see things are sym linked
around. And /usr/bin/java is a link to /System/Library/Frameworks/JavaVM.framework/Commands/java. Of course Commands is just a sym link to Versions/CurrentJDK/Commands.

Changing CurrentlyJDK to point to 1.5 seems simple enough. I wonder about Current, though, as it points to A (see above directory listing). This seems to affect JavaVM, Headers, and Resources in /System/Library/Frameworks/JavaVM.framework/ which are all links to their counter parts in /System/Library/Frameworks/JavaVM.framework/Versions/Current/.

I have no problem mucking about on the command line ( been doing it for years ), but I don't want to end up with my system in a worse state than it's already it. :roll:

Thanks,
~Rob
16 years ago
At some point in the recent past Swing apps started hanging. Unfortunately, I'm not sure if
this started with a 10.3 update or with Tiger.

At first I thought it was something wrong with jEdit. So I made sure I had the latest stable.
Same problem. I get the app name showing up in the menu bar, but no further progress.

As a test I tried both a Swing and a SWT 'HelloWorld' program. The former would just
hang, requiring killing, and the latter worked fine. I guess this explains why Eclipse works.

Sadly this keeps many useful programs from running, including Java Preferences.

Any suggestion on how to fix this would be much appreciated.
16 years ago