Java programs which require a specific version of java won't work

So I'm running 10.4 on my macbook pro, and when I try to run a java program that requires any version of java, I get an error saying I don't have that version. Java works fine from the command line when I run programs I wrote, and java -version outputs:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)
When I try to run something (say, some java applet), I get the message:
Could not launch the application because it requires a version of Java that is not installed.
(in smaller print):
This application requires Java 1.4 or later, but only the following Java versions are installed: . Updating to a newer version of Mac OS X may resolve this.
The message makes me think that in some text file or some preference somewhere, the thing that tells the system what version of Java I have got deleted. Anyone have any ideas of something I can do to fix it?

I usually use Win 7 and lately have been playing with the Win 10 preview. I like Win 7.

Similar Messages

  • Embedding a java program which requires one parameter to an applet

    I have a java program which requires one parameter for running it such as;
    "java program.java 34"
    .I must use this program as an applet. How can I send this parameter during running the applet.
    "appletviewer program.html"
    ???

    Now, for your specific problem - the likelihood of them actually having created / initialized the components in a constructor is 1 in about 10-ba-friggity-zillion. So - here is how you get around that: make a direct call to the init() method:
    import javax.swing.*;
         class Turd extends JApplet {
              private JTextArea jta;
              private JScrollPane jsp;
              public void init() {
                   jta = new JTextArea(10, 30);
                   jsp = new JScrollPane(jta);
                   this.add(jsp);
         public class Burglar extends JFrame {
              private Turd turd;
              public Burglar() {
                   turd = new Turd();
                   turd.init();
                   this.getContentPane().add(turd);
                   this.pack();
                   this.setTitle("Turd-->Burglar");
                   this.setDefaultCloseOperation(EXIT_ON_CLOSE);
                   this.setLocationRelativeTo(null);
              public static void main(String[] argv) { new Burglar().setVisible(true); }
         }See how I did that? Made a "Turd" object, then manually called the "init()" method. And - voila! See how purty?

  • My numbers program created on my mac version 3.0 won't work on my ipad version 2.0. It says I have to save the file with preview option but there is no such option in preferences. Any thoughts?

    my spreadsheet created with numbers program version 3.0 created on my mac won't work on my ipad version 2.0. It says I have to save the file with preview option but there is no such option in preferences. Any thoughts?

    For the update to run Aperture must be installed in the system Application folder and named simply Aperture, not Aperture3.2.2 or anything else.
    I don't know if this would also affect photo stream but if your Aperture is misnamed or installed in an incorrect location fixing that to see if it clears up the problem would be a good first step.

  • HT3678 I am using a program which requires QuickTime version 7.7.2  I am finding it difficult to locate this item via download. Can anyone help?

    I am using a program which requires QuickTime version 7.7.2 specifically. Where can I find a download? Window 7 user.

    I'm assuming you know Quicktime 7.7.2 for Windows has been superceded by 7.7.4 available here;
    http://support.apple.com/downloads/#quicktime,
    and so the only place I could find the older version was at this link.
    http://news.softpedia.com/news/Download-QuickTime-7-7-2-for-Windows-269765.shtml

  • Ciscoworks and Java - requiring a specific version

    Can anyone explain why Ciscoworks requires a specific version of the java plugin rather than just using it as a minimum requirement? The current version of java is 1.5.0_01 but when I access our server it complains that I'm not running 1.4.1_02. Is there anyway to stop this check happening and to force it to just use what's installed?
    cheers
    Mike

    Why indeed. I have raised this to Cisco developers ad nauseum. They are moving to more of a pure html schema with the upcoming release of LMS. Even that, though, will still have dependency on a specific JRE (1.42_something if I recall correctly). For now, you can use the parts of LMS and RWAN that aren't java-based applets despite the suite's error warning. Using any of the java applets (CiscoView, Campus Manager, etc.) requires the exact JRE noted in the documentation (1.41_02) and no substitutes are accepted. This is hard coded in the applet and there is no reliable work around. Some have reported limited success by using the Java control panel and having multiple JREs loaded on their machine. This is a bit tricky though and may not work in all situations.
    Thus the great myth of Java (write once, run anywhere) is exposed. The cynic might observe that a MS-based implementation would be prefereble. the purist would opine that a pure html W3C-compliant app would be the way to go. The realist just sighs and goes about working with what he (or she) is given.

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

  • Error while running Java program which call a file upload servlet

    Hi all,
    I have a java program which calls a servlet and sends the file to be uploaded by the servlet. I used Jbuilder to create java program and servlet program. I compiled both the programs and compilation suceeded and my class files are avaialbe in
    WEB-INF/classes/content directory. But now I am trying to run the Java program(this contains main method) from the command prompt, which should inturn call my servlet.(I have web.xml file inside WEB-INF dir). But I receive the following error
    C:\tomcat5.5.15\apache-tomcat-5.5.16\webapps\content\WEB-INF\classes\content>java MultiContentSender
    Exception in thread "main" java.lang.NoClassDefFoundError: MultiContentSender (w
    rong name: content/MultiContentSender)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    My dir strcture is as below
    TOMCAT_HOME/webapps/content/WEB-INF/classes/content/*.class
    I am not able to figure out the error, can anyone throw some light on this issue.

    You are trying to invoke the class from the command prompt. My guess is that MultiContentSender contains a package, which means that you'll need to add your WEB-INF\classes directory to the classpath before it will work. Classes stored in this directory are expected to be invoked through tomcat, which builds it's own classpath.

  • How Can we stop the execution of java program which contain infinite loop

    Dear All,
    I create one .bat file which which execute the simple java program
    I write one java program which execute above .bat file using instance of Runtime Class of java
    It's work fine if java program which is executed by .bat file is simple(Which has normal termination)
    But if that program contain inifinte loop then that file will goes on executing untill I close it manually
    So i want a solution in java which close that bat file (command window ) which is in running condtion
    If there any solution please replay me
    I try to close that .bat file using destroy() ,stop() method of Process and Runtime , Thread Class
    but it did not give me correct output
    .bat file still running !!!!!!!!!
    Thanks in advance

    Why not use javaw.exe to make the app run so you don't need the dos window (which is presumably what you are actually talking about when you say bat file).

  • Invoking a specific version of java over the internet

    According to [this page|http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html], the applet tag should be used if the web page is accessed through the internet and object or embed ought to be used if it's through an intranet. Why?
    Later, that article says that if you want to invoke a specific version of Java that you can do so with either of the intranet tags (using a specific classid for the object tag or a specific type for the embed tag), but doesn't say anything about doing it with the applet tag, making be conclude that, with the applet tag, it's not possible.

    You said "I will not try to guess what that doc. meant." That doesn't necessarily mean that there are others who can't. Maybe there are people who post on forums.sun.com that don't post on comp.lang.java.programmer? If anyone there knew, it seems like they would have responded?
    The <https://jdk6.dev.java.net/deployment_advice.html> link... I dunno... it didn't seem as comprehensive as the one my first post linked to. Doesn't discuss embed, for instance, nor does it mention anything about intranet's vs. internet's. Maybe Sun decided between 1.5.0 and 1.6.0 that the whole internet / intranet distinction was pointless, but if so, that'd be nice to know.
    Besides, sometimes hearing people explain it in different ways helps. Whether or not it'd help here is something I can't say until I've heard other explanations (if there are any to be had).
    (I'm yawnmoth, btw - I was logged out when I tried to make this post so I tried to login with 'yawnmoth' as my username and it asked me for a new username? maybe my 'yawnmoth' username is actually my email address?)
    Edited by: zelnaga on Aug 13, 2008 9:04 AM

  • Creating a  a java Program which Displays a POP UP in a JSF Web Page!

    Hi Folks,
    I wrote a java program which checks the user credentials against the Active Directory, and if it exists displays a URL (of Web Application) with useri nfo filled automatically in the page deployed on Tomcat ver 6.x.
    Now My Problem is just that I have a Pop up in the User Login page which has 3 buttons and according to that the Logic ,Navigation flows. Earlier i was just filling the info directly from Active Directory and Landed into the User Info Page. But now the functionality has changed so I have to modify it. I am not able to find how to Display the Pop up. in that page.
    If anybody can help me with that I would be really greatful.
    Thanks in Advance ,
    Somil

    Thank you for the quick response George. I guess a better way communicate what I need to accomplish is "how"
    I went to the toolbar on the right, then "javascript", then "Document Java Scripts". That opened a window that had me name the script, then add it, then put in the scripting (see below). I do not know how to "place it in a document-level JavaScript (outside of a function definition) or in the initial page's Page Open event."
    This is the script I am attempting to use.
    var message = "When you have completed filling out the Tax Organizer, click on the purple "SUBMIT" button at the top of the page. This will automaticall submit your Tax Organizer for you. Be sure to print a copy for your files"
    app.alert(msg,3);
    If you could provide some step by steps that would be super.
    I am wanting this pop-up box to open and the client will have to then click on the "ok" button to make it dissapear so that they can then fill out the PDF.
    The "Submit" button is auto created for me when I choose to distribute the form, I am unaware of any way to move it.
    I feel that my issue is a elementary one, I am currently working through the Adobe Classroom in a Book lessons as all my acrobat skills have been self taught.

  • When I boot up my Win7 (64bit) PC, I receive the following error msg "the new Java Plug-In requires a recent version of the Firefox browser" I have reinstalled Firefox3.6.12 several times without any change?

    I have reinstalled the latest JRE twice. Reinstalled Firefox3.6.12 twice but the following error message persists at startup "the new Java Plug-In requires a recent version of the Firefox browser(Firefox 3 or later)"

    I have reinstalled the latest JRE twice. Reinstalled Firefox3.6.12 twice but the following error message persists at startup "the new Java Plug-In requires a recent version of the Firefox browser(Firefox 3 or later)"

  • Java Program in MDM to call a standard java class

    Hi All,
    In MDM- GDS, (Global Data Synchronization), we have a scenario where, once we register the Items , it will be transported to a Data Pool called 1SYNC through SAP PI.
    There is a standard Java PRoxy(Kind of java Class) in MDM, which will be triggered once we register the Item in MDM-GDS.
    That Java Proxy will send the Item INfo as a XML message to PI.
    So we would like to know whether its possible to automate this process.
    Like,Writing a new Java Program which will check all the new items and trigger the Java Proxy and send these items as XML Messages to PI.
    I m new to MDM. So it would be really helpful, If i could get some inputs on this. Like, is it possible in MDM. If so, how?

    Aarthi,
    you can acheive this from MDM itself, and need not to write any Java proxy.
    you may consider following logic.
    Create a field with the Name Status and Initilize it with Value "new". Now define syndicaiton Map to syndicate records which holds value "new" in the status field.  define a workflow with syndication step, using maps defined earlier. After syndication step, execute an assignment to change Status field value from "New" to "Syndicated".
    Revert back if any question.
    ~ Shiv

  • Which is the latest version of the ICP that works with TestStand 3.5?

    Hello, I'm trying to use an Agilent MPS 6700B thru its IVI driver.
    Accordingly to NI this driver needs ICP 4.1.
    Does anyone know which is the latest version of the ICP that works with TestStand 3.5?
    thanks in advance
    Martín.

    TestStand is usually forward-compatible with drivers. I highly doubt you'd have any issues using a later version of a driver, espcially something simple like IVI.
    CTA, CLA, MTFBWY

  • New version of safari won't work on mac 10.7.5, can't be removed, can't be replaced with old version

    new version of safari won't work on mac 10.7.5, can't be removed, can't be replaced with old version

    When I try to open safari a message says: You can't use this version of the application Safari with this version of Mac OS X 10.7.5. The application requires Mac OS X 10.9 or later.
    I see Recovery needs Wi Fi which is not available here and Recovery is loaded with a list of  potential disasters.
    To heck with Safari I'll just use Firefox. Apple sure screwed up here judging from the multitude of similar complaints on the internet.

  • I recently upgrade my mac air to maverick and now my version of iphoto won't work.  What can I do??

    I recently upgrade my mac air to maverick and now my version of iphoto won't work.  What can I do??

    This screenshot shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
    Note 1:  every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
    Note 2:  If your previous version of iPhoto was iPhoto 7 (08) or earlier you'll need to download and run the iPhoto Library Upgrader 1.1 application on the library before opening it with iPhoto 9.5.1
    OT

Maybe you are looking for

  • IPod Nano wont turn on

    I have had my Ipod nano for about 2 yrs , and i take good care of it: but suddenly one day it works then the next i cant even turn it on. I have attempted to charge it in a few docks but nothing happens, it is just dead. I have tried all the reset te

  • Can reminders be sorted in iCloud or iPhone.

    Can reminders be sorted in iCloud or iPhone.

  • How to transfer photo file from iMac to flash drive

    Transfer Iphoto file to flashdrive

  • Aperture 3 continues to freeze

    I continue to have problems with Aperture "not responding". My first problem was that my external HD was not formatted correctly. After formatting the HD to Mac OS extended, everything worked fine...for a very short time. Now after doing very much at

  • Integration of BI with Oracle EBS R12

    Hi friends, Im in the process of integrating oracle BI 11g with the EBS R12, by following the saurabh gautam document. I followed all the steps indeed in the document but it didnt worked as i can redirect to the BI 11g page soon after clicking the me