This is why rather than using the Java "classpath" environment variable, which is the traditional place to declare dependency repositories, Tomcat's start scripts ignore this variable and generate their own classpaths when they create Tomcat's "system" classloader.
Fortunately for users who don't want to use the default class loading methods, Tomcat's classpath options are not hard coded - they're read from Catalina's central properties file, $CATALINA_HOME/conf/catalina.properties.
echo $CATALINA_HOME
Found this here : http://www.mulesoft.com/tomcat-classpath
Copy and paste the following line into the Terminal window.
Code:echo $CATALINA_HOME
Copy and paste the complete output from the window and post it here.
If the $CATALINA_HOME/conf/catalina.properties file exists can you attach it to your post?
Seems like Tomcat is screwing up the "classpath" environment variable. If kdum8 has no need of Tomcat it would be best to stop it from starting. Check to see if Tomcat is running by entering the following in your web browser: http://localhost:8080/
Take a look in the /usr/local/tomcat/bin/ directory if there's a file named shutdown.sh. Run it to stop Tomcat.
echo $CATALINA_HOME
cd /usr/local/
ls -a
Try this:
Create a new user account (non-admin). Log into it. Try the web browsers from that account, after enabling Java applets.
While still in the new user account, open Terminal and paste this into a window:
Post the output.Code:echo "$CLASSPATH"
So over at the new "test" account all is well in Java land, but here on my admin account things are the same, SNAFU. Does that help you anymore? 😛
ls -laeO ~
printenv | sort
Yes, it narrows it down a lot. It's something specific to that account, not something global to all accounts. Now I just have to think of what might be setting it for the admin account.
To start, run these two commands and post the complete output:
Code:ls -laeO ~ printenv | sort
arekisandas-macbook-pro-2:~ Alexander$ ls -laeO ~
total 232
drwxr-xr-x+ 53 Alexander staff - 1802 4 Oct 20:48 .
0: group:everyone deny delete
drwxr-xr-x 10 root admin - 340 6 Oct 02:16 ..
-rw------- 1 Alexander staff - 3 25 May 2011 .CFUserTextEncoding
-rw-r--r--@ 1 Alexander staff hidden 24580 6 Oct 17:45 .DS_Store
drwxr-xr-x@ 3 Alexander staff - 102 5 Feb 2009 .DownloadManager
drwx------ 7 Alexander staff - 238 6 Oct 17:44 .Trash
-rw------- 1 Alexander staff - 130 9 Jul 2010 .Xauthority
drwxr-xr-x 2 Alexander staff - 68 25 Oct 2008 .Xcode
drwxr-x--x 4 Alexander staff - 136 20 Jul 2010 .adobe
drwxr-xr-x@ 4 Alexander staff - 136 30 Nov 2008 .aladin
-rw------- 1 Alexander staff - 6394 5 Oct 14:15 .bash_history
drwxr-xr-x 3 Alexander staff - 102 6 Jun 2008 .config
drwx------ 3 Alexander staff - 102 18 Jun 2008 .cups
drwx------ 14 Alexander staff - 476 6 Oct 14:48 .dropbox
drwxr-xr-x 58 Alexander staff - 1972 1 Oct 17:46 .dvdcss
drwxr-xr-x 4 Alexander staff - 136 21 Apr 2009 .emacs.d
drwxr-xr-x 52 Alexander staff - 1768 10 Dec 2011 .fontconfig
drwxr-xr-x 14 Alexander staff - 476 10 Dec 2011 .fonts
-rw------- 1 Alexander staff - 2543 17 Jul 2010 .gnuplot_history
-rw------- 1 Alexander staff - 12288 17 Mar 2009 .helloworld.c.swp
drwxr-xr-x 5 Alexander staff - 170 3 Feb 2009 .inkscape
drwxr-xr-x 7 Alexander staff - 238 3 Feb 2009 .inkscape-etc
-rw------- 1 Alexander staff - 62 17 Jul 2010 .lesshst
drwx------ 2 Alexander staff - 68 22 Jan 2010 .macports
drwxr-xr-x 5 Alexander staff - 170 11 May 2011 .moneydance
drwxr-xr-x 4 Alexander staff - 136 19 Jun 01:43 .mplayer
drwxrwxrwx 3 Alexander staff - 102 6 May 2009 .nchsoftware
drwxr-xr-x 5 Alexander staff - 170 6 Oct 13:59 .oanda
-rw-r--r-- 1 Alexander staff - 676 22 Jan 2010 .profile
-rw-r--r-- 1 Alexander staff - 57 20 Apr 2009 .profile.macports-saved_2010-01-22_at_15:38:23
-rw------- 1 Alexander staff - 96 30 May 2011 .sh_history
drwxr-xr-x 3 Alexander staff - 102 6 May 2009 .smb
drwxr-xr-x 34 root staff - 1156 16 Aug 2005 .spumux
drwx------ 3 Alexander staff - 102 2 Apr 2009 .ssh
-rw------- 1 Alexander staff - 12288 16 Dec 2010 .swn
-rw------- 1 Alexander staff - 12288 24 Apr 2009 .swo
-rw------- 1 Alexander staff - 12288 28 Oct 2008 .swp
drwxr-xr-x 3 Alexander staff - 102 11 Sep 2009 .v-planner
-rw------- 1 Alexander staff - 1065 4 Jun 2011 .viminfo
drwxr-xr-x@ 2 Alexander staff - 68 19 Sep 14:56 .wapi
drwxr-xr-x 4 Alexander staff - 136 24 Nov 2008 .wits-db
drwxr-xr-x 2 Alexander staff - 68 20 Jul 2010 Applications
drwx------+ 10 Alexander staff - 340 6 Oct 17:45 Desktop
0: group:everyone deny delete
drwx------@ 21 Alexander staff - 714 26 Sep 16:24 Documents
0: group:everyone deny delete
drwx------+ 225 Alexander staff - 7650 6 Oct 17:45 Downloads
0: group:everyone deny delete
drwx------@ 12 Alexander staff - 408 6 Oct 04:30 Dropbox
drwxr-xr-x@ 6 Alexander staff - 204 6 Oct 04:30 Google Drive
drwx------+ 78 Alexander staff - 2652 6 Oct 15:39 Library
0: group:everyone deny delete
drwx------@ 28 Alexander staff - 952 10 Jul 01:04 Movies
0: group:everyone deny delete
drwx------@ 8 Alexander staff - 272 5 Sep 23:35 Music
0: group:everyone deny delete
drwx------@ 14 Alexander staff - 476 29 Sep 11:49 Pictures
0: group:everyone deny delete
drwxr-xr-x+ 6 Alexander staff - 204 18 Nov 2011 Public
0: group:everyone deny delete
drwxr-xr-x+ 9 Alexander staff - 306 22 Mar 2012 Sites
0: group:everyone deny delete
arekisandas-macbook-pro-2:~ Alexander$ printenv | sort
Apple_PubSub_Socket_Render=/tmp/launch-wE8YlN/Render
CLICOLOR=1
COMMAND_MODE=unix2003
DISPLAY=/tmp/launch-qWUqdS/org.x:0
HOME=/Users/Alexander
LANG=en_GB.UTF-8
LOGNAME=Alexander
LSCOLORS=ExFxCxDxBxegedabagacad
MANPATH=/opt/local/share/man:
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PWD=/Users/Alexander
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/tmp/launch-jey7GM/Listeners
TERM=xterm-color
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=273.1
TMPDIR=/var/folders/-u/-u1y9gJ6G54XvxNfOB8tRk+++TI/-Tmp-/
USER=Alexander
_=/usr/bin/printenv
__CF_USER_TEXT_ENCODING=0x1F5:0:2
arekisandas-macbook-pro-2:~ Alexander$
If Java Preferences does launch and show a window, post a screen shot of its main window with the General tab active.