IMac: Install Java 7 need help!

Hello, I've an iMac with the newest software version, I want to install java 7 on it for a game server, but when I download it from java.com and I install it and start the server, it still says: Computer on java 6, update to 7 to run server. I already tryed to install with Terminal and direct acess to System Library, it shows that java 7 is installed, but I have to delete java 6. When I delete all java versions, apple says I have to install java SE6, what isn't java 7 but java 6! Help please!!!

The Oracle JRE is only a web plugin. If you need server-side Java, you'll have to use the Apple-supplied Java 6 runtime, or else the Oracle JDK (which is not a drop-in replacement for Apple's Java.) If your server application depends on Java 7, you'll most likely have to run it on another operating system.

Similar Messages

  • Virtualization on an iMac. I need help.

    I have an iMac running 10.6.2. Can anybody tell me if it's possible to run Parallels Desktop or Virtual Box software with another Mac system - OS X 10.4. I can't seem to get any help from their respective sites. I have tried vmware but they are not answering my e-mails. It's very frustrating. I hope someone here knows the answer

    mobabs wrote:
    Sadly, it was an iMac that was running Tiger, and it died. The drive (with the system software) is all OK but I have nothing to use it in. I don't think I can load the Tiger disks on my very old G4, as they are iMac install disks. Unfortunately the iMac 10.6.2 wasn't planned for, hence these teething problems.
    Thanks for you help. Hopefully I can get something sorted - somehow
    Do you actually need to run some apps that won't run under 10.6? Or do you just need access to the files? If the files, you could just put the hard drive in an external case and attach to the new Mac. If you want to run apps that don't work in 10.6, then perhaps you can find a used Mac. For example: http://www.geeks.com/products_sc.asp?cat=810

  • IMac kernal panic NEED HELP!

    I have a iMac 24" Mid 2007 and its keeps crashing dont know what to do!
    NEED HELP!
    Wed Jul 30 14:26:55 2014
    panic(cpu 0 caller 0xffffff80184efe1b): "new_vnode: vp (0xffffff802542fe88) on RAGE list not marked VLIST_RAGE"@/SourceCache/xnu/xnu-2050.7.9/bsd/vfs/vfs_subr.c:3784
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80203d3810 : 0xffffff801841d5f6
    0xffffff80203d3880 : 0xffffff80184efe1b
    0xffffff80203d3940 : 0xffffff80186f1412
    0xffffff80203d3a40 : 0xffffff80186f95d2
    0xffffff80203d3c60 : 0xffffff8018511634
    0xffffff80203d3ca0 : 0xffffff80184eb75c
    0xffffff80203d3d20 : 0xffffff80184eb14e
    0xffffff80203d3de0 : 0xffffff801850089f
    0xffffff80203d3f50 : 0xffffff80187e17da
    0xffffff80203d3fb0 : 0xffffff80184cecf3
    BSD process name corresponding to current thread: mds
    Mac OS version:
    12A269
    Kernel version:
    Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64
    Kernel UUID: 8D5F8EF3-9D12-384B-8070-EF2A49C45D24
    Kernel slide:     0x0000000018200000
    Kernel text base: 0xffffff8018400000
    System model name: iMac7,1 (Mac-F42386C8)
    System uptime in nanoseconds: 900478869130
    last loaded kext at 364220525728: com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.1 (addr 0xffffff7f9a3e1000, size 86016)
    last unloaded kext at 451144217735: com.apple.driver.AppleUSBCDC 4.1.21 (addr 0xffffff7f9a3cd000, size 12288)
    loaded kexts:
    com.apple.filesystems.smbfs 1.8
    com.apple.driver.AudioAUUC 1.60
    com.apple.iokit.IOBluetoothSerialManager 4.0.9f8
    com.apple.filesystems.autofs 3.0
    com.apple.driver.AppleHDA 2.3.0f2
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.iokit.CSRBluetoothHCIControllerUSBTransport 4.0.9f8
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.ApplePolicyControl 3.2.6
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleLPC 1.6.0
    com.apple.driver.AppleBacklight 170.2.3
    com.apple.driver.AppleUpstreamUserClient 3.5.10
    com.apple.driver.AppleMCCSControl 1.0.33
    com.apple.kext.AMDFramebuffer 8.0.0
    com.apple.ATIRadeonX2000 8.0.0
    com.apple.driver.AppleIRController 320.15
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 34
    com.apple.iokit.SCSITaskUserClient 3.5.1
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.2.0
    com.apple.driver.AppleUSBHub 5.1.6
    com.apple.driver.AppleEFINVRAM 1.6.1
    com.apple.driver.AppleFWOHCI 4.9.5
    com.apple.driver.AirPortBrcm43224 600.36.17
    com.apple.iokit.AppleYukon2 3.2.3b1
    com.apple.driver.AppleAHCIPort 2.4.0
    com.apple.driver.AppleIntelPIIXATA 2.5.1
    com.apple.driver.AppleUSBEHCI 5.1.5
    com.apple.driver.AppleUSBUHCI 5.1.5
    com.apple.driver.AppleRTC 1.5
    com.apple.driver.AppleHPET 1.7
    com.apple.driver.AppleACPIButtons 1.6
    com.apple.driver.AppleSMBIOS 1.9
    com.apple.driver.AppleACPIEC 1.6
    com.apple.driver.AppleAPIC 1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
    com.apple.nke.applicationfirewall 4.0.39
    com.apple.security.quarantine 2
    com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.1
    com.apple.iokit.IOUSBMassStorageClass 3.5.0
    com.apple.iokit.IOSerialFamily 10.0.6
    com.apple.kext.triggers 1.0
    com.apple.driver.DspFuncLib 2.3.0f2
    com.apple.iokit.IOAudioFamily 1.8.9fc9
    com.apple.kext.OSvKernDSPLib 1.6
    com.apple.iokit.IOFireWireIP 2.2.5
    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f8
    com.apple.iokit.IOSurface 86.0.2
    com.apple.iokit.IOBluetoothFamily 4.0.9f8
    com.apple.driver.AppleHDAController 2.3.0f2
    com.apple.iokit.IOHDAFamily 2.3.0f2
    com.apple.driver.AppleSMC 3.1.3d11
    com.apple.driver.IOPlatformPluginLegacy 1.0.0
    com.apple.driver.IOPlatformPluginFamily 5.2.0d16
    com.apple.driver.AppleGraphicsControl 3.2.6
    com.apple.driver.AppleBacklightExpert 1.0.4
    com.apple.driver.AppleSMBusController 1.0.10d0
    com.apple.iokit.IONDRVSupport 2.3.4
    com.apple.kext.AMD2600Controller 8.0.0
    com.apple.kext.AMDSupport 8.0.0
    com.apple.iokit.IOGraphicsFamily 2.3.4
    com.apple.iokit.IOUSBHIDDriver 5.0.0
    com.apple.driver.AppleUSBMergeNub 5.1.5
    com.apple.driver.AppleUSBComposite 5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
    com.apple.iokit.IOBDStorageFamily 1.7
    com.apple.iokit.IODVDStorageFamily 1.7.1
    com.apple.iokit.IOCDStorageFamily 1.7.1
    com.apple.iokit.IOATAPIProtocolTransport 3.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
    com.apple.driver.AppleEFIRuntime 1.6.1
    com.apple.iokit.IOUSBUserClient 5.0.0
    com.apple.iokit.IOFireWireFamily 4.5.5
    com.apple.iokit.IO80211Family 500.15
    com.apple.iokit.IONetworkingFamily 3.0
    com.apple.iokit.IOAHCIFamily 2.2.0
    com.apple.iokit.IOATAFamily 2.5.1
    com.apple.iokit.IOUSBFamily 5.1.6
    com.apple.iokit.IOHIDFamily 1.8.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 220
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 7
    com.apple.driver.DiskImages 344
    com.apple.iokit.IOStorageFamily 1.8
    com.apple.driver.AppleKeyStore 28.18
    com.apple.driver.AppleACPIPlatform 1.6
    com.apple.iokit.IOPCIFamily 2.7
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0

    If you have upgraded the RAM, the likely cause is upgraded RAM or some other hardware issue. Sources of RAM caused KP's are:
    Failed RAM
    Incorrect RAM
    Unseated RAM
    Start by removing all upgraded RAM and replace with the original RAM the computer shipped with and then test. If they KP's disappear you know your issue is RAM related to the upgraded RAM.

  • Hi, i'm new to java. need help setting the path in win XP

    hi all,
    i'm new to java technology. i've just downloaded the JDK and ran my first java program (hello world). i love it. java's gr8. i need help. i run win XP and how can i setup the path sothat i can execute my programs from the root dir??? any help in this direction will be greatly appreciated. please email me @ [email protected]
    Best regards
    Mrinal

    Go to Start menu and select Control Panel. In the Control Panel, double click on System. In the System dialogue, choose the Advanced tab. Then click on Environmental Variables. Select Path and Edit. Put ;c:\j2sdk1.4.0\bin at the end of the Path (or c:\j2sdk1.4.0\bin;) at the start of the Path. That's it.

  • New to java(need help on access specifier)

    hi! i am new to java.plzzzzz help me i have to make a project on access specifier's i know all theroy.but
    i am unable to understand how i can define all specifiers practicly.i mean in a program.
    thanks.plzzzzzzzz help me

    the most common project i can think of is a payroll system..
    you can have real implementation of all the access specifiers
    good luck

  • Upgrading imacs? i need help

    I want a new imac but i need to figure out which desktop macs i can upgrade later on in the future and to what extent.

    Welcome to the Apple Support Communities
    I'm not sure what your questions is. If you are referring to replace hardware of the iMac, the only things you can replace are the memory and the hard drive. The other things are soldered onto the logic board and you won't be able to change them

  • I am having trouble installing and using remote desktop client and admin on the same imac.  I need help?

    Can you give me a step by step on getting the client and the admin part of remote desktop to work?  I am new to this and I need for remote desktop to work to install the Faronics Deepfreeze enterprise console on the new imac in office.  The OSx version is 10.8.3  Any help will be greatly appreciated.  Also, when I go to install the admin, it says that the remote desktop client is not updated and I cant get mac app store to show any updates.  May be doing something wrong.

    This is what I usualy do to setup ARDclient on a client computer.
    on the client computer
    go to menu bar (white bar at top of the screen)
    click on the apple menu
    chose system preferences
    click show all button
    click Users & Groups
    click the lock to unlock
    click + to create a new account
    chose new account: type "administrator"
    name the user some thing applicable like "ARDuser"
    set a secure password
    click create account
    click show all button
    click sharing
    set the computer name to some thing descritpive that identifies the computer
    check remote login
    click on remote login
    set allow access for: "only these users"
    click the +
    chose the ARDuser from the list
    click select
    check remote management
    click on remote management
    set allow access to "only these users"
    click the +
    select the ARDuser from the list
    click select
    check: observe, control, genereate reports, open & quite applications, delete and replace items, start text chat or send messages, restart & shutdown, copy items
    click ok
    click the lock to lock system preferences
    click show all
    quite system preferences
    At this point you should be able to connect to the client using Apple Remote Desktop using the ARDuser setup above. Make sure the client and the ARD computer are on the same network the same way. IE both on ethernet or both on wifi. On the same internet conenction, if your were trying to conenct to a client over the internet there is more involved. 
    on the ard computer:
    open apple remote desktop
    from the left column select discover
    make sure the list is set to bonjour
    the client computer should show up on the list, with the name set above
    select the client from the list
    click control
    you will be prompted for the user/pass to log into the computer. that's the ARDuser setup in the steps above.

  • Windows 7 on iMAC 27" , I need help in the decision please?

    Hi All,
    I just got the iMAC 27" i7 with 4GB RAM and planning to upgrade to 8GB soon. I need to install Windows, but as I heard that BOOTCAMP supports vista and windows 7 is not officially supported,
    should i go for vista?
    or try to install windows 7? what are the issues?
    * If windows 7, should I go to Windows 7 64bit & why?
    I do really need some guidance in this one....

    Hi and welcome to Discussions,
    Apples BootCamp lets you install a 32-bit Windows XP with at least SP2 or Windows Vista onto an Intel-based Mac.
    And 64-bit Windows Vista on these Macs http://support.apple.com/kb/HT1846
    Windows 7 support is currently in the pipeline.
    See the Tech Specs of BootCamp here http://support.apple.com/kb/HT1899
    And the announcement of Windows 7 support http://support.apple.com/kb/HT3920
    Personally I use XP 32-bit and never had any problem.
    I avoided Vista since I don't need it and therefor see no reason to shell out money for it.
    Quite a lot of people have already installed Windows 7 even without official support from Apple.
    The hatter has an ongoing thread full of helpful tips about Windows 7 http://discussions.apple.com/thread.jspa?threadID=1866970&tstart=15
    With the 8GB RAM you plan to get I would suggest the 64-bit version of Windows 7, since with 32-bit Windows you won't be able to use all the RAM.
    Regards
    Stefan

  • IMac trouble login - need help badly

    I need real big help here. My wife iMac decided to act up this morning, out of no reason. She didn't download and anything from website or new apps. This is what happening now.
    As usual, we type in the password and click login. It started as normal and show the desktop but almost immediately (2 seconds), it goes back to the same login password screen. We type the password again and again and it does the samething. We restart same thing. We shut down and let it sit and start again, same thing.
    Now, we have so many important files and memories in this machine!!! Can anyone advise how we can get it started again normally without reinstallation?
    MANY THANKS.

    If you have the install disc, boot from it and use
    Disk Utility
       1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
       3. Click the First Aid tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Click Repair. Disk Utility checks and repairs the disk.
    Then reboot from your internal drive and repair permissions.

  • I am interested in an iMac 20" but need help

    I was looking into getting a new computer because the PC i have is a bit old and a bit unstable. I checked out dell because i like to play games like WoW and HL2 and BF2 and that stuff. My question is would those games run well on the windows side of my iMac if i were to install bootcamp and when i wanted to play a game boot into windows and play. in WoW's case i guess i could run it on the apple side, has anyone done that yet? does it run better on the intel chip than on the G5s? thanks for the help

    I know from experience that WoW works great in OSX native. My copy with 4 cds from Amazon.com included both the Windows and Mac versions. I never tried it on a G5, Intel runs flawlessly though. (If only my dorm's network connection worked at 10pm when everyone is on it). I've also tried Boot Camp to install Windows. It works great, and I've played WoW on it too. Works fine, but some of the keys are strange because Windows keyboards have the alt and control in different places than Mac. Other than that, I know that game works greatly. Couldn't tell you about the other 2 games you mentioned, I've never played those.
    Hope that helps!
    Imac Intel Core Duo 1.86   Mac OS X (10.4.7)  

  • Acquired a 2007 Imac 5,1 - need help

    I have been given a 2007 Imac after my old work office closed down. I am a Newbie to macs so am a bit lost.
    Its an Imac 5,1
    Intel Core 2 Duo processor
    2.16GHz
    Memory 1GB
    Operating OS X 10.4.11
    I dont think it runs as fast as it should. Probably has alot of old files on it as it was the artists computer.
    I'd like to make it work as well as possible and get all the latest software etc.
    Please can someone kindly advise where I should start? Bear in mind i'm a novice!!
    It has photoshop and AI which I'd like to keep if possible.

    Linzer wrote:
    Ok I agree I will wipe it clean.
    I have the original disks but I think I should upgrade to the newer OS anyway. Can i get Lion or is Snow leopard my only option?
    Do I have to do anything to wipe it or will that happen when I install the new OS?
    I have the disks for photoshop and AI so I can just put these back on with the new OS right?
    How do I get more RAM? I am a bit of a novice regarding this - it says it has 1GB memory on the "about this computer" menu, but then says it has 198GB free disk space in another menu??
    Thanks
      You can upgrade to Lion as long as the system meets the system requirements which are:
    Mac OS X Lion System Requirements
    In order to install Mac OS X 10.7 you will need:
    Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of RAM (4GB recommended)
    Mac OS X 10.6.6 or later with the Mac App Store installed (10.6.8 recommended)
    At least 4GB of additional disk space to accommodate the download, but more is obviously recommended
    Note that it says 10.6.6 (SL) as a requirement so if you want to get to Lion then yes you must first upgrade to SL. Also note that old PPC (Power PC) based applications will not run on Lion. They must be replaced or upgraded first. The types of apps that will run are Intel & Universal. You can easily tell what your applications are by running System Profiler (Applications - Utilities - System Profiler) or click Spotlight (the little magnifying glass in the upper right) and type System Profiler. Once in SP then click Applications on the left and look at the Kind column, it will list all the apps and state Intel, Universal or PPC.
    Upgrading RAM is incredibly easy, to find the correct RAM and how much can be installed in your iMac contact www.macsales.com (OWC) or Crucial. I prefer OWC because they specialize in Macs, have terrific service including how-to videos on how to install the RAM and excellent prices. Crucial is great too however if I gave OWC an A+ I could only rank Crucial as an A, still excellent just not quite as excellent.

  • Reformatte​d Clean install. NEED HELP

    Hi everyone my old HDD Crashed and i bought a new one, I Did a fresh install of windows 7 and now my FN + F Keys wont work, For example when i press FN + F5 i dont get anything before i used to get a screen to turn on bluetooth and stuff. Im frustrated and pist off and I need the proper drivers for this. ALSO on the side volume buttons i dont see that popup that shows how much volume i have and it doesnt light up white when i mute it. HELP I NEED DRIVERS FOR THIS!

    do you have valid warranty? cause you may need to ship it back.
    if even they send recovery disk, due to replacing new hdd your disks may not work on your system.

  • HTML JAVA NEED HELP

    I am very new to Java and need some help.
    I am trying to manipulate values about on a web page and seem to have got stuck.
    The following are variables that are entered
    PRICE (typed in)
    BID (typed in)
    New or Second Hand (radio Buttons)
    Then calculate is clicked.
    I can get outputs to work but I can't seem to use the PRICE, BID, or BID % to show in the output Box.
    and
    I can't seem to use what radio button is selected elsewhere other than the output box.
    What I want is to use all variables at any time to calculate and manupulate them.
    Here is the code, this should clarify what I'm talking about:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>
    <body>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var myPrice;
    var myBid;
    function Calculate(form)
    var bper;
    bper = (myBid / myPrice) * 100;
    form.Fbper.value = bper;
    function SetmyPrice(PV)
    {myPrice = PV.value;}
    function SetmyBid(dis)
    {myBid = dis.value;}
    function output(obj) {
    var i = 0
    while (!obj.type.checked)
    {i = i + 1}
    obj.response.value =
              "You are bidding for a " +
    obj.type[i].value + ",\n"+
    "item."
    function ClearForm(form){
    myPrice=0;
    myBid=0;
    bper=0;
    form.myPrice.value = "";
    form.myBid.value = "";
    form.Fbper.value = "";
    // -->
    </SCRIPT>
    <center>
    <FORM METHOD="POST">
    </center>
    <p><font size="5">Price �<INPUT TYPE=text NAME=myPrice SIZE="14" ONCHANGE="SetmyPrice(this)"></font></p>
    <p><font size="5">Bid �<INPUT TYPE=text NAME=myBid SIZE="14" ONCHANGE="SetmyBid(this)"></font></p>
    <p style="margin-top: 0; margin-bottom: 0" align="left">
    <input type="radio" checked value="New" name="type">New </p><p style="margin-top: 0; margin-bottom: 0" align="left">
    <input type="radio" value="Second Hand" name="type">Second Hand </p><p style="margin-top: 0; margin-bottom: 0" align="left">
    <INPUT TYPE=BUTTON ONCLICK="Calculate(this.form), output(this.form)" VALUE="Calculate"><INPUT TYPE=BUTTON VALUE=" Reset " onClick="ClearForm(this.form)"></p><p style="margin-top: 0; margin-bottom: 0" align="left">
     </p><p style="margin-top: 0; margin-bottom: 0" align="left">
    OUTPUT</p><p style="margin-top: 0; margin-bottom: 0" align="left">
     </p><p style="margin-top: 0; margin-bottom: 0" align="left">
     </p><p style="margin-top: 0; margin-bottom: 0" align="left">
    <font size="5">Bid </font><font size="4"><INPUT readonly TYPE=text NAME="Fbper" VALUE="" SIZE="4">%</font></p>
    <p><textarea name="response" rows="3" cols="70"></textarea></p>
    <center>
    </FORM>
    </center>
    </body>
    </html>

    That's not java, that's javascript.
    Thanks again to those boneheads at Netscape who decided to confuse everybody with that name. For that matter why does Sun have to have two sets of version numbers for every product.
    Anyway you may get a better response on a javascript forum.

  • �� I have a java applet program (yanhua.java) need help!!!

    �� I have a java applet program (yanhua.java) that use mouse click a area show a fireworks, the applet program that a java fan mail me. Now i find some bug in the program, can you help me? thank in advance!
    The backdrop of the question: The yanhua.java applet program works well. But one day, i install j2re 1.4.1 plugin for my microsfot Internet Explorer, i run the yanhua.java applet program again, it show difficult(i move my mouse in the area, slowness), the fireworks is not fluent. Then i try my best to find the cause , i get some information, the following: yanhua.java run in j2re 1.4.1 plugin,it will deplete 100% cpu; else yanhua.java does not run in j2re 1.4.1 plugin, it will deplete 90%--95% cpu too; but my computer c3 1G cpu and 256MB memory, without running other program at that time. So i can have the assurance to say that the yanhua.java have some bug or error. can you help me to find all bug in yanhua.java? thank you very much!!!
    i want to solve the question: finding all bug in yanhua.java
    NOTE:
    1��fireworks show specially good effect(a yanhua.java applet) you can look at:
    http://www.3ren.net/down/java/yanhua.html
    2��all program you can get from http://www.3ren.net/down/java/yanhua.rar
    /*************************yanhua.java******************************
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.image.MemoryImageSource;
    import java.util.Random;
    public class yanhua extends Applet
    implements Runnable
    private int m_nAppX;
    private int m_nAppY;
    private int m_centerX;
    private int m_centerY;
    private int m_mouseX;
    private int m_mouseY;
    private int m_sleepTime;
    private boolean isError;
    private boolean m_isPaintFinished;
    boolean isRunning;
    boolean isInitialized;
    Thread runner;
    int pix0[];
    MemoryImageSource offImage;
    Image dbImg;
    int pixls;
    int pixls2;
    Random rand;
    int bits;
    double bit_px[];
    double bit_py[];
    double bit_vx[];
    double bit_vy[];
    int bit_sx[];
    int bit_sy[];
    int bit_l[];
    int bit_f[];
    int bit_p[];
    int bit_c[];
    int bit_max;
    int bit_sound;
    int ru;
    int rv;
    AudioClip sound1;
    AudioClip sound2;
    public yanhua()
    m_mouseX = 0;
    m_mouseY = 0;
    m_sleepTime = 5;
    isError = false;
    isInitialized = false;
    rand = new Random();
    bits = 10000;
    bit_px = new double[bits];
    bit_py = new double[bits];
    bit_vx = new double[bits];
    bit_vy = new double[bits];
    bit_sx = new int[bits];
    bit_sy = new int[bits];
    bit_l = new int[bits];
    bit_f = new int[bits];
    bit_p = new int[bits];
    bit_c = new int[bits];
    ru = 50;
    rv = 50;
    public void init()
    String s = getParameter("para_bits");
    if(s != null)
    bits = Integer.parseInt(s);
    s = getParameter("para_max");
    if(s != null)
    bit_max = Integer.parseInt(s);
    s = getParameter("para_blendx");
    if(s != null)
    ru = Integer.parseInt(s);
    s = getParameter("para_blendy");
    if(s != null)
    rv = Integer.parseInt(s);
    s = getParameter("para_sound");
    if(s != null)
    bit_sound = Integer.parseInt(s);
    m_nAppX = this.getSize().width;
    m_nAppY = this.getSize().height;
    m_centerX = m_nAppX / 2;
    m_centerY = m_nAppY / 2;
    m_mouseX = m_centerX;
    m_mouseY = m_centerY;
    resize(m_nAppX, m_nAppY);
    pixls = m_nAppX * m_nAppY;
    pixls2 = pixls - m_nAppX * 2;
    pix0 = new int[pixls];
    offImage = new MemoryImageSource(m_nAppX, m_nAppY, pix0, 0, m_nAppX);
    offImage.setAnimated(true);
    dbImg = createImage(offImage);
    for(int i = 0; i < pixls; i++)
    pix0[i] = 0xff000000;
    sound1 = getAudioClip(getDocumentBase(), "firework.au");
    sound2 = getAudioClip(getDocumentBase(), "syu.au");
    for(int j = 0; j < bits; j++)
    bit_f[j] = 0;
    isInitialized = true;
    start();
    public void run()
    while(!isInitialized)
    try
    Thread.sleep(200L);
    catch(InterruptedException interruptedexception) { }
    do
    for(int j = 0; j < pixls2; j++)
    int k = pix0[j];
    int l = pix0[j + 1];
    int i1 = pix0[j + m_nAppX];
    int j1 = pix0[j + m_nAppX + 1];
    int i = (k & 0xff0000) >> 16;
    int k1 = ((((l & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (k & 0xff00) >> 8;
    int l1 = ((((l & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = k & 0xff;
    int i2 = (((l & 0xff) - i) * ru >> 8) + i;
    i = (i1 & 0xff0000) >> 16;
    int j2 = ((((j1 & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (i1 & 0xff00) >> 8;
    int k2 = ((((j1 & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = i1 & 0xff;
    int l2 = (((j1 & 0xff) - i) * ru >> 8) + i;
    int i3 = ((j2 - k1) * rv >> 8) + k1;
    int j3 = ((k2 - l1) * rv >> 8) + l1;
    int k3 = ((l2 - i2) * rv >> 8) + i2;
    pix0[j] = i3 << 16 | j3 << 8 | k3 | 0xff000000;
    rend();
    offImage.newPixels(0, 0, m_nAppX, m_nAppY);
    try
    Thread.sleep(m_sleepTime);
    catch(InterruptedException interruptedexception1) { }
    } while(true);
    public void update(Graphics g)
    paint(g);
    public void paint(Graphics g)
    g.drawImage(dbImg, 0, 0, this);
    public void start()
    if(isError)
    return;
    isRunning = true;
    if(runner == null)
    runner = new Thread(this);
    runner.start();
    public void stop()
    if(runner != null)
    runner.stop();
    runner = null;
    public boolean mouseMove(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    public boolean mouseDown(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    int k = (int)(rand.nextDouble() * 256D);
    int l = (int)(rand.nextDouble() * 256D);
    int i1 = (int)(rand.nextDouble() * 256D);
    int j1 = k << 16 | l << 8 | i1 | 0xff000000;
    int k1 = 0;
    for(int l1 = 0; l1 < bits; l1++)
    if(bit_f[l1] != 0)
    continue;
    bit_px[l1] = m_mouseX;
    bit_py[l1] = m_mouseY;
    double d = rand.nextDouble() * 6.2800000000000002D;
    double d1 = rand.nextDouble();
    bit_vx[l1] = Math.sin(d) * d1;
    bit_vy[l1] = Math.cos(d) * d1;
    bit_l[l1] = (int)(rand.nextDouble() * 100D) + 100;
    bit_p[l1] = (int)(rand.nextDouble() * 3D);
    bit_c[l1] = j1;
    bit_sx[l1] = m_mouseX;
    bit_sy[l1] = m_nAppY - 5;
    bit_f[l1] = 2;
    if(++k1 == bit_max)
    break;
    if(bit_sound > 1)
    sound2.play();
    return true;
    public boolean mouseExit(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    void rend()
    boolean flag = false;
    boolean flag1 = false;
    boolean flag2 = false;
    for(int k = 0; k < bits; k++)
    switch(bit_f[k])
    default:
    break;
    case 1: // '\001'
    bit_vy[k] += rand.nextDouble() / 50D;
    bit_px[k] += bit_vx[k];
    bit_py[k] += bit_vy[k];
    bit_l[k]--;
    if(bit_l[k] == 0 || bit_px[k] < 0.0D || bit_py[k] < 0.0D || bit_px[k] > (double)m_nAppX || bit_py[k] > (double)(m_nAppY - 3))
    bit_c[k] = 0xff000000;
    bit_f[k] = 0;
    } else
    if(bit_p[k] == 0)
    if((int)(rand.nextDouble() * 2D) == 0)
    bit_set((int)bit_px[k], (int)bit_py[k], -1);
    } else
    bit_set((int)bit_px[k], (int)bit_py[k], bit_c[k]);
    break;
    case 2: // '\002'
    bit_sy[k] -= 5;
    if((double)bit_sy[k] <= bit_py[k])
    bit_f[k] = 1;
    flag2 = true;
    if((int)(rand.nextDouble() * 20D) == 0)
    int i = (int)(rand.nextDouble() * 2D);
    int j = (int)(rand.nextDouble() * 5D);
    bit_set(bit_sx[k] + i, bit_sy[k] + j, -1);
    break;
    if(flag2 && bit_sound > 0)
    sound1.play();
    void bit_set(int i, int j, int k)
    int l = i + j * m_nAppX;
    pix0[l] = k;
    /*********************************end*******************************

    no one help me???????????

  • How to use Crystal Report with Java - need help

    Dear everyone,
    i am completely new to Crystal report , please can anyone help me to creat a very simple Report using the Crystal report,
    the report will show some records from oracle DB.
    How can i make it by a simple example and with code please?
    do i need any JAR or Bean for Crystal report?
    thanks for your help and please don't hesitate to contact me in case of any inquiries.
    my email: [email protected]
    Thanks in advance

    I what to use Crystal report to generate report.My programe in java swing .Iam retrive table from database in Jtable .But when giving print
    command its print half screen .so that why I wantto usecrystal report
    package file2;
    import file2.choice;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import java.awt.print.*;
    import javax.swing.table.*;
    import com.sun.java.swing.*;
    import javax.swing.JTable;
    public class cour extends JFrame implements Printable
         //Menu fileMenu;
         public static void main(String[] a)
    cour n = new cour();
    n.setVisible(true);
    public cour()
         super("Course Report");
         report();
         protected void report()
              JPanel panel = new JPanel();
         JButton printButton = new JButton("Print");
         panel.add(printButton);
         JButton exitButton = new JButton("Exit");
         panel.add(exitButton);     
         DefaultTableModel defaulttablemodel = new DefaultTableModel();
              JTable jtable = new JTable(defaulttablemodel);
              panel.add(new JScrollPane(jtable));
              String      tempname="";
              int tempcnt;
              String driver="sun.jdbc.odbc.JdbcOdbcDriver";
              String url="jdbc:odbc:regs";
              Object[] data = new Object[4];
              try
                             Class.forName(driver);                         
                             Connection connection=DriverManager.getConnection(url,"sa","");
                             Statement statement = connection.createStatement();     
                             String query = "SELECT courseid as CourseID,coursen as CourseName,cfee as Fee,coursed as Duration FROM course";
                             ResultSet rs = statement.executeQuery(query);     
                             ResultSetMetaData rmeta = rs.getMetaData();
                             int numColumns=rmeta.getColumnCount();                         
                             for(int i=1;i<=numColumns;i++)
                                  if(i<=numColumns)
                                       defaulttablemodel.addColumn(rmeta.getColumnName(i));
                             while(rs.next())
                                  for(int i=1;i<=numColumns;++i)
                                       if( i<=numColumns)
                                            tempname = rs.getString(i);
                                            tempcnt=i-1;
                                            data[tempcnt] = tempname;          
                                  defaulttablemodel.addRow(data);                              
                   catch(Exception ex)
              printButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              /*if(ae.getActionCommand().equals("Print"))
              PrinterJob pj = PrinterJob.getPrinterJob();
              pj.setPrintable(cour.this);
              if (pj.printDialog())
              try
              pj.print();
              catch (PrinterException pe)
              System.out.println(pe);
    exitButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
              choice ch=new choice();
                   setVisible(false);
                   ch.setVisible(true);
    setContentPane(panel);
         setSize(1040,780);
    /*Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = getSize();
    int x = (screenSize.width - frameSize.width) / 2;
    int y = (screenSize.height - frameSize.height) / 2;
    setLocation(x, y);*/
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex)
    if (pageIndex != 0) return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D)g;
    g2.translate(pf.getImageableX(), pf.getImageableY());
    getContentPane().paint(g2);
    return PAGE_EXISTS;
    }

Maybe you are looking for

  • Session Timeout and Url Redirect in BlazeDS?

    We have a JSF2 Webapp and Flex 4 integreated. Question 1. How can we pass the parameters in web.xml to make FLEX4 redirect to login page when the session timeouts instead of giving a AMF Communication Error? Thanks, User.

  • Mac Mini 10.6.8 slow startup

    I have a mac mini with 2 gb ram running 10.6.8. Hard drive is 500gb with over half of that unused. Initial boot time first thing in the morning is slightly over a minute. It also starts programs pretty slow after that for about 30 minutes. Then it se

  • Apple Preview print dialog defaults to "2-sided" printing.  How to change?

    Using a Lexmark Pro905 printer via wi-fi. The old iMac (10.4) prints normally but on the new iMac (10.6.6) preview defaults to printing 2 sided, which causes my printer to jam 70% of the time. I can find no way to turn off 2-sided by default. Any ide

  • How do you edit the audio to reduce feedback heard?

    Hello - I videotaped someone talking, and I am in FCE now editing it. When I turn up the volume as loud as it will go on my computer I hear a lot of feedback or a constant noise that takes away from the person talking. I know I need to work on this w

  • Returning ipod in a different country?

    I was given an Ipod classic as a gift about 2 and a half months ago. At the end of last week, while I was using it, it rebooted itself, loaded as far as the menu screen, and immediately rebooted itself, and has been doing the same thing since then (s