Versions in Java

are there different versions of Java?

javac -version
i dont know what that means. i am completely new to
javaRun the compiler with command line option "-version". It will print out a message that includes its version number.

Similar Messages

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

  • Will 2D objects in java.awt.geom.* be Serializable in next version of Java?

    I am pretty frustrated about having to write my own Serializable classes. I'm not sure if this is the right place to ask, but will the next version of Java supports Serializable 2D objects?
    Further, I was trying to write my own class to extend java.awt.geom.GeneralPath to become Serializable, but it's declared "final". What should I do? (I had no problems with Rectangle2D.Double, Line2D.Double, etc.)
    Any help is greatly appreciated.
    Selwyn

    Your code for serializing the state of the General path forgets two things:
    1. the winding rule
    2. the segments types!
    You could use a vector, but I just directly wrote to the file:
    private void writeObject(ObjectOutputStream oos) throws IOException
    {     out.defaultWriteObject();
         //write state of transient GeneralPath _gp;
         out.writeInt(_gp.getWindingRule());
         float[] coord = new float[6];
         PathIterator i = _gp.getPathIterator(null);
         while(!i.isDone())
         {     int seg = i.currentSegment(coords);
              writeInt(seg);
              //switch on seg, writing correct # of floats from coords
              i.next();
         out.writeInt(-1);     //sentinel for end-of-data: SEG_LINETO etc are [0,4]
    private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
    {     in.defaultReadObject();
         int rule = in.readInt();
         _gp = new GeneralPath(rule);
         //etc...
    }3. I'm just winging this code -- haven't tested it
    --Nax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am trying to use a website that requires that my computer have the lastest version of Java, which I have updated and installed, however Firefox does not recon

    I am trying to use a website that requires that my computer have the latest version of Java, which I have updated and installed Java 7 Update 51 (64-bit), however Firefox does not recognize that I even have Java on my computer. My computer is 64-bit
    When I run "Verify Java Version" it show nothing is installed... but it is, I know that for a fact because it shows in my "Control Panel/Programs/Programs and Features".
    When I go back to the Java Download page, the following message is visible:
    "We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers."
    My question is this:
    Is there a way to change my Firefox browser from 32-bit to 64-bit.... because it appears that this is way Java is not functioning properly?

    Firefox needs 32-bit plugins, so you'll need to install 32-bit Java for Firefox.
    No, you can't change Firefox from 32-bt to 64-bit. There is a Nightly 64-bit version (alpha) of Firefox, but it is used only to test for regressions until development is resumed.

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

  • Deleting old version of Java disabled ability to open AP and PO Accrual Rpt

    Hi I am an end-user and we are in the process of testing Oracle Financials, Purchasing, etc in order to upgrade to the latest version of Oracle. My IT group fiddled with my laptop and said I had 2 versions of Java and apparently deleted the old version on my laptop. Ever since then, I have been unable to open/view the 1) AP and PO Accrual Reconciliation Report and 2) Summary Accrual Reconciliation Report from the Purchasing module of Oracle. I can still view other financial reports that I run ( i.e. Inventory Value Report from Inventory module, Journal Entries Report from GL, Receiving Transactions Register from A/R). I currently have Java 6 update 29 installed but I am still unable to open reports from the Purchasing module.
    Can anyone figure out what happened and how do I re-enable the ability to view those Purchasing reports again?

    Did you substitute the VO or replaced the original VO itself? Check About this Page/Personalize Page to see the VO has modified query or not. If yes, try restarting the server (Apache bounce doesn't work sometimes, complete bounce/restart fixes the issue. I don't know why :-) ).
    Thanks
    Shree

  • Multiple version of Java on one machine

    Is it possible to have multiple versions of Java co-exist on the same XP Pro machine?
    Here is our scenario: we have apps that use Java 1.5, but we have one critical app that doesn't support that version yet. It has to use the 1.4 version. Is there a way to allow both versions to exist and be usable for their respective apps? If so, how?
    Thank you.

    I can't, however it's never a good idea to have
    multiple versions of Java on one machine. Try and
    standardise if possible. If OP used JAVA_HOME as you
    often suggest, then he would be knackered wouldn't
    he? JAVA_HOME can only point to one JDK. Your
    advice is conflicting kaj.Nope. JAVA_HOME should always be defined in the start script/file for a java application, so it's not set per system. It's very common that companies have applications that requires different JDK/JRE versions, and it's usually very expensive to upgrade all applications (if it's possible at all). You can of course also alter the PATH variable if you want to in the script.
    /Kaj

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

  • How do i install a version of Java

    Hello,
    I have to make an exercise and they have told us to download the latest version of Java.Although, i have already some versions of Java in my PC.
    I have in my Program Files a folder named java which contains the following folders : jdk1.5.0_15, jre1.5.0_15, jre1.5.0_06
    Could you please send me a link where i can download the new version of Java?
    Also, if i download the latest version of Java do i have to delete the (*jdk1.5.0_15, jre1.5.0_15, jre1.5.0_06*) folders?
    I have downloaded netbeans, is netbeans going to work with the new version?
    Thanks in advance! :)
    Edited by: g_p_java on Oct 18, 2008 8:02 AM

    g_p_java wrote:
    Could you please send me a link where i can download the new version of Java?[http://www.google.co.uk/search?q=jdk+download]
    From the same place you download netbeans.
    Also, if i download the latest version of Java do i have to delete the (*jdk1.5.0_15, jre1.5.0_15, jre1.5.0_06*) folders?no.
    I have downloaded netbeans, is netbeans going to work with the new version?The new netbeans version will. You can download them together.

  • Error while installing Netweaver 04s sneak preview trial version for java

    Hi Experts,
    I am trying to install SAP netweaver 04s sneak preview trial version for Java in my own desktop.  While installing, it is showing the following error
    ERROR
    CJS-30129  Creating node $(DIR_TRANS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:Unable to create node
    abcd\sapmnt\ with type DIRECTORY: can't create parent node..
    ERROR
    CJS-30129  Creating node $(DIR_TRANS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:Unable to create node
    abcd\sapmnt\ with type DIRECTORY: can't create parent node..
    ERROR
    FCO-00011  The step createSystemDirectories with step key |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|6|0|createSystemDirectories was executed with status ERROR .
    I gave the database host name as the name of the computer.  While installing the 3rd step, the above error is displaying.  can anyone guide me how to proceed further.
    regards,
    vv

    how are u trying to install it.....i mean...are the source and the installtion drive on the same PC?

  • 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

  • Java applets won't load, have latest version of java installed, have removed all old versions from the hard drive, java console not working in firefox, any suggestions please ?

    java applets will not load,
    i have run the java test page & i have the latest version installed.
    have removed all old versions of java from my hard drive & restarted the computer.
    i have checked that java is enabled in the plug-ins and it is with version se 6 u22, also something called java development toolkit 6.0.220.4 np runtime script plug-in library for java (tm) deploy.
    if i click on java console in tolls nothing happens

    Hi,
    You might want to look in your control panel for 'Java' icon. It should give you an option to enable java plugin into your browser. Let me know if you still face the issue.
    Thanks!

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

  • Msg: "No compatible version of Java 1.7+ is available"

    Hi,
    I recently upgraded my mbp to Mavs. Most everything owrking fine, but trying to launch a certain software I get the message, ""No compatible version of Java 1.7+ is available."
    I know nada about Java.
    Typing 'java -version' into Terminal I get:
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
    Does Mavs run 1.7?
    Any info on what it means or suggestions on what to do?
    best,
    elmer

    Thanks!
    Just criously, how come I don't have a Java icon in System Preferences? I thought 10.7 and up are supposed to have it.

  • "No compatible version of Java available"

    Getting "no compatible version of java available" when trying to open Vuze.
    Is there no Java support for my Mac OS X 10.6.8. ? Thanks...

    if you cant find a Vuze with a java 6 compatibilty, then you will have to add Java 5 back into your 10.6.8.
    It is not supported by apple so its a bit tricky to do but can be done.  Instructions to do so are posted on the web.... google it.
    I had to do this also because of a java 5 based sofware gui that works with a very expensive rip system... would have cost me about 10k to upgrade inorder work with java 6. 
    When sotware becomes obsolete or unsupported, the manufacturers either don't think or don't care about the very expensive snowball effects that can occur.

  • How to avoid "The application requires an earlier version of Java. "?

    Hello, I deployed a Java applet built like this
    javac -source 1.4 -target 1.4 foobar.javaThe reason why I do it this way, is that many public libraries, have computers that only have Java 1.4 installed (and I found one case with 1.3 but decided not to go that far), and the users have no way to upgrade them. Hence if I want to deploy an app that can be used by most everybody, which is the whole idea of Java, then I have to use 1.4, no choice.
    OK, now I also have users who have the latest Vista and Firefox. On those computers, they see the following warning when my applet tries to run:
    "The application requires an earlier version of Java. Do you want to continue? Run or Cancel The required version of Java, 1.6.0-oem, is not the latest and may not contain the latest security ..."
    Of course, after seeing this kind of warning, I am losing a lot of those users immediately. (and by the way, I am built with 1.4, not 1.6-whatever)
    This message is widely reported on the Internet and the solution is always similar - some variation of "uninstall and reinstall the latest Java".
    This of course is a NON_STARTER. I cannot request my users, to reinstall Java. they won't bother. The whole idea of Java applets, again, is that I write an applet and the user sees it without having to tweak around with their computer.
    So I guess my question is: what can I do in my applet, to prevent these messages from happening on Vista, and at the same time be accessible to public lib computers with Java 1.4?
    And second rhetorical question: why can't Sun get their act together and deploy a platform where I can just write my code according to their specs and it will run according to their specs, without any warnings to scare away half of my users??? Please Sun tell me.
    Mark
    Edited by: Mark_Galeck on Apr 18, 2009 10:33 PM

    Mark.
    [1.4 is EOL|http://java.sun.com/j2se/1.4.2/] so I suggest you target 1.5.
    Youe contention that world should not change because a small proption of near-sighted troglodites insist on wearing frilly collars is complete bunkum. Get over it. Fast.
    If ever I get the chance, I shall tell Sun to continue doing exactly what they are doing with regards to developing the core Java language. Hire the best engineers; go forth and prosper; insist on backwards compatability; and never mind the bollocks (here's the sex pistols).
    ... or maybe one would prefer the MS .NET platform, where no version is at all backwards compatible with any previous one; is supported for just three years; with each CLR occupying a full third of ones modest laptop hard disk?
    Be careful what you wish for. You just might get it.
    ~~ anonCheers. Keith.
    Edited by: corlettk on 19/04/2009 16:27 ~~ Typoes!

Maybe you are looking for

  • Interview questions - TCS - anyone please reply

    Hi Gurus, 1)How will we upload vendor open items and transaction data 2)Explain GR/IR automatic clearing during month end activities 3)Explain about automatic account determination 4)Explain about account assignment model 5)What is the use of sub ban

  • XML Publisher (EBS) Bursting and Group By

    I have a feeling I already know the answer to this question, but maybe not and there is a way around it. I'm using the seeded report Deposit Advice XML from EBS, and I copied it so I can use bursting. Here is my problem. The xml is not grouped by the

  • Time Capsule Problems - Possibly Anti Virus Related?

    I have had a 500gb Time Capsule for several months and despite several calls to tech support, I have not been able to get it to properly back up. Could it possible be related to the McAfee anti virus software that I have running? The backup will star

  • Mac mini connect to pc

    Hi, I would like to connect a mac mini to a PC, so the mac mini can use the processors and hard drive of the pc is this possible. Thank Rick

  • Online search engine code using Spring+JDBCTemplate

    Hi , I have a requirement to create the search engine using Spring and JDBCDao Support. So, any one can help me in coding. hope for help, thanks and regards vasan