• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Java Preferences

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Recently I did an reinstall of Tiger (10.4) on my G5 iMac. I completed all the updates, and updated Java to 1.3 and 1.4. I did not want to update to Java 5 because I am developing some apps that have to work on older machines, and I want to be sure I am working in a 1.4 environment.

However, I have looked for the Java Preferences app, which according to all that I have researched, should be in Applications/Utilities, but it is not there.

sudo find / -name "Java Preferences" comes up with nothing also.

Does anyone have a suggestion as to how I can get Java Preferences on my machine?

Thanks,

Allasso
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry can't help you with the Java Preferences.

...and I want to be sure I am working in a 1.4 environment.


You can open a terminal and run java -version to find out which java version you are running
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using 'find', you would have to search for 'Java Preferences.app', not just 'Java Preferences'. Try using spotlight, though -- you don't have to be so accurate in your search terms.

That's odd that it's missing!
 
Allasso Travesser
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I updated to Java 5, and that gave the Java Preferences app. According to the Apple tech notes, that app only came with the Java 5 update on Tiger.

You can open a terminal and run java -version to find out which java version you are running



That will only tell me which version I am using, it will not change it. There are some very >>limited<< options in Java Prefs to change the version applets use, but you cannot guarantee that apps will use a certain version. There are other options however; Google "change Java version mac" and get a plethora of (sometimes passionate) debate on the matter.

The simplest is to change the default JDK by changing the symlink in /System/Library/Frameworks/JavaVM.framework/Versions to point to the version you want (this is where the passion comes in)

eg:

cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo ln -fhsv <directory_of_version_I_want_to_be_default> CurrentJDK

here is a nice little shell script that will do that for you (along with a lot of passionate debate following):

http://hints.macworld.com/article.php?story=20060121171126988

If you want to do it the "Apple" way, here are two good helps, and the reasons why changing the symlink may not be a good idea (which are worth considering):

http://developer.apple.com/library/mac/#releasenotes/Java/Java50Release3RN/UsingJ2SE50/UsingJava5.html#//apple_ref/doc/uid/TP40003184-CH5-SW1

http://hintsforums.macworld.com/showthread.php?t=47531
(this one also gives a good primer on Java versioning on a Mac. Well laid out, IMO)

Thanks

updated 2011-02-09
 
Allasso Travesser
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I updated my last post with some hopefully useful information...
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic