View previous topic :: View next topic |
Author |
Message |
mith Agent
Joined: May 31, 2004 Posts: 13
|
Posted: Wed Apr 12, 2006 11:02 am Post subject: OOo and Java 1.5 |
|
I have installed the Apple Java 1.5 a while ago because I needed it. I have it running in parallel with the "original" 1.4, but then hacked a little from the terminal to make 1.5 my default java machine for everything.
OOo looks slow, but it could also be my little 512MB of RAM.
Anyone has any experience? Any confirmation? |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed Apr 12, 2006 11:13 am Post subject: |
|
Moved to the OpenOffice.org X11 support forum as this is apparently not a NeoOffice question.
Patrick |
|
Back to top |
|
|
Guest
|
Posted: Wed Apr 12, 2006 11:21 am Post subject: Re: OOo and Java 1.5 |
|
mith wrote: | hacked a little from the terminal to make 1.5 my default java machine for everything. |
Hacked? Terminal?
Try taking a look at the tool:
/Applications/Utilities/Java/J2SE 5.0/Java Preferences |
|
Back to top |
|
|
mith Agent
Joined: May 31, 2004 Posts: 13
|
Posted: Thu Apr 13, 2006 2:22 am Post subject: |
|
Patrick: I am talking about NeoOffice(/J) and not OOo, sorry for the mistake in the original message.
Guest: I installed java 1.5 with the official package, but if you check the manual, the preferences you set are only for applications, but if you use the terminal when invoking "java" you will use the System's default. I followed instructions about how to change it for terminal applications as explained here: http://www.macosxhints.com/article.php?story=2005043002313964&query=java+1.5 |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Apr 13, 2006 4:36 am Post subject: |
|
(moved back to neooffice)
i would suspect, from the pains that 1.3 -> 1.4 caused that simply using the 1.5 engine would not be easy (or optional?) but i defer to the great minds on this one. |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Apr 13, 2006 8:29 am Post subject: |
|
jakeOSX wrote: | (moved back to neooffice)
i would suspect, from the pains that 1.3 -> 1.4 caused that simply using the 1.5 engine would not be easy (or optional?) but i defer to the great minds on this one. |
NeoOffice/J uses Java 1.3.1 and NeoOffice uses Java 1.4.x. I specifically put code in to ensure that you cannot use Java 1.5.x because lots of stuff in NeoOffice breaks with Java 1.5.x and, no, Java 1.5.x is not somehow magically faster than Java 1.4.x.
Patrick |
|
Back to top |
|
|
Guest Guest
|
Posted: Thu Apr 13, 2006 8:44 am Post subject: |
|
Pat,
Now that we Mac users have Boot Camp, when is the Neo port to Windoze due? j/k
Still happily using Neo/J 1.1, JAVA 1.3.1 and OS X 10.2 Jag... But is awaiting release of a MacIntel MacBook w/Tiger goodness hopefully by end of April for my planned new business start-up. |
|
Back to top |
|
|
jakeOSX Ninja
Joined: Aug 12, 2003 Posts: 1373
|
Posted: Thu Apr 13, 2006 12:27 pm Post subject: |
|
neooffice for windows?? do you want to give them everything? |
|
Back to top |
|
|
ovvldc Captain Naiobi
Joined: Sep 13, 2004 Posts: 2352 Location: Zürich, CH
|
Posted: Thu Apr 13, 2006 12:42 pm Post subject: |
|
Guest wrote: | Now that we Mac users have Boot Camp, when is the Neo port to Windoze due? j/k :wink |
Oh no, we can't have that. Do you want to ruin something as nice as NeoOffice by running it on Windows?
That is like putting a prime grilled steak in the middle a pile of mushy french fries. It will provide sustenance, but so much is lost..
best wishes,
Oscar _________________ "What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi |
|
Back to top |
|
|
mat Pure-blooded Human
Joined: Oct 15, 2005 Posts: 35
|
Posted: Fri Apr 14, 2006 3:44 am Post subject: Re: OOo and Java 1.5 |
|
Anonymous wrote: | mith wrote: | hacked a little from the terminal to make 1.5 my default java machine for everything. |
Hacked? Terminal?
Try taking a look at the tool:
/Applications/Utilities/Java/J2SE 5.0/Java Preferences |
this app can only set the Java *Applet* Version to 1.5, *not* the default Java VM.
If you want a small (bash) script to change the javavm (not permanently) , just put this into your ~/bash_profile (found this somewhere on an apple Mailing list)
Code: |
# ***********************************************************************************
# Written by Shawn Erickson - shawn at freetimesw.com
#
# Feel free to use as you like but at your own risk :)
#
# Last Update: 2005y 08m 25d, 1:15 PM PST
#
# The following functions are meant for use with bash shell which is currently the
# default on Mac OS X 10.4 (starting with 10.3 IIRC) unless otherwise configured.
#
# If your shell is already set to use BASH then skip to install steps below.
# If you don't know what shell you are using by default then open a terminal
# window and type "echo $SHELL" and hit return. If it lists "/bin/bash" then
# you are using bash by default. If not you have the option of changing the
# default in terminal, globally for your user, or on demand.
#
# Terminal.app default...
# ...todo...
#
# Globally for user...
# ...todo...
#
# On demand...
# ...todo...
#
# How to "install"...
# ...todo...
#
# ***********************************************************************************
### Prompt ###
export CURRENT_MODE_STRING="";
function defaultPrompt()
{
_defaultPrompt()
{
CURRENT_MODE=$(echo $CURRENT_MODE_STRING)
}
PROMPT_COMMAND=_defaultPrompt
PS1="[\h:\$CURRENT_MODE:\w]\n> "
}
#defaultPrompt
### Java Environment Functions ###
J_VERSIONS_DIRECTORY="/System/Library/Frameworks/JavaVM.framework/Versions"
J_COMMANDS_SUBPATH="Commands"
J_HOME_SUBPATH="Home"
function availableJVMs()
{
ls -1 $J_VERSIONS_DIRECTORY | grep ^[0-9].[0-9]
}
function listJava()
{
local jvms=$(availableJVMs)
echo "Available JVMs: "$jvms
echo "Current Java:"
java -version
}
function setJava()
{
local target_jvm=""
local jvms=$(availableJVMs)
# Validate that the user requested an available JVM present on the system
for jvm in $jvms ; do
if [ "$jvm" == "$@" ]; then
target_jvm=$@
fi
done
if [ "$target_jvm" == "" ]; then
echo "Unsupported Java version requested"
return;
fi
# If we get here the user asked for a valid JVM, so configure it
echo "Configuring Shell Environment for Java "$@
# First unset any current set java, back to default before doing configuration
_unsetJava
# Generate the paths needed for the JVM requested
local jcmd="${J_VERSIONS_DIRECTORY}/$@/${J_COMMANDS_SUBPATH}"
local jhome="${J_VERSIONS_DIRECTORY}/$@/${J_HOME_SUBPATH}"
# We save the original path so we can toggle back if unset
ORIGINAL_PATH="$PATH"
PATH="$jcmd:${PATH}"
# We save the original JAVA_HOME so we can toggle back if unset
ORIGINAL_JAVA_HOME="$JAVA_HOME"
JAVA_HOME="$jhome"
# Update command prompt mode tag to note JVM setting
CURRENT_MODE_STRING="J$@"
echo "Current Java:"
java -version
}
function _unsetJava()
{
if [ "$CURRENT_MODE_STRING" != "" ]; then
PATH="$ORIGINAL_PATH"
JAVA_HOME="$ORIGINAL_JAVA_HOME"
CURRENT_MODE_STRING=""
fi
}
function unsetJava()
{
echo "Configuring Shell Environment for default Java"
_unsetJava
echo "Current Java:"
java -version
}
|
|
|
Back to top |
|
|
Guest
|
Posted: Fri Apr 14, 2006 4:22 am Post subject: Re: OOo and Java 1.5 |
|
mat wrote: | this app can only set the Java *Applet* Version to 1.5, *not* the default Java VM. |
Dumbass.
Look below the Applet setting and you'll see the applications setting. |
|
Back to top |
|
|
Guest also Guest
|
Posted: Fri Apr 14, 2006 6:10 am Post subject: |
|
^
|
|__Not the other Guest. Now, even though I may feel that way on occassion, I try not to post like that... |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Sat Apr 15, 2006 12:33 am Post subject: |
|
For the unaware, Neo itself specifies the version of the JVM that it should embed into its own address space. Installing Java 1.5 doesn't change which VM Neo uses since it's a fixed argument in a JNI structure.
Patrick, please feel free to correct me if I'm talking out my ass, but at least that's the way I did things years ago in OOo to instantiate a VM and I suspect it hasn't changed.
ed |
|
Back to top |
|
|
mat Pure-blooded Human
Joined: Oct 15, 2005 Posts: 35
|
Posted: Mon Apr 17, 2006 4:02 am Post subject: Re: OOo and Java 1.5 |
|
Quote: |
Look below the Applet setting and you'll see the applications setting. |
go ahead and change it there: Java 1.4 will *still* be the default Java VM.
just type java -version into the terminal and see the version number.
only the newer Developer preview actually changed the default from 1.4 to 1.5 |
|
Back to top |
|
|
LemonAid The Anomaly
Joined: Nov 21, 2005 Posts: 1285 Location: Witless Protection Program
|
Posted: Thu Apr 20, 2006 12:17 am Post subject: Re: OOo and Java 1.5 |
|
mat wrote: | Quote: |
Look below the Applet setting and you'll see the applications setting. |
go ahead and change it there: Java 1.4 will *still* be the default Java VM.
just type java -version into the terminal and see the version number.
only the newer Developer preview actually changed the default from 1.4 to 1.5 |
Patrick, Ed,
Now that Apple has released a updated version of Java 1.5 via Software Update, and the update changes default of OS X to 1.5 - does that change anythiing??
I saw that you said the Neo specifies what version of JVM Java.
1. Will Apple's update cause any problems?
2. Will the fixes Apple made to 1.5 fix any problems??
Philip (still ... sad ) |
|
Back to top |
|
|
|