Cocoa get version of Java?

I am working on an app in Cocoa using Objective-C. Is there a way I can determine which version of Java is running on the user's computer?

How would I use that? The command is run from a menu item in the GUI. So far I have simply looked at the CurrentVersion folder of Java in the System Frameworks folder and just looked at the folder that the alias pointed to.

Similar Messages

  • HI,  I need to jre 1.6 update 26 on my mac system to make some aaplication work. However latest available is jre 1.6 update 29. Could you suggest how I can get jre 1.6 update 26? I tried downloading older version on java. COuldn't find it on your site.

    HI,  I need to jre 1.6 update 26 on my mac system to make some aaplication work. However latest available is jre 1.6 update 29. Could you suggest how I can get jre 1.6 update 26? I tried downloading older version on java. COuldn't find it on your site.

    What are you missing?
    I inherited this app and signing the third party jars is how it was setup, I was wondering the same thing too, why was it necessary to sign the third party jars?
    The applet runs in either JRE 1.6.0_13 or JRE 1.6.0_27 depending on the other Java apps the user uses. JRE 1.6.0_13 does not have the mixed code security (so it is like is disable), but JRE 1.6.0_27 does have the mixed code security and the applet will not launch with mixed code security enable, so we have to disable it. With all the hacking going on in the last two years, is important to improve security; so this is a must.
    Yes, I always clear up the cache.
    Any idea on how to resolve this problem?

  • When I try to open a gradebook program called powerschool, I get a message that Java is not deteced, but my computer indicates that it has Java. I can't download any version of Java because I get a message that Apple has its own version of java.  My compu

    When I try to open a gradebook program called powerschool, I get a message that Java is not deteced, but my computer indicates that it has Java. I can't download any version of Java because I get a message that Apple has its own version of java.  My computer indicates that no new software updates are needed.

    Start here: http://support.apple.com/downloads/#java

  • How do I get the old java version (the one that worked) back

    I just did the lastest OSX upgrade.  OSX 10.7.   It did a few things to Java.
    1) It removed the Utility to select a Java version to run (umm, so how am I supposed to pick Java 1.5 for some old Java 1.5 apps?)
    2) It made some Java 1.6 applications that I need on my desktop to do my job not work.   Anyone heard of ScrumWorksPro.?  Barfing on a laf.jar that's missing from the new 1.6 version
    I can't seem to 'downgrade' back to the version that worked.   Does anyone have the zip file of the old version of Java that worked?  If so, where do I unzip it to.   I'm fine with launching my app from a terminal, I just need the jvm files so I can.  Looks like the installer (or my attempts to get rid of the new version by doing rm -r on every Java dir I could find) has gotten rid of the old version of Java.   I just can't seem to find the installer or the zip files to get the old version.
    Help!

    In Firefox 4 by default the Stop, Go and Reload (refresh) buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, Control-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • How to get oc4j version from Java program

    i have the following in my Java Program
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("java -jar oc4j.jar –version");
    and then i try to read the InputStream from the Process p.
    but this line is not executing, it returns the following error.
    Unknown switch: ?version, type java -jar oc4j.jar -? for help
    if i change it to ----------
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("java -jar $ORACLE_HOME/j2ee/home/oc4j.jar –version");
    then i get another error :
    Exception in thread "main" java.util.zip.ZipException: No such file or directory
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:65)
    but if i cd to /oracle/j2ee/home and then run the command java -jar oc4j.jar –version, then it gives me the right output with the right version, but for some reason the samething from inside the java program is giving me errors,
    please help. i just need to read the oc4j version running on the server and display it in JSP.

    Process p = r.exec("java -jar oc4j.jar –version");The character before "version" should be a hyphen; yours is not.
    Process p = r.exec("java -jar $ORACLE_HOME/j2ee/home/oc4j.jar –version");
    then i get another error : Exception in thread "main"
    java.util.zip.ZipException: No such file or directory
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:65)One more problem here: $ORACLE_HOME will be not be interpreted in the runtime.exec even if it is defined as an environment variable. So you get an error that tells you oc4j.jar is not found.
    Hope this helps you.

  • To get JRE or JDK version using Java Programs

    How do get JRE or JDK version using Java Programs?.
    Kindly Reply...
    By
    Mani

    If you're talking about current program's runtime environment (as opposed to all installed JDK/JRE) : System properties

  • I uninstalled Java get this messag - Missing JAVA? For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version.

    I am using Windows 7 premium 64-bit. I have uninstalled Java completely through Windows program manager. There is no Java in my list of plugins. Every time I update my plugins I get the following message - "Missing JAVA? For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version." I cannot find Java anywhere on my computer. Checked every troubleshooting website I can find but there seems to be no solution.

    hello, is this happening on the plugin-check page - https://www.mozilla.org/plugincheck/ ?
    if so, you can probably safely dismiss this warning since it's likely a mistake. when java isn't present, the site will give that warning message though a webpage cannot detect if this because of java being blocked or if it isn't even installed on the system.

  • I have MacBook 10.68.  Yesterday I downloaded the Apple version of Java which I must have to work remotely and now I get the message,"blocked plug in".  Any thoughts?  I cannot access website content any more

    I have MacBook 10.68.  Yesterday I downloaded the Apple version of Java for my system because my company requires it to work remotely but now I cannot access the content on various websites.  I get the message, "blocked plug in".  Any advice?  Thank you.

  • How do I get the old version of Java back?

    A few days ago I was prompted to download the latest Java update, which deleted and disabled Java. I need it for several work-related functions, so I downloaded the latest version - but the latest version doesn't work. Applications I need fail to launch. I think this is related to the fact that the new version doesn't support 32-bit browsers, but it doesn't really matter - I just want the old version of Java back.
    I know about the security concerns and I don't care. I just want the version of Java that I had a week ago.
    Where do I find it?

    Safari in ML is a 64 bit browser.
    Use your Time Machine backup to take your machine back in time to before the java deletion was installed.

  • How do I get different and older versions of java plugin to work

    I want to use firefox at my work, my company uses a program that uses java. But the programmers at my company aren't really good and when they check for the java plugin they check for the specific jre-6u21 instead of the generic with 6uXX. Sometimes I have to use another version of the program that requieres Version=1,4,2,06. They work fine with iexplorer.
    If I update to the current version (update 24) Firefox can't find the plugin. Explorer just gives a warning that you might be missing important security updates.
    Can Firefox give a warning or run with the latest version instead of looking for the missing plugins?

    This is what Oracle has to say about the problem: [http://www.java.com/en/download/faq/other_jreversions.xml Download older versions of Java]
    If you install an older version in Firefox it will be listed in Tools | Add-ons | Plugins and you can disable it there. But as Oracle mentions, using older versions potentially exposes your system to attack such as the one mentioned here: [http://www.h-online.com/open/news/item/Java-SE-6-Update-24-fixes-floating-point-bug-1190818.html Floating Point Bug]

  • 10.6.8 Java not working. "No compatible version of Java 1.5  is available"

    Hey Guys
    Firstly I would like to thank you for clicking this question and would ask you please if you have a solution to my problem answer whatever you can.  Anyway lets get on with it.
    Recently I have been having a problem on my macbook.  I am running 10.6.8 as said in title.  Previously i was having an inactive plugin error going on and the software update said there were no newer versions available.  However when looking for a solution for this by clearing my java cache ect. i somehow ended up with this problem.  Whenever I try to run a java based application such as minecraft it says "Cannot launch "Minecraft" No compatible version of Java 1.5+ is avaiable." Also when from this menu i try to open Java Preferences it says "You can't use this version of the application Java Preferences with this version of Mac Os X.  You have Mac OS X 10.6.8. The application requires Mac OS X 10.7 or later." I did not download java 1.7 or a different version of Java Preferences outside of the software update.  If you have any idea of what's going on please help me out.  I am struggling to get on with work and games without java even working. 
    Thanks for your help
    Will

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • After downloading the "new version" of Java 6 times, my plugin-check page states that it has disabled my "outdated version" and asks for me to upgrade. What do?

    Background:
    I have had this problem for several months, now. This problem began when an update came for Java on the Firefox Plugin-check. I promptly installed the new Java update. But the Firefox update wouldn't register that I downloaded it, even after I refreshed the page. So, I got rid of the old Java, and downloaded the new Java again. When the page continued to display the same message it had before, I downloaded it a few more times. Finally, Firefox stopped saying that I was out of date. Then a few weeks later maybe, I check Firefox Plugin, and on the page it says that I am outdated in Java. So I downloaded Java again. But Java was still in the list, with red and said that it needed to be updated. I restarted the computer. Then, I restarted Mozilla Firefox with no add-ons. When Java still appeared that it needed to be updated, I gave up and didn't do a thing more about it.
    Problem:
    Today I decided to check my plugins. Java was not in update the list, and at the top a banner stated, "Missing JAVA? For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version." I clicked "upgrade to the latest version" and was led to the Java page. I clicked the download button. My cache stated that this was the (6) download of that same Java plugin (see background). I chose to re-download it anyways. But Firefox still insists that I have not downloaded it.
    Question:
    Do I need to go to the control panel of Java and change something? Do I need to fix some setting on Firefox? Should I disable Java altogether, delete all Java-related files on my computer, and start all over with Java? What should I do?

    Try using http://ninite.com/java/ninite.exe to install Java. Please note that even though you download it you have to double click it to get it to run and install.

  • Warning for users of older versions of Java thinking of upgrading to 10.6

    I'm a pediatric oncologist and I use a MacBook Pro at work for many aspects of patient care. We have web based system that allows us to look at radiology scans from any computer via a browser. This system requires Java 1.4.2 to work -- it will not work with newer versions of Java.
    In OS X 10.5, I would simply switch to Java 1.4.2 when needed and back when I was done. Unfortunately, Snow Leopard only installs Java 1.6. This leaves me completely unable to look at scans from my MacBook Pro.
    Off the top of my head, if there was a way to take the Java 1.4.2 package from OS X 10.5 and install it on OS X 10.6, and to use Java Preferences to switch between Java versions, that would be a great solution for me, even with the understanding that Java 1.4.2 is EOL'ed and that no updates would be expected.
    Today I contacted Apple Support, and the official word is that there is no way to install Java 1.4.2 under Snow Leopard, and that my only option at this point in time is to go back to OS X 10.5.
    Unless someone can figure out a way to hack Java 1.4.2 from OS X 10.5 into Snow Leopard, that is.

    I was able to get Java 1.4.2 working with Safari in Snow Leopard tonight. Here's how to do it.
    1. Install Java 1.4.2 as outlined in this link:
    http://wiki.oneswarm.org/index.php/OSX_10.6_SnowLeopard
    Alternatively, extract Java 1.4.2 from the Java For Mac OS X 10.5 Update 4 installation package, and install it in a similar manner:
    http://support.apple.com/downloads/Javafor_Mac_OS_X_10_5_Update4
    2. Make sure that Java 1.4.2 is the first 32-bit application in the list. Under Java Preferences, my list reads:
    Java SE 6 64-bit
    J2SE 1.4.2 32-bit
    Java SE 6 32-bit
    3. Open Safari in 32-bit mode via the Get Info window for Safari. This is where I was getting screwed up. It finally occurred to me that Java 1.4.2 is a 32-bit application, but if Safari was opening in 64-bit mode, it wouldn't use the 32-bit Java apps.
    Once I opened Safari in 32-bit mode, Safari was able to use Java 1.4.2.

  • While opening SXMB_IFR i am getting a error  Java.lang.noclassFounderror

    U have installed SAP XI in my laptop while opening 
    SXMB_IFR i am getting a error  Java.lang.noclassFounderror
    so i not able to go further please help me
    thanking you
    sridhar

    Hi,
    There are number of ways to do that :
    1. Try this url
    http://<host-name or IP address of XI server>:<java Port number)>/rep/start/index.jsp
    If this is successful that means your J2EE server and services are fucntioning fine. The problem could then be on the ABAP stack.
    2. Can you start visual admin tool and check that all the services are running. You might have to manually start those which have not automatically started. Check the connectivity with all system & server (inc n/w) & Register the hostserver entry in your sys32/ host file
    e.g 10.2.4.56 <server name>
    3. Have you download java sdk 1.4 on you laptop?
    http://java.sun.com/j2se/1.4.2/download.html
    also have a look at this sap note: 801868
    (make sure not to install the 1.5 version of JWS. XI does not work properly with the 1.5 version)
    4. Lastly, u might have some problem with ur JRE installation. In that case i would sugesst you to re-install JRE/ Java WebStart.
    This blog may help you to analyze the errors-
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Refer
    XI Installation problem  
    XI Installation problem
    503 error in SXMB_IFR
    XI Initial screen problem  
    XI Initial screen problem
    thanks
    Swarup
    Edited by: Swarup Sawant on Feb 19, 2008 8:42 AM

  • After updating to latest version of Java (7.10) it no longer works and JRE has disappeared from my plugins list

    On checking my add-ons and plugins I attempted to update Java Run Time to latest version as firefox said it was outdated.
    I tried installing new version JRE 7.10 manually and through firefox (which said the installation was successful). When testing it, I get told that Java is not working and that a plug in is missing. Can not check whether the new plugin is enabled as JRE has disappeared from the plugins tab (Only Deployment Toolkit appears).
    The Java control console says that it was successfully installed in all browsesr. I have tried uninstalling and reinstalling Java 3 times and keep getting the same result. Java is working fine on chrome and IE so problem must be with FF.

    i have already tried installing the offline version but Java SE7U10 does not show in the add-ons menu and Java doesn't work

Maybe you are looking for

  • Upgrade from sqlserver 2008 to sqlserver 2014, can I put software into different drive other than C: ?

    Originally my sqlserver 2008 software was installed into E:, but I didn't see any drive selection options available during the upgrade steps, so now my sqlserver 2014 is installed into default C: drive. If there are any ways to specify different driv

  • My iPhone4 keeps restarting and now I can't even restore it. HELP!

    My 2 month old iPhone4 keeps restarting and after trying to restore it its absolutely useless becauseit wont stay on long enough to restore. My entire business is on this phone and I would really prefer to not have to send it back to Apple.

  • No sound on avi clips

    I am new to CS5 premier pro. I have avi clips on time line ( vid and audio waves ) but no sound. Have gone into preferences to determine proper output but to no avail?  Mind you clips play properly on widows media player and on Adobe On Location, als

  • Error 1000 when opening a vi from tools menu

    Hi All, I have created a vi(attached), which creates a new library and adds another vi to it. This vi seems to be working fine when we open and run it from its location on the disk. If I try opening and then running this vi by selecting it from the L

  • Deletion of confirmation

    Hi,    I want to delete the confirmation which has status  error in process as a result I don't have deletion button active. Is there any FM which can be used for this activity. Please advise asap.