Java home in mac OSX

i have installed java 1.4.2 in Mac and set the path to a location.
like
export JAVA_HOME={some path} in the .bashrc file
But when ever i run the following command from the terminal
$which java
it shows the default java path instead of one put in .bashrc file
pls help asap

You are off-topic, try http://forum.java.sun.com/forum.jspa?forumID=54 instead.

Similar Messages

  • Errors running Java app on Mac OSX

    Hello,
    I've written a Java application and packaged it as a JAR file that runs fine on Windows. When I try to run it on
    Mac OSX, though, I get the following error:
    % java -jar Clavis.jar
    Exception in thread "main" java.lang.NoClassDefFoundError:
    java/awt/KeyEventDispatcher
    at Clavis.main(Clavis.java:7)
    I'm assuming this means that the program needs and is somehow not getting access to the java.awt.* classes it requires. How can I tell it where they are? Is it possible to do this within the JAR file so that users don't have to configure this manually?
    Five dukes for the first good answer!
    Thanks much--
    David

    From Apple's Java FAQ:
    Q: When will Apple have an implementation of J2SE 1.4 available?
    A: A Java 1.4 Developer Preview was released at WWDC2002 to all seeded ADC members. This pre-release has only been qualified against the WWDC Jaguar seed, and has not been qualified against any other seeds/builds, including the final release of Mac OS X 10.2. It is for this reason that the WWDC preview has remained unavailable to ADC members, even though Jaguar has shipped.
    The product development cycle includes plans to seed an additional, more complete prerelease version of J2SE 1.4.1 to developers. Specific dates for releases have not been determined and are in part dependent upon Sun's release schedule. Please note that J2SE 1.4.x will not be available in any form for versions of Mac OS X prior to 10.2.
    If it follows the same pattern as past releases, the answer to your question will probably be months, albeit a low number of them, from Sun's official release date of 1.4.
    -SC

  • DB2 java dbms for mac osx?

    Hi! i know this might be irrelevant at first sight.
    First of all i am running mac osx and i want a decent dbms system.
    i'm working on a windows db2 server but i want to port my java application for that dbms to mac.
    Do you know any db2 compartible system? (Of course i'm working with java clients)
    Thank you!

    Metalburma716 wrote:
    I have a macintosh Dual G5 running OSX 10.4 and I want to download a compiler, IDE, etc.. so that I can learn to program. I've tried eclipse and I just having a lot of trouble finding something that will work for me. Can anyone please help? thank you so much in advance, Daniel.An IDE is a massive development environment, worthy of plenty of learning time all by itself. Use the command line tools, get used to the concepts of classpaths, and how to structure your projects in the file system first. Then when you have mastered the basics of Java you can move onto the complications of integrated development environments. You can get nice syntax colouring from simple text editors such as TextWrangler, and TextMate.
    IDEs are not beginners tools.

  • Java Malfunction in Mac OSX 10.5 - .jar files won't open

    All of a sudden none of my .jar files will open (most importantly the dimsum.jar which I use almost everyday). I have run a clean up of my cache and tried everything I can think of to bring back the .jar operations and nothing works as it did before. Upon attempting to open the file my Console messages consist of a huge list of font names something like (0x0-0x233233.com.apple.JarLauncher1561 Type: TONES Name: ZoobeSSK-BoldItalic) and I get a loading window that freezes never leads to the main program.
    I had this problem before and I simply rearranged my Java preferences so the 32-bit J2SE 5.0 was at the top of the list and it solved the issue but this time it didn't work. Right now my Java Applications list order is like this
    J2SE 5.0 32-bit
    Java SE 6 64-bit
    J2SE 1.4.2 32-bit
    J2SE 5.0 64-bit
    Being that I am not an official "developer" and that I only basically know my way around OSX, I thought maybe I could skirt the problem by changing my .jar file into an .app and skip the Java console all together. So I DL'd jarbundler which it turns out is also a .jar file and it won't open either. I simply get a message saying "The Java JAR file "jarbundler 2.1.0.jar" could not be launched."
    Here is the Console message when I attempt to open Jarbundler.jar if this helps:
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100142770, p = 0x100142774, pEnd = 0x100142778)
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012d530, p = 0x10012d534, pEnd = 0x10012d538)
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 Failed to load Main-Class manifest attribute from
    10-1-28 上午07:34:44 0x0-0x503503.com.apple.JarLauncher3309 /Users/XIV/Desktop/jarbundler-2.1.0/jarbundler-2.1.0.jar
    Can anyone PLEASE suggest a solution? Or a reason as to why this might have happened when it was working fine a month ago and how to prevent this from happening again?
    Thanks in Advance

    Recently nothing has really changed... I tried reinstalling my stock fonts and that didn't help. The programs that aren't working are Dimsum (http://www.mandarintools.com/dimsum.html) and Jar Bundler that comes with the Apple's free Xcode Developer Tools. I thought if I could get Jar Bundler to work I could turn Dimsum into an app and dodge the problem altogether, but that didn't work either... My Java is updated (according to my computers Software Update window) and everything else seems to be working fine... I hope it doesn't turn into a system reinstall...

  • HT1338 Cant find find Java 6 for Mac OSX 10.4.11

    Go to Java's website, it says use Software Update.  Software Update says that there is nothing to update - but I am missing Java 6!!!

    You need to install Snow Leopard to install Java 6. You cannot on a PPC computer. You must have an Intel machine. To get the latest available Java you can run you will need to purchase and install Leopard. Look for copies on eBay and Amazon.

  • Mac OSX 10.7.5 + Java 7.11 Juniper Network Connect fails

    I am running Mac OSX 10.7.5 and just upgraded to Java 7.11. As a result, my Juniper Network Connect vpn now fails - I can't even install the software. I see the following error message "An error occurred while extracting one of the Network Connect components." I made sure the keystore password was set to changeit using the following:
    sudo keytool -storepasswd -new changeit -keystore /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts -storepass changeme
    However, I continue to see "An error occurred while extracting one of the Network Connect components."
    Any ideas?

    retrana wrote:
    I made sure the keystore password was set to changeit using the following:
    sudo keytool -storepasswd -new changeit -keystore /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts -storepass changeme
    However, I continue to see "An error occurred while extracting one of the Network Connect components."
    Just a guess, but that looks to be the location for Apple Java 6, which is not replaced when you upgraded to Java 7, rather Oracle stores it in a different location.
    It's also possible that Juniper has not updated their software for Java 7.  I know that's true for at least one other VPN vendor.

  • HT1338 I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working, what can I do to fix's this?

    I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working,what can I do to fix's this?

    Run Software Update to get to 10.6.8 and update Java.

  • The Java for Mac OSX 10.5 Update 10 removed the Java plugin from Firefox 5.0. How do I re-install it?

    I've just installed Java for Mac OSX 10.5 Update 10 and can no longer run Java Applets from Firefox 5.0

    Dear Craig,
    Macbook Pro 2.4GHz Intel Core 2 Duo 4 GB RAM
    I'm sure that this is 64-bit
    CF 8.0.1 Enterprise Build 3080
    I had moved the Java SE 6 to the top in both Plugin and Applications. The
    correct version is showing in the terminal window. See below.
    Last login: Thu Jun 18 11:27:09 on ttys001
    Beta-4:~ Colin$ java -version
    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
    Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
    Beta-4:~ Colin$
    CF will not start. I have the activity monitor open, and when I start CF you
    see it in the activity monitor for a few seconds as it starts up. When the
    message process is completed in the terminal window CF disappears in the
    activity monitor.
    Any suggestions?
    C
    Hi, Colin,
    My apologies but I forgot to ask 2 questions: (1) What kind of Mac you have
    (Intel or PowerPC)? (2) What version of CF are you running and what installer
    did you choose (8 or 8.0.1, 32-bit, 64-bit, etc.)?
    To start, try the following:
    1. Normally you'd shut CF down first ... but that's not necessary for you
    2. Open Java Preferences again
    3. Select Java SE 6 and move it (drag) to the top spot in both section (Applet
    Plugin and Applications)
    4. Open Terminal
    5. Type java -version (you should see 1.6.0_13 as the new version)
    6. Try to start CF again
    This may not work (I've had issues with it) but it's technically how it's
    supposed to work. With the Java Preferences utility, you're visually setting a
    default JVM (you can do it with commands in Terminal but this is much faster
    and easier).
    If CF still won't start, look for the jvm.config file in your CF application
    folder (try /Applications/ColdFusion8/bin or
    /Applications/ColdFusion8/runtime/bin -- the latter is where a jvm.config file
    is on my machine for a particular version of CF that's installed similar to
    yours). You can override the JVM in this file but, hopefully, that won't be
    necessary!
    Best,
    Craig

  • How Do I Get Java For Mac OSX 10.5.8 On A PowerBook G4 Or Update To Minimum MAC OSX 10.6.8 or later Without Spending Any Tech Mind Of My Own And Also Not Buy ANYTHING AT ALL!!!?????

    How Do I Get Java For Mac OSX 10.5.8 On A PowerBook G4 Or Update To Minimum MAC OSX 10.6.8 or later Without Spending Any Tech Mind Of My Own And Also Not Buy ANYTHING AT ALL!!!????? Please Help!!!

    Sorry, it's for 64 bit IntelMacs only...
    updating Java SE 6 to 1.6.0_26 for 64-bit capable Intel-based Macs. 
    Java for Mac OS X 10.5 Update 10

  • HT1338 I wonder if somebody can help me. I am not able to use my internet bank anymore, since Java launched their latest update (7.51). Appearently this one is not compatible with my hardware. I am using Mac OSX version 10.6.8, and Java version 17.0. Than

    I wonder if somebody can help me. I am not able to use my internet bank anymore, since Java launched their latest update (7.51) a few days ago. Appearently this one is not compatible with my hardware. I am using Mac OSX version 10.6.8, and Java version 17.0, which seems to be the newest one for my op sys. Anybody know how I can solve this? In advance thank you!

    Apple support article to enable Java 6.
    Java 6 Enable

  • MAC OSX 10.9 and Java Web start

    Hello All ,
    We are facing a warning when we tried to launch the JNLP on MAC using Java 1.7_45 .
    Warning message - "This Java Application will be blocked in a future Java Security update because the jar file manifest does not contain the Permissions attribute . Please contact the Publisher for
    more information "
    Warning is about adding permissions to application jar files but we have already done this on all the jars .
    Added code base and permissions attribute in manifest file of each jar . This works fine on Windows 7 and XP with same Java version .
    Example -
    Permissions: all-permissions
    Codebase: code base location from jnlp
    Interestingly Java console does not show any warnings so i am not sure why Java is showing this message that the application will be blocked in future java releases on MAC if permissions is not added to Jar file  .
    Looking at all the testing it seems there is some kind of issue between Java 7 update 45 and MAC OSX 10.9
    (As the same jnlp works without any warnings on other OS )
    Any help will be much appreciated .
    System Details
    OS - MAC OSX 10.9
    Java - 1.7_45
    thanks
    Rupesh

    Hi,
    The Drivers are available via Apple Software Update,
    In order to configure it wirelessly you may use the HP Easy Wireless Install app.
    You may find a step by step guide in the following document:
    h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?sp4ts.oid=4337543&spf_p.tpst...
    The app iself can be downloaded from the Mac App Store:
    https://itunes.apple.com/us/app/hp-easy-wireless-setup/id876495880?mt=12
    If you experience any issues while trying to locate the pritner during the wireless configuration. restoring the network defaults for the printer can be done by pressing and holding both the Cancel ( ), the Wireless ( ), and the Power ( ) buttons for three seconds.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • My wordpress home page will not display any active information in Firefox 15 on Mac OSX Lion.

    Hey All,
    I've tried many things to resolve this issue, but none of them seem to be working. For some time now I have not been able to see the homepage of wordpress.com with full information i.e. stats, notifications, etc. I'm running Firefox 15 on Mac OSX Lion with the following settings and add-ons. I've tried disabling the various privacy add-ons one-by-one to no avail. Please help!

    The only active thing I see on that page is the banner near the top which keeps changing: "For the cat pictures", "For the poet", etc. Do you not see that? I did not see any link for "Home". Try these pages:
    * http://kb.mozillazine.org/Websites_look_wrong
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    Incidentally, it seems to me that you are using Mountain LIon, not Lion. Mac OS 10.8 is Mountain Lion.

  • Where can I download Java version 1.6.0_26-b03-384 for Mac OSX 10.6.8?

    Where can I download Java version 1.6.0_26-b03-384 for Mac OSX 10.6.8, please? I cannot find it anywhere on the internet and i need it because Firefox is complaing that the plug-in is inactive which is BS.
    Thanks.

    Snow Leopard:
    http://support.apple.com/kb/DL1360
    Note: Java 1.6 for Leopard is 64 bit only, but for Snow Leopard it is available for both 32 and 64 bit.
    http://www.roguish.com/blog/?p=266
    Since August 2012 updates for Java (and especially Java Runtime Environment, which is what you actually need) must now be downloaded direct from Oracle:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.h tml
    (which is for Java 7)
    Further information here:
    http://www.oracle.com/us/corporate/press/1735645
    and their FAQ’s:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html
    The recently discovered zero-day flaw in Java 7 is so serious that the U.S. Department of Homeland Security has warned users to disable or uninstall it, and Apple has disabled the Java 7 plugin on Macs through its OS X anti-malware system, in order to protect users from a potentially serious security issue.
    You should disable Java (if not already done) until either the US Department of Homeland Security, or Oracle, declare it safe and Apple restore the facility. Oracle have released an update said to fix the security flaw, available from here:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.h tml
    Javascript should not be disabled (it has nothing to do with Java).
    However, if you need the Jave 6 JRE and plug-in, MadMAC0 has posted at
    https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182
    Apple has also posted (Oct 22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • Is following message due to 'Java' setting left unchecked? Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Is following message due to 'Java' setting left unchecked?
    Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Man that is an ancient message.
    The last time I saw that was using Mac clients connected to a Microsoft (Windows) Server running 'Services for Macintosh' which included the ability to act as an AppleShare compatible file server. Because Microsoft have a different security system for defining accounts which includes the 'domain' as well as username, the standard Mac AFP client did not know how to send that information.
    Therefore Apple made it possible to installed a plugin in the form of a UAM or User Authentication Mechanism which added the ability to send this information to login to the fileserver.
    See http://support.microsoft.com/kb/101747
    However Microsoft have long discontinued 'Services for Macintosh' and now the only way for a Mac to connect to a standard Windows Server is via SMB not AFP. I don't believe this plugin is available to download anymore.

  • "Invalid Java Home" when installing Weblogic 10.3.1 on Mac OS X 10.6

    I'm hoping someone can help me. I'm trying to install the generic [Weblogic 11g (10.3.1)|http://download.oracle.com/otn/nt/middleware/11g/wls/wls1031_generic.jar] on Mac OS X 10.6 (Snow Leopard), which supposedly has a JDK 1.6 installed.
    It can't seem to find a JDK, and when I tell it to use the following:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    I get an "Invalid Java Home" error.
    Has anyone successfully done this on OS X 10.6?

    Just as an update, we're soon to release the WLS 11g R1 PS2 update, which will contain WLS 10.3.3 just to confuse things.
    As part of that, we're distributing for the first time, an additional .zip version of WLS to make it easier for developers.
    The zip file distribution has no GUI installer -- it's a simple case of unzip, run a script it provides, then start the server.
    The zip file distribution has been specifically tested on Mac OS X and the WLS config/domain scripts automatically adjust as necessary for the Mac OS X java environment.
    Once the zip file distribution is available, we hope that developing against WLS on Mac OS X (and Windows/Linux) will be an easier task.
    -steve-

Maybe you are looking for

  • How do I best upgrade a multiworkstation app using DSC from LV7.2 to 8.6?

    I have an extended, properly functioning process control and data acquisition application running across multiple workstations (roughly 10). The workstations share information with each other and with process controllers via DSC and OPC. We're curren

  • Links in old posts broken

    I've been getting alerts from old threads where a poster complains about a post I made with a link and the link is broken.  Here's an example.  Finding back these posts hasn't been easy until I discovered the pattern.  The original link in the post w

  • Oracle Service Bus and Financila Message Designer

    Hi, I am new to OSB and FMD so want some good working examples/samples which can explain how to call the FMD cartridge from OSB.

  • Isometric grid

    I need to be able to easily make an isometric grid so I can use it as a guide.  It doesn't need to have lock into position or anything, I just need a back ground image so i can layout isometric objects for an isometric game.  I need something that wi

  • Safari autodownload

    Hi All, When you click on a link in Safari that opens up a pdf file or a ppt, word file, Safari ALWAYS downloads it to the desktop instead of giving me the option of opening without downloading. How do you make that option available? Or at least let