Java on Mac OS9

I just started programming in java, and i download the mrj sdk and the mrj runtime environment. i've been trying to compile a very simple ap using the parseDouble() method of the class Double, but i get the following error message:
Method parseDouble(java.lang.String) not found in class java.lang.Double.
i downloaded the latest versions of the mrj sdk and mrj runtime - so what's the problem?
thanks in advance
brian

Thats because that method doesn't exist. Check it out.
http://java.sun.com/products/jdk/1.1/docs/api/java.lang.Double.html
Try using the following, I think it works.
try
double d = Double.valueOf( "123.456" ).doubleValue() ;
} catch( Exception e ) {}

Similar Messages

  • Java webstart on Mac OS9.2

    Hi I have a java webstart application that uploads files to my website, I now have 2 people that want to upload to my site that are running mac OS9.2.
    They both seem to be having the same problem as that the java application just does not start. They both have Mac OS runtime for Java 2.2.5 installed
    Can someone give me some clues as to what may be going wrong and where to look on a mac as I have never owned one and have no idea.
    Thanks
    Dean

    http://www.versiontracker.com/dyn/moreinfo/macos/377&vid=381
    From that site:
    Mac OS Runtime for Java (MRJ) is Apple's implementation of the Java Virtual Machine (JVM), based on Sun Microsystems' Java 1.1.8 specificationAlso from that site, there is a version 2.2.6 (fixes some Oracle bug)
    If you need anything other than 1.1.8, your only option is to ditch 9.2 (which is 5+ years old at this stage!) and get OS X

  • Mac os9 and swing

    I am having problems running a java swing applet on mac os9. I have compiled the applet using jdk 1.3 and it just doesn't work. How do you setup java swing for mac browsers has anyone done this successfully.
    thanks in advance
    Danny

    Welcome to the discussions!
    In order to help with installing Classic, we need a bit more information. There are plenty of documents that explain how to use the Software Restore disks that came with your computer. Unfortunately, there are many possible configurations of the Restore disks which makes it more difficult to pin down a solution. Pay close attention to the number of Restore disks that you have and which version of OS X your computer shipped with. Perhaps this document pertains to your situation: <http://docs.info.apple.com/article.html?artnum=301468>.
    bd

  • ColdFusion 8 Fails to start after update Java for Mac OSX 10.5 Update 4

    I have been using ColdFusion on a Mac for years. Now CF fails to start after I updated Java for Mac OS X 10.5 Update 4. I usually start by typing in the terminal window sudo /Applications/ColdFusion8/bin/ColdFusion start.
    There is a crash report but I don't know how to read it. See attached.
    Please help, I need this working for my job.
    Thanks...Colin

    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

  • 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

  • Java broken in Firefox after Java for Mac OS X 10.6 Update 3

    After having updated my mac this morning with the latest Java for Mac OS X 10.6 Update 3, Java in Firefox is no longer working. When I open a site that contains a java applet (like javatester.org) I get the following output in the Console, and then Firefox hangs.
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: getPluginBundle() here. ###
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: CFBundleGetBundleWithIdentifier() succeeded. ###
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: CFURLGetFSRef() succeeded. ###
    Any ideas??

    Problem solved!
    For some reason I had an additional "Java" Folder (/Library/Java) with a different Java sdk. After removing this folder and (just to be sure) replacing it with a symlink to /System/Library/Java everyting works again.

  • Can't print wirelessly since Java for Mac OS X 10.5 Update 4

    I have an HP Officejet J4680 All-in-One, and have been printing wirelessly from my Macintosh (OS 10.5.7) since I purchased the printer in December 2008. However, after I installed the Java for Mac OS X 10.5 Update 4, I suddenly lost the ability to print wirelessly. I've spent hours on my own and on the phone with HP trying to figure this out, with no success. When I uninstall and reinstall the printer, I can get to the point in the HP Setup Assistant in which the network configuration has been successfully downloaded to the printer (I see an IP address, Subnet Mask, etc.), but then I get an error message of "Device Not Reachable . . . please make sure that your Mac has access to the network and retry." My Mac does have access to the network because I can get on the internet wirelessly.
    I've tried entering the IP address manually, etc.--but nothing has worked. It's as if the printer is on the network, and the computer is on the same network, but they somehow can't talk to each other. Anyone else notice this problem, and how do I solve it?? Thanks in advance for your time!

    Hello Laura C. I haven't noticed any problems with my wireless connections to my Canon printers, at home or at work, and I have the Update 4 installed. I also cannot think how this update would have impacted your ability to connect to the printer, except maybe due to a reliance of the HP software using Java to operate. But this should not have stopped your existing connection from working, only a new connection...
    Apologies in advance if you have already been through the following, but if you were successful in entering an IP address manually, I would then check that you can get a response from the printer. The best tool to use is Ping. Open Applications > Utilities > Network Utility. Here you will see the Ping tab, as well as several other IP tools.
    Before you select Ping, select Info (it probably has defaulted to this). This pane shows you the current IP address settings for your Mac. Since you are using wireless, change the drop menu from en0 (which is Ethernet) to en1 (wireless). This will show your current IP address set in the Mac. Make a note of this.
    Now select the Ping tab and enter the IP address of the HP. Change the number of pings to 4 and press the Ping button. If the addresses are correct and the network infrastructure working you should get a response. If you get something like " 4 packets transmitted, 0 packets received, 100% packet loss", then that would explain the unreachable message.
    The biggest cause of this symptom is subnetting. To explain further, an IP address consists of two parts, the subnet and network address. The subnet is determined by the subnet mask. If you have a subnet mask of 255.255.255.0, the your subnet is the first three sets of numbers in your IP address and the network address is the last number. For example, an IP address of 10.0.1.10 and subnet mask of 255.255.255.0 has a subnet of 10.0.1 and a network address of 10. For devices to communicate on a local network, they typically need to have the same subnet and a different network address. Can you confirm the subnets for the Mac and printer are the same and the network addresses are different.
    If you get responses to the Pings, which indicates the IP addressing is okay, the other services like firewalls can stop some printer utilities from working correctly. Have you checked your System Preferences > Security > Firewall setting is set to allow all incoming connections?
    HTH
    Pahu

  • Failed update: "Java for Mac OS X 10.4, Release 6"

    In successfully updating to OS X 10.4.11 from 10.4.10 the subject java update, "Java for Mac OS X 10.4, Release 6", came up from Software Update. In trying to install it, it stalled at the very end of the installation. It again failed on a second try. Later on, using Spotlight, I checked my existing Java version to already be Java 1.4.2 plug-in settings -- the target update from java 1.4. Do I really need this Java Release 6? I'm running Sarafi 3.0.4 and Netscape 7.2. Thanks.

    I'd be suspicious about an aborted partial install myself, have you tried the stand alone installer?
    I'd Verify the HD, Repair Permissions, then get...
    http://www.apple.com/support/downloads/javaformacosx104release6.html

  • ...desperating trying to install itunes 10.7, but it asked me to install Mac OS X 10.6.8.  I did, but then it said that I needed to install Java for Mac OS x 10.6.  I did that and now it keeps saying 'this update requires Mac OS X version 10.6??

    ....desperating trying to install itunes 10.7, but it asked me to install Mac OS X 10.6.8.  I did, but then it said that I needed to install Java for Mac OS x 10.6.  I did that and now it keeps saying 'this update requires Mac OS X version 10.6??

    Upgrading to Snow Leopard
    You must purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s MobileMe service; fees and
               terms apply.
    Actually, you cannot download Snow Leopard. You downloaded a Snow Leopard updater.

  • Can't install Java for Mac OS X 10.6 Update 10

    Hello everyone
    I've been trying to install Java for Mac OS X 10.6 Update 10 and printer for ages
    What seems to be the problem?
    I have an iMac 11,3
    Also,when I start my computer I have to wait for the bar to load which didn't use to appear some months before,is it something to worry too?
    Thank you for any answer you might have

    Forthnet.192.168.1.254 router,ethernet connected
    There is no apple store where I live that's a big problem...
    Should I install Mountain lion or it's not preferable for my Mac?
    Also I get this note no mountable file system whenever I try to install the updates,literally I can't install any update :/

  • Where can I find Java for Mac OS X 10.6.8?

    Where can I find Java for Mac OS X 10.6.8?

    fixie84 wrote:
    I can't find it on my imac. I searched for it in the finder.
    It should be in /System/Library/Frameworks/
    10.6 update 3 deprecated that path, and since that Java update (if you've installed it) it would be
    /Library/Java/JavaVirtualMachines/
    and
    /System/Library/Java/JavaVirtualMachines/

  • Installing "Java for Mac OS X 10.5 Update 6" (1.0) causing problems

    Hi,
    I installed the "Java for Mac OS X 10.5 Update 6" (1.0)" yesterday evening and it caused problems:
    - network
    - date/time screwed up
    - Time Machine crashed
    My environment is a MacBook Pro, running 10.5.8, all latest patches applied. During the install all other applications were closed (my once in three months cleanup of the desktop , Time Machine was not running although it might have kicked in during the download, I left it alone for install and the necessary reboot. I didn't hook it up to the power, had 82% battery left, afterwards (after all repairs) still 76%, so my guess is that is not the root cause, although I did get the power source warning and waved it away during the installs.
    Looking back into the logfiles and using some gut-feeling I do think somehow the date/time seeting was screwed up and caused all other problems. The date was reset to the famous Unix starttime, Jan 1, 1970. At first I didn't notice, only after my network (Airport Extreme based) asked me WPA password and then complained about the date/time I noticed something weird.
    After resetting date/time, verifying the disk for problems (none found), re-entering the WPA password, network ran again, had to re-connect with the Time Capsule and check the sparse backup-volume there before I got everything up-and-running again.
    Not a very big deal, but annoying, and certainly something wrong in the update here.
    Anyone any explains ?
    Regards,
    Wim.

    Sorry if I missed it...have you scoured logs for anything that might shed light on success/fail during the install?

  • Java.crypto.Mac usage related to concurrency

    My first question is:
    Can I allow multiple threads to use the same instance of java.crypto.Mac concurrently? In other words, for example, is the java.crypto.Mac.doFinal(byte[] input) method thread safe?
    If the answer is no, then my second question is:
    If I have one separate instance of java.crypto.Mac per thead, in order to reuse the instance within a thread, do I have to call init(Key key) method every time before calling doFinal(byte[] input), even if the key value is always the same? I am asking this because we saw init method may introduce some overhead and we want to know whether we can avoid calling init again and again.
    Thanks a lot!
    John F

    1.The javadocs don't say, so I guess you have to assume it is not thread-safe.
    2. The javadocs do answer this, so read them.

  • Java for Mac OS X 10.5 Update 2

    Software Update keeps telling me that this update is available, even after multiple "successful" installations and reboots. Any ideas why?
    $ java -version
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
    Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

    revoir wrote:
    This morning i installed "Java for Mac OS X 10.5 Update 2" on my 2x3 GHz Dual-Core Intel Xeon, running OS X 10.5.5 with all available official Spple Software updates.
    Since that update my mac freezes when any scrensaver is activated.
    Plus, i can no longer edit Google spreadsheets, neither on Safari nor on Firefox (i was able to do that before and i can still do that on a windows machine, though).
    Has anyone experienced similar phenomenons and possibly found a solution?
    I have not yet installed it. I usually wait for a while and even then I do a manual DL and install.
    I don't know about the Google thing, but I don't know what the tie-in is with your screensaver, unless you are using some Java based 3rd party SW for running it.
    The update included some security items to prevent a website from taking over your computer. While I personally don't trust Google to access my system, it's possible that Google has not make their system compatible with this new Java update.
    And finally, it's possible that there is something wrong with the update.
    You might be able to uninstall it but I would be careful and certainly make sure my backup was good.

Maybe you are looking for

  • How can I convert games from one iPod to another?

    Hi there my daughter has an iPod and so do I. She just Got hers fixed and she has no data. Anway that's not the problem. The problem is that I don't know how I can convert my songs and Games onto her ipod!!! Many thanks

  • SLOW MACBOOK 2.16

    Hi, Ive been using my Macbook pro (core 2 duo) 2.16 with 1GB RAM for just over 6 months and Ive found that its starting to run very slowly. Iv got about 40 GB left on the hard drive. Sometimes applications like Safari and itunes quit unexpectedly and

  • Account Detail field not working in FV50

    Hi SAP Experts, i have an issue on FV50 (park G/L account document); If i capture an Account Detail (this field is available in Ecc 6.0) this field will not be saved when the invoice is parked. Its only get saved when the invoice is posted! and if th

  • Manual Update of InfoObject -Master Data

    Hello!! I need to update master data stored in a InfoObject. I know i can make this update using trx. RSDMD or RSA1. However, is the end user who has to load / modificate master data of InfoObject. What is the best practice to give the user a quick a

  • OMG please help with syncing to yahoo + how long does syncing take??

    tried a lot of times to sync phone and after it appears to be doing it ...will say couldn't find connection and couldn't sync .phone is connected to home wi-fi and so is my laptop ..what gives ...it will sync for 10 min. and then i get that message a