Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Dang it, I was really hoping that would be it.

At this point I'm stumped, so I need to think about it more, and maybe come up with some new things to try. Don't expect that for at least a few hours.

If anyone else has any ideas, feel free to join in.
 
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.

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.
 
Last edited:
  • Like
Reactions: Irshad09
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.

Hi, thanks!

Right, I ran this code in the terminal
Code:
echo $CATALINA_HOME
but nothing was outputted at all, just blank. (I don't have to be in any particular directory to run this right?)

Where would I find the $CATALINA_HOME/conf/catalina.properties file if it did exist?

I went to http://localhost:8080/ but cannot connect.

Finally I had a look inside the /usr/local/ directory but couldn't see a tomcat folder? (This is assuming I checked the correct directory - I first entered
Code:
cd /usr/local/
and then typed
Code:
ls -a
to show all folders, but no Tomcat? Perhaps I am looking in the wrong place?
 
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:
Code:
echo "$CLASSPATH"
Post the output.
 
  • Like
Reactions: Irshad09
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:
Code:
echo "$CLASSPATH"
Post the output.

Thanks again for another suggestion.

Very interesting. Well there was no output from the code at all, (I can run it from any directory right?), but from the new user account you told me to create all Java applet runs perfectly. The test site, savevid.com, the broker's environment, everything.

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? :p
 
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? :p

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
 
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

Great! I ran both commands and here are the outputs:

Code:
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$
 
I don't see anything in the output of ls that might be something to directly interfere with Java. It's conceivable that some that's been installed by MacPorts (whose hidden directory ".macports" appears), but I have no way to guess what might interfere, and no way to know what you've installed.

However, I also don't see a CLASSPATH in the environment, so its previous appearance either wasn't in the exported environment, or it was spurious. At this point, I think CLASSPATH may be a red herring.


To see if Java works outside the browser or applet environment, I suggest launching "Java Preferences.app", which resides in your Applications/Utilities folder.

It may take several seconds to launch, but it should launch without error if the JVM is working at all. If it fails to launch correctly (stuck with Application Not Responding), or fails with a dialog, then post that information.

If Java Preferences does launch and show a window, post a screen shot of its main window with the General tab active.


For reference:
Making and upload screen shots
http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X
https://forums.macrumors.com/posts/14126379/
 
  • Like
Reactions: Irshad09
If Java Preferences does launch and show a window, post a screen shot of its main window with the General tab active.

Java Preferences did launch and the requested screen shot is attached.

Excuse my late reply, I was away for a while. Thanks again for continuing to look into this.
 

Attachments

  • Java Prefs.png
    Java Prefs.png
    45.5 KB · Views: 118
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.