Problem trying to run 32 bit VBA program on a 64 bit machine

I am a new programmer using VBA in Excel. I have used code that refers to a kernel32 in the VBA code. This code fails on a 64 bit machine. Runs perfectly fine on 32 bit machine. Is there code I can add that will allow the program to run on both systems?
The code is being used to determine the UTC time of a cell from a report.
Thank you in advance. Code below:
Option Explicit
Public Declare Function SystemTimeToFileTime Lib _
    "kernel32" (lpSystemTime As SYSTEMTIME, _
    lpFileTime As FILETIME) As Long
Public Declare Function LocalFileTimeToFileTime Lib _
    "kernel32" (lpLocalFileTime As FILETIME, _
    lpFileTime As FILETIME) As Long
Public Declare Function FileTimeToSystemTime Lib _
    "kernel32" (lpFileTime As FILETIME, lpSystemTime _
    As SYSTEMTIME) As Long
Public Type FILETIME
    dwLowDateTime As Long
    dwHighDateTime As Long
End Type
Public Type SYSTEMTIME
    wYear As Integer
    wMonth As Integer
    wDayOfWeek As Integer
    wDay As Integer
    wHour As Integer
    wMinute As Integer
    wSecond As Integer
    wMilliseconds As Integer
End Type

I don't have Office-64 to test but try this
#If VBA7 Then
Declare PtrSafe Function SystemTimeToFileTime Lib "kernel32" Alias "SystemTimeToFileTime" (lpSystemTime As SYSTEMTIME, lpFileTime As FILETIME) As Long
Declare PtrSafe Function LocalFileTimeToFileTime Lib "kernel32" Alias "LocalFileTimeToFileTime" (lpLocalFileTime As FILETIME, lpFileTime As FILETIME) As Long
Declare PtrSafe Function FileTimeToSystemTime Lib "kernel32" Alias "FileTimeToSystemTime" (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) As Long
#Else
Public Declare Function SystemTimeToFileTime Lib _
"kernel32" (lpSystemTime As SYSTEMTIME, _
lpFileTime As FILETIME) As Long
Public Declare Function LocalFileTimeToFileTime Lib _
"kernel32" (lpLocalFileTime As FILETIME, _
lpFileTime As FILETIME) As Long
Public Declare Function FileTimeToSystemTime Lib _
"kernel32" (lpFileTime As FILETIME, lpSystemTime _
As SYSTEMTIME) As Long
#End If
For a good intro
Declaring API Functions In 64 Bit Office

Similar Messages

  • Error while trying to run a compiled program

    Hi guys, I am new here and so is my experience in Java. I am taking Computer Science major in college right now.
    I have a problem trying to run a program that has compiled. I always receive an error message like this:
    C:\>javac A:\Grade.java
    C:\>java A:\Grade.java
    Exception in thread "main" java.lang.NoClassDefFoundError: A:\Grade/java
    It doesn't work on my computer, but it works in my school. I do not know why. I am using JDK 1.3 and the school uses JDK 1.2. Both have the same OS(win98). I can't trace the error.
    Please help me out. Thank you so much. It would save me a lot of time doing the program at home.

    He's right! The computer you use at school might be set with the correct environment variables so you don't have to type -classpath.
    So for your computer at home; you can either do the -classpath typing (waste of time) or set-up you PC properly: Look at this guide
    http://java.sun.com/products/jdk/1.1/docs/tooldocs/win32/classpath.html
    Good Luck

  • Failure to launch problem trying to run any .jnlp

    Hello everyone,
    I have been trying to run a program to help me study for my medical board exams and it uses java web start. I have tried to run the demo program off of the java website as well and I keep getting the same error.
    Unable to Launch download error
    An error occurred while launching/running the application.
    Title: Draw 4 App
    Vendor: Sun Microsystems, Inc.
    Category: Download Error
    Unable to load resource: http://java.sun.com/products/javawebstart/apps/draw.jnlp
    Launch File
    ?xml version="1.0" encoding="utf-8"?>
    <!--
    # @(#)draw.jnlp     1.6 02/09/11
    # JNLP File for Draw Demo Application
    -->
    <jnlp spec="0.2 1.0"
    codebase="http://java.sun.com/products/javawebstart/apps"
    href="draw.jnlp">
    <information>
    <title>Draw 4 App</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href="http://java.sun.com/products/javawebstart/demos.html"/>
    <description>A minimalist drawing application along the lines of Illustrator</description>
    <description kind="short">Draw Demo Short Description</description>
    <icon href="images/draw.jpg"/>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
    <j2se version="1.3+"/>
    <jar href="draw.jar" main="true" download="eager"/>
    </resources>
    <application-desc main-class="Draw"/>
    </jnlp>
    Exception
    JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Wrapped Exception
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Sorry I didn't know exactly what info was needed to help with my problem so I just included everything it gave me. I have tried disabling my symantec antivirus, windows firewall and defender, but have had no success. Any help would be tremendously appreciated.
    Thanks,
    Cory Maughan

    sounds like it is not getting the proxyie information correctly.
    open the java console network settings tab and check what proxies are being used.
    /Andy

  • Problems trying to run JDeveloper 9.0.2 on Linux

    Dear All,
    I am facing problems while trying to run JDeveloper 9.0.2 (release 2) on my Linux machine.
    When I invoke jdev/bin/jdev file, the well-known JDeveloper window starts up, but in my console I keep on getting the following error:
    JDeveloper Error:
    java.lang.NoSuchMethodError
    at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
    at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
    at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
    at oracle.ide.model.DataNode.open(DataNode.java:75)
    at oracle.jdeveloper.model.JProject.open(JProject.java:177)
    at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
    at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
    at oracle.bm.commonIde.ModelersServices.initialize(ModelersServices.java:423)
    at oracle.ide.AddinManager._registerAddin(AddinManager.java:550)
    at oracle.ide.AddinManager.initAddins(AddinManager.java:715)
    at oracle.ide.AddinManager.initAddins(AddinManager.java:694)
    at oracle.ide.AddinManager.initProductAndUserAddins(AddinManager.java:287)
    at oracle.ide.Ide.initProductAndUserAddins(Ide.java:1147)
    at oracle.ide.Ide.startupImpl(Ide.java:1839)
    at oracle.ide.Ide.startup(Ide.java:1544)
    at oracle.ideimpl.IdeMain.main(IdeMain.java:33)
    The situation becomes even more irritating when I realise that almost all actions that I try to perform (like when I try to add a new Project) are not executed (while I keep on getting the SAME error in my console as above with only the number of the final line that indicates where the first call occured changed).
    Does anybody have any idea of what kind of dependency I may have forgotten and where ? The error seems to be related with some kind of xml (parser maybe ?) incompatibility ... Any clues ?
    To further assist you, I have a list of extra information that might prove to be helpful on my attempt to shed more light onto this very problem:
    My Java Version is:
    java -version:
    java version "1.3.1_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
    Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
    and any possible environment variable related stuff (all links have been double checked and are valid):
    SDK_HOME=/usr/lib/java
    J2EE_HOME=/opt/development/programming/java/sun/j2ee
    J2EE_BIN_HOME=/opt/development/programming/java/sun/j2ee/bin
    FORTE_JDK_HOME=/opt/development/programming/java/sun/forte/forte/j2sdk1.4.0
    CLASSPATH=/usr/lib/jre/lib/rt.jar:/opt/development/programming/java/apache/jakarta/tomcat/common/lib/servlet.jar:/opt/development/programming/java/sun/j2ee/lib/j2ee.jar:/usr/lib/java/lib/jsse.jar:/opt/Servers/JBoss/JBoss/client:.:/opt/development/programming/java/apache/jakarta/ant/lib:.
    JAVA_BINDIR=/usr/lib/java/bin
    ANT_HOME=/opt/development/programming/java/apache/jakarta/ant
    ANT_LIB_HOME=/opt/development/programming/java/apache/jakarta/ant/lib
    JSEE_HOME=/usr/lib/java
    JAVA_BIN_HOME=/usr/lib/java/bin
    TOMCAT_HOME=/opt/development/programming/java/apache/jakarta/tomcat
    JAVA_HOME=/usr/lib/java
    JAVA_PATH=/usr/lib/java:/opt/development/programming/java/sun/j2ee
    JDK_HOME=/opt/development/programming/java/sun/forte/forte/j2sdk1.4.0
    PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/openwin/bin:/usr/lib/java/bin:/opt/gnome/bin:/usr/lib/java/bin:/opt/development/programming/java/sun/j2ee/bin:.:/opt/development/programming/java/apache/ant/bin:.:/opt/projects/cvs/tk_cvs/installation/bin:.:/usr/lib/java/bin:/opt/development/programming/java/sun/j2ee/bin:.:/opt/development/programming/java/apache/jakarta/ant/bin:.:/opt/projects/cvs/tk_cvs/installation/bin:.
    ANT_BIN_HOME=/opt/development/programming/java/apache/jakarta/ant/bin
    I would really like to thank you in advance for your concern,
    Best regards,
    Nassos Koyrendas

    JDeveloper is only supported with JDK 1.3.1_02 as we are aware of some issues with 1.3.1_04. Can you try with JDK 1.3.1_02 and see whether the problem still reproduces.
    Thanks,
    Lisa
    JDev QA Dear Lisa,
    As I have stated within my previous reply to your immediate answer/response, today I reverted my production PC at work to operate with a single processor Linux kernel (2.4.18-4GB) and also installed JDK 1.3.1_02 but still get the same irritating error that apparently does not allow me perform almost any action at all:
    ava.lang.NoSuchMethodError
    at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
    at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
    at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
    at oracle.ide.model.DataNode.open(DataNode.java:75)
    at oracle.jdeveloper.model.JProject.open(JProject.java:177)
    at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
    at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
    at oracle.bm.commonIde.ModelersServices.initialize(ModelersServices.java:423)
    at oracle.ide.AddinManager._registerAddin(AddinManager.java:550)
    at oracle.ide.AddinManager.initAddins(AddinManager.java:715)
    at oracle.ide.AddinManager.initAddins(AddinManager.java:694)
    at oracle.ide.AddinManager.initProductAndUserAddins(AddinManager.java:287)
    at oracle.ide.Ide.initProductAndUserAddins(Ide.java:1147)
    at oracle.ide.Ide.startupImpl(Ide.java:1839)
    at oracle.ide.Ide.startup(Ide.java:1544)
    at oracle.ideimpl.IdeMain.main(IdeMain.java:33)
    java.lang.NoSuchMethodError
    at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
    at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
    at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
    at oracle.ide.model.DataNode.open(DataNode.java:75)
    at oracle.jdeveloper.model.JProject.open(JProject.java:177)
    at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
    at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
    at oracle.jdeveloper.model.JProject.getActiveConfiguration(JProject.java:925)
    at oracle.jdeveloper.model.JProject.getEncoding(JProject.java:750)
    at oracle.ide.Ide.getDefaultEncoding(Ide.java:1036)
    at oracle.ide.model.TextNode.loadURLContentIntoBuffer(TextNode.java:423)
    at oracle.ide.model.TextNode.reopen(TextNode.java:205)
    at oracle.ide.model.TextNode.open(TextNode.java:143)
    at oracle.ide.model.TextNode.acquireTextBuffer(TextNode.java:343)
    at oracle.ide.model.TextNode.getInputStream(TextNode.java:316)
    at oracle.jdevimpl.webapp.html.HtmlEditorConnection.getInputStream(HtmlEditorConnection.java:65)
    at ice.pilots.html4.DOMBuilder.loadData(Unknown Source)
    at ice.pilots.html4.DOMBuilder.linkStyleSheet(Unknown Source)
    at ice.pilots.html4.DOMBuilder.startElement(Unknown Source)
    at ice.pilots.html4.Lex2.doElementCallback(Unknown Source)
    at ice.pilots.html4.Lex2.parseElement(Unknown Source)
    at ice.pilots.html4.Lex2.parseMarkup(Unknown Source)
    at ice.pilots.html4.Lex2.do_parse(Unknown Source)
    at ice.pilots.html4.Lex2.parse(Unknown Source)
    at ice.pilots.html4.Lex2.parse(Unknown Source)
    at ice.pilots.html4.ThePilot.parse(Unknown Source)
    at ice.storm.StormBase.do_render_content(Unknown Source)
    at ice.storm.DefaultPilotContext.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:484)
    No matter what the action that is to be performed is, the JDeveloper application insists on reporting the above mentioned problem and almost always refuses to perform the desired activity!
    Based on your more advanced knowledge of the underlying architecture of JDeveloper, do you happen to have a more clear idea about it and especially the "oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)" case ?
    Is there anything that I have forgotten to properly configure during the installation of jdeveloper ?
    Any other clues that could further assist me ? I am afraid I am still desperate for any king of useful derictives ?
    I would once again like to thank you for your concern,
    Best regards,
    Nassos Koyrendas

  • Trying to run a windows program on mac. Any ideas?

    Hey guys-
    Thanks for all your help and all that stuff. What I've been trying to do is run a couple .exe files that are (obviously) designed to work on windows. I have tried wine and playonmac with no success- do you guys have any free ideas? Also, winebottler does not support running a single exe file. Plz help me out here, because i really could use this for work purposes! Also, here are my computer specs: Mac air 13in 128gb hdd 8gb ram i7 proccessor.

    What software are you trying to run?  That's the key question.  "Free" Windows emulators like WINE and all the programs built on top of them (including proprietary ones like Crossover) usually provide an emulated WinXP environment as the most up to date environment they support.  And usually Windows95 as the oldest one they support, if I remember correctly.  Anything outside of those limits, or requiring specialty drivers not available in the OS installation, often cannot be made to work (or at least made to work properly).
    Therefore, if the program you want to run requires an environment any newer than WinXP, you are going to be SOL for a free solution.  You can still get a free virtual machine program (a la VirtualBox) but you will need to pay for a Windows license.

  • Problem trying to run sql loader

    hi ,
    i'm trying to run sql loader but i'm getting an error message. it was working a few days ago but not now. i am on oracle version 8.0.6.2.0
    from a unix prompt line i type....
    sqlldr system/manager id3com.ctl
    the error message i get is......
    ORA-01017: invalid username/password; logon denied
    SQL*Loader-704: internal error: ulconnect: OCISessionBegin [-1]
    does anyone know what this is for? i've always used system/manager in the past but just recently i've been getting error messages.

    I'd say someone changed the password. Try running sql*plus as system.

  • Problem trying to run photoshop roundtrip with aperture/automator

    i have been trying to install photoshop round-trip to use with aperture but it is not working.
    first, i created a folder called automator in the main library and drag the "start photoshop roundtrip.action" file.
    second, i copied the photoshop action pack to my photoshop cs2, inside my application folder
    third, i restarted the computer (aperture loves quit and restart).
    now, i am trying to run photoshop round-trip from my aperture menu from automator, but i dont see the option for photoshop round-trip.
    what i am doing wrong?
    thanks for your help.
    eric

    Can you please provide the code for a sample procedure and the string you are passing it for me to try out?

  • Problem trying to run program

    I get the following error when i try run my program, which is a simple printing hello world. I am trying to get the compiler on my laptop working.
    C:\Users\Taurus>javac test.java
    C:\Users\Taurus>java test
    Exception in thread "main" java.lang.NoClassDefFoundError: test
    Caused by: java.lang.ClassNotFoundException: test
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)This is the program:
    import java.io.*;
    public class test
         public static void main (String[] args)
              System.out.println("hello world!");
         Edited by: The_One on Sep 6, 2008 9:59 AM

    Check your environment variables. It looks like you have a CLASSPATH that doesn't include the current working directory ( . )
    db

  • JAXB, problems trying to run a program

    Hi!
    I made a program similar to the create marshal example from the Java Web Services Tutorial. It compiled ok, but when I try:
    java Main
    I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    Do you know what might be causing this problem?
    Thanks!

    I've got this problem before,
    as time limited,
    I simply extract and copy the <jwsdp_home>\jaxb\lib\jaxb_api.jar to the folder containing the Main.java.

  • Hi, I was trying to run the trial program the Flash Pro after downloaded, but it pops up with this message that it has problem with lisensing and the error code is 213:19. What should I do?

    PLEASE HELP ME OUT;(

    even though this is not for flash, use the solutions - Error 213:19 | Problem has occurred with the licensing of this product

  • Problem trying to run java embedded in Xscale -PXA270

    Hi all,
    I have a Arcom Zeus (Xscale -PXA270, ARMv5, 5TE), and I'm trying to install java embedded for armv5 (headless). My system is debian/linux, gcc (), kernel 2.6.16-28 (cannot upgrade) and glibc (). My /proc/cpuinfo is:
    Processor : XScale-PXA270 rev 7 (v5l)
    BogoMIPS : 517.73
    Features : swp half thumb fastmult edsp
    CPU implementer : 0x69
    CPU architecture: 5TE
    CPU variant : 0x0
    CPU part : 0x411
    CPU revision : 7
    Cache type : undefined 5
    Cache clean : undefined 5
    Cache lockdown : undefined 5
    Cache format : Harvard
    I size : 32768
    I assoc : 32
    I line length : 32
    I sets : 32
    D size : 32768
    D assoc : 32
    D line length : 32
    D sets : 32
    Hardware : Arcom ZEUS
    Revision : 0000
    Serial : 0000000000000000
    My /proc/meminfo is:
    MemTotal: 127684 kB
    MemFree: 13532 kB
    Buffers: 4688 kB
    Cached: 70400 kB
    SwapCached: 0 kB
    Active: 71760 kB
    Inactive: 32680 kB
    HighTotal: 0 kB
    HighFree: 0 kB
    LowTotal: 127684 kB
    LowFree: 13532 kB
    SwapTotal: 0 kB
    SwapFree: 0 kB
    Dirty: 0 kB
    Writeback: 0 kB
    Mapped: 39200 kB
    Slab: 7036 kB
    CommitLimit: 63840 kB
    Committed_AS: 161180 kB
    PageTables: 848 kB
    VmallocTotal: 319488 kB
    VmallocUsed: 66072 kB
    VmallocChunk: 253116 kB
    I think all system requirements are respected!
    I have installed the package but when I try to execute "java", using "./java", it state that the file is not found, which typically means (when the file exists :D), that it is not compiled for the system in question. So, I have compiled a simple helloworld in C and compile it, to compare the output of the file command, between my program and the "java" executable:
    * a.out: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.6.12, dynamically linked (uses shared libs), for GNU/Linux 2.6.12, not stripped
         * java: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
    The only two differences are "version 1 (ARM)" or "version 1 (SYSV) - can it be the EABI? - and Kernel version 2.6.12 to 2.6.14.
    Can someone help me understand what is the problem and if it can be solved by modifying my system (but not the kernel version)?.
    Thanks in advance!

    Hi,
    forgot to state libc6 version = 2.7-18;
    and gcc version = 4.4.3
    thanks!

  • Major problems trying to run computer

    I am having a huge problem right now. When I try to boot my Mac the screen is a fuzzy mess and will just freeze up after a few seconds. If I try to reboot a few times, eventually the computer clears itself up and looks like it is booting normally, but when the desktop should show up, it does not, or does for a second and freezes up. I cannot get into any files to save anything. I tried booting to the install disk and running disk first aid. That worked fine, but the computer still will not load without becoming a snowy/fuzsy mess and locking up. Any ideas?

    Are you able to run the Apple Hardware Test from the CD or DVD? I had the same problem, was not able to run Apple Hardware Test, and AppleCare even took me through OpenFirmware, but with no luck. It ended up being a bad logic board, which luckily for me, was covered under warranty. Hopefully yours is something simple (cheap), or even better, I hope you're still under warranty.

  • Having problems trying to run a sql script using the command prompt.

    I place my script at the root c:
    open run SQL Command Line.
    I connected to the database using connet userid/password
    Then I tried to execute the script by doing
    @test_add_comments
    I am getting the error message.
    SQL> @test_add_comments
    SP2-0310: unable to open file "test_add_comments.sql"
    Am I suppose to place this sql somewhere else?
    test_add_comments.sql is
    COMMENT ON COLUMN myTable.ID IS 'Primary Key' ;
    COMMENT ON COLUMN myTable.REVIEWLOG_ID IS 'REFERENCE TO SAFE REVIEW LOG TABLE' ;
    COMMENT ON COLUMN myTable.FAC_ID IS 'REFERENCE TO ALL FACILITIES' ;
    COMMENT ON COLUMN myTable.HALLBUILD_ID IS 'REFERENCE TO HALL BUILDING' ;

    I figure it out.
    open a sql worksheet and enter the falling commands in the run script.
    @c:\your_script.sql
    Execute it by clicking run script.

  • Can anyone help me solve my problem trying add GUI to Inventory program?

    Here is my code in which I am receiving a couple of errors.
    package inventory4;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class Inventory4 extends JFrame implements ActionListener {
        private class MyPanel extends JPanel {
            ImageIcon image = new ImageIcon("Sample.jpg");
            int width = image.getIconWidth();
            int height = image.getIconHeight();
            long angle = 30;
            public MyPanel() {
                super();
            public void paintComponent(Graphics g) {
                super.paintComponent(g);
                Graphics2D g2d = (Graphics2D) g;
                g2d.rotate(Math.toRadians(angle), 60 + width / 2, 60 + height / 2);
                g2d.drawImage(image.getImage(), 60, 60, this);
                g2d.dispose();
        }//end class MyPanel
        int currentIndex; //Currently displayed Item
        Product[] supplies = new Product[4];
        JLabel name;
        JLabel number;
        JLabel title;
        JLabel quantity;
        JLabel price;
        JLabel fee;
        JLabel totalValue;
        JTextField nameField = new JTextField(20);
        JTextField numberField = new JTextField(20);
        JTextField titleField = new JTextField(20);
        JTextField quantityField = new JTextField(20);
        JTextField priceField = new JTextField(20);
        JPanel display;
        JPanel displayHolder;
        JPanel panel;
        public Inventory4() {
            setSize(500, 500);
            setTitle("Bob's CD Inventory Program");
    //make the panels
            display = new JPanel();
            JPanel other = new JPanel();
            JPanel picture = new MyPanel();
            JPanel centerPanel = new JPanel();
            displayHolder = new JPanel();
            display.setLayout(new GridLayout(7, 1));
    //other.setLayout(new GridLayout(1, 1));
    //make the labels
            name = new JLabel("Name :");
            number = new JLabel("Number :");
            title = new JLabel("Title :");
            quantity = new JLabel("Quantity :");
            price = new JLabel("Price :");
            fee = new JLabel("Restocking Fee :");
            totalValue = new JLabel("Total Value :");
    //Add the labels to the display panel
            display.add(name);
            display.add(number);
            display.add(title);
            display.add(quantity);
            display.add(price);
            display.add(fee);
    //Add the panels to the frame
            getContentPane().add(centerPanel, "Center");
            getContentPane().add(other, "South");
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);
    class CD extends Product {
        String genre;
        double restockingFee;
        public CD(String genre, double restockingFee, int item, String title, double stockQuantity,
                double price) {
            //super(title,item, stockQuantity, price);
            this.genre = genre;
            this.restockingFee = restockingFee;
        // TODO Auto-generated constructor stub
        //returns the value of the inventory, plus the restocking fee
        public double getInventoryValue() {
            // TODO Auto-generated method stub
            return super.getItemPrice() + restockingFee;
        public String toString() {
            StringBuffer sb = new StringBuffer("Genre      \t").append(genre).append("\n");
            sb.append(super.toString());
            return sb.toString();
    //Inventory4.java
    class Product implements Comparable {
        private String title;   // class variable that stores the item name
        private int item;     // class variable that stores the item number
        private double stockQuantity;   // class variable that stores the quantity in stock
        private double price;     // class variable that stores the item price
        private String genre;
        public Product() {
            title = "";
            item = 0;
            stockQuantity = 0;
            price = 0.0;
            genre = "";
        public Product(String title, String genre, int item, double stockQuantity, double price) {
            this.title = title;
            this.item = item;
            this.stockQuantity = stockQuantity;
            this.price = price;
            this.genre = genre;
        public void setTitle(String title) {
            this.title = title;
        public String getTitle() {
            return title;
        public void setItem(int item) {
            this.item = item;
        public int getItem() {
            return item;
        public void setStockQuantity(double quantity) {
            stockQuantity = quantity;
        public double getStockQuantity() {
            return stockQuantity;
        public void setItemPrice(double price) {
            this.price = price;
        public double getItemPrice() {
            return price;
        public void setGenre(String genre) {
            this.genre = genre;
        public String getGenre() {
            return genre;
        public double calculateInventoryValue() {
            return price * stockQuantity;
        public int compareTo(Object o) {
            Product p = null;
            try {
                p = (Product) o;
            } catch (ClassCastException cE) {
                cE.printStackTrace();
            return title.compareTo(p.getTitle());
        public String toString() {
            return "CD Title: " + title + "\nGenre: " + genre + "\nItem #: " + item + "\nPrice: $" + price + "\nQuantity: " + stockQuantity + "\nValue with restocking fee: $" + (calculateInventoryValue() + (calculateInventoryValue() * .05));
    public class Inventory4 {
        Product[] supplies;
        public static void main(String[] args) {
            Inventory4 inventory = new Inventory4();
            inventory.addProduct(new Product("Mozart", "Classical", 1, 54, 11.50));
            inventory.addProduct(new Product("Beethoven", "Classical", 2, 65, 12.00));
            inventory.addProduct(new Product("Tiny Tim", "Classical", 3, 10, 1.00));
            System.out.println("Inventory of CD's:\n\n");
            System.out.println();
            inventory.showInventory();
            System.out.println();
            double total = inventory.calculateTotalInventory();
            System.out.println("Total Value is: $" + (total + (total * .05)));
        public void sortByName() {
            for (int i = 1; i < supplies.length; i++) {
                int j;
                Product val = supplies;
    for (j = i - 1; j > -1; j--) {
    Product temp = supplies[j];
    if (temp.compareTo(val) <= 0) {
    break;
    supplies[j + 1] = temp;
    supplies[j + 1] = val;
    //creates a String representation of the array of products
    public String toString() {
    String s = "";
    for (Product p : supplies) {
    s = s + p.toString();
    s = s + "\n\n";
    return s;
    //Using an array so adding an item requires us to increase the size of the array first
    public void addProduct(Product p1) {
    if (supplies == null) {
    supplies = new Product[0];
    Product[] p = supplies; //Copy all products into p first
    Product[] temp = new Product[p.length + 1]; //create bigger array
    for (int i = 0; i < p.length; i++) {
    temp[i] = p[i];
    temp[(temp.length - 1)] = p1; //add the new product at the last position
    supplies = temp;
    //sorting the array using Bubble Sort
    public double calculateTotalInventory() {
    double total = 0.0;
    for (int i = 0; i < supplies.length; i++) {
    total = total + supplies[i].calculateInventoryValue();
    return total;
    public void showInventory() {
    System.out.println(toString()); //call our toString method

    I re-entered the package and changed some of the code. I am building successfully, but getting a new msg: init:
    deps-jar:
    compile:
    run:
    java.lang.NoClassDefFoundError: Inventory5_5
    Caused by: java.lang.ClassNotFoundException: Inventory5_5
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Exception in thread "main"
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds) I may have to go ahead and submit it as is to get it in on time. Thank you very much for your help and your patience. Here is my last effort.package inventory4;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class inventory4 extends JFrame  {
        private class MyPanel extends JPanel {
            ImageIcon image = new ImageIcon("Sample.jpg");
            int width = image.getIconWidth();
            int height = image.getIconHeight();
            long angle = 30;
            public MyPanel() {
                super();
            public void paintComponent(Graphics g) {
                super.paintComponent(g);
                Graphics2D g2d = (Graphics2D) g;
                g2d.rotate(Math.toRadians(angle), 60 + width / 2, 60 + height / 2);
                g2d.drawImage(image.getImage(), 60, 60, this);
                g2d.dispose();
        }//end class MyPanel
        int currentIndex; //Currently displayed Item
        Product[] supplies = new Product[4];
        JLabel name;
        JLabel number;
        JLabel title;
        JLabel quantity;
        JLabel price;
        JLabel fee;
        JLabel totalValue;
        JTextField nameField = new JTextField(20);
        JTextField numberField = new JTextField(20);
        JTextField titleField = new JTextField(20);
        JTextField quantityField = new JTextField(20);
        JTextField priceField = new JTextField(20);
        JPanel display;
        JPanel displayHolder;
        JPanel panel;
        public inventory4() {
            setSize(500, 500);
            setTitle("Bob's CD Inventory Program");
    //make the panels
            display = new JPanel();
            JPanel other = new JPanel();
            JPanel picture = new MyPanel();
            JPanel centerPanel = new JPanel();
            displayHolder = new JPanel();
            display.setLayout(new GridLayout(7, 1));
    //other.setLayout(new GridLayout(1, 1));
    //make the labels
            name = new JLabel("Name :");
            number = new JLabel("Number :");
            title = new JLabel("Title :");
            quantity = new JLabel("Quantity :");
            price = new JLabel("Price :");
            fee = new JLabel("Restocking Fee :");
            totalValue = new JLabel("Total Value :");
    //Add the labels to the display panel
            display.add(name);
            display.add(number);
            display.add(title);
            display.add(quantity);
            display.add(price);
            display.add(fee);
    //Add the panels to the frame
            getContentPane().add(centerPanel, "Center");
            getContentPane().add(other, "South");
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);
    class CD extends Product {
        String genre;
        double restockingFee;
        public CD(String genre, double restockingFee, int item, String title, double stockQuantity,
                double price) {
            //super(title,item, stockQuantity, price);
            this.genre = genre;
            this.restockingFee = restockingFee;
        // TODO Auto-generated constructor stub
        //returns the value of the inventory, plus the restocking fee
        public double getInventoryValue() {
            // TODO Auto-generated method stub
            return super.getItemPrice() + restockingFee;
        public String toString() {
            StringBuffer sb = new StringBuffer("Genre      \t").append(genre).append("\n");
            sb.append(super.toString());
            return sb.toString();
    //Inventory4.java
    class Product implements Comparable {
        private String title;   // class variable that stores the item name
        private int item;     // class variable that stores the item number
        private double stockQuantity;   // class variable that stores the quantity in stock
        private double price;     // class variable that stores the item price
        private String genre;
        public Product() {
            title = "";
            item = 0;
            stockQuantity = 0;
            price = 0.0;
            genre = "";
        public Product(String title, String genre, int item, double stockQuantity, double price) {
            this.title = title;
            this.item = item;
            this.stockQuantity = stockQuantity;
            this.price = price;
            this.genre = genre;
        public void setTitle(String title) {
            this.title = title;
        public String getTitle() {
            return title;
        public void setItem(int item) {
            this.item = item;
        public int getItem() {
            return item;
        public void setStockQuantity(double quantity) {
            stockQuantity = quantity;
        public double getStockQuantity() {
            return stockQuantity;
        public void setItemPrice(double price) {
            this.price = price;
        public double getItemPrice() {
            return price;
        public void setGenre(String genre) {
            this.genre = genre;
        public String getGenre() {
            return genre;
        public double calculateInventoryValue() {
            return price * stockQuantity;
        public int compareTo(Object o) {
            Product p = null;
            try {
                p = (Product) o;
            } catch (ClassCastException cE) {
                cE.printStackTrace();
            return title.compareTo(p.getTitle());
        public String toString() {
            return "CD Title: " + title + "\nGenre: " + genre + "\nItem #: " + item + "\nPrice: $" + price + "\nQuantity: " + stockQuantity + "\nValue with restocking fee: $" + (calculateInventoryValue() + (calculateInventoryValue() * .05));
    public class Inventory4 {
        Product[] supplies;
        public static void main(String[] args) {
            Inventory4 inventory = new Inventory4();
            inventory.addProduct(new Product("Mozart", "Classical", 1, 54, 11.50));
            inventory.addProduct(new Product("Beethoven", "Classical", 2, 65, 12.00));
            inventory.addProduct(new Product("Tiny Tim", "Classical", 3, 10, 1.00));
            System.out.println("Inventory of CD's:\n\n");
            System.out.println();
            inventory.showInventory();
            System.out.println();
            double total = inventory.calculateTotalInventory();
            System.out.println("Total Value is: $" + (total + (total * .05)));
        public void sortByName() {
            for (int i = 1; i < supplies.length; i++) {
                int j;
                Product val = supplies;
    for (j = i - 1; j > -1; j--) {
    Product temp = supplies[j];
    if (temp.compareTo(val) <= 0) {
    break;
    supplies[j + 1] = temp;
    supplies[j + 1] = val;
    //creates a String representation of the array of products
    public String toString() {
    String s = "";
    for (Product p : supplies) {
    s = s + p.toString();
    s = s + "\n\n";
    return s;
    //Using an array so adding an item requires us to increase the size of the array first
    public void addProduct(Product p1) {
    if (supplies == null) {
    supplies = new Product[0];
    Product[] p = supplies; //Copy all products into p first
    Product[] temp = new Product[p.length + 1]; //create bigger array
    for (int i = 0; i < p.length; i++) {
    temp[i] = p[i];
    temp[(temp.length - 1)] = p1; //add the new product at the last position
    supplies = temp;
    //sorting the array using Bubble Sort
    public double calculateTotalInventory() {
    double total = 0.0;
    for (int i = 0; i < supplies.length; i++) {
    total = total + supplies[i].calculateInventoryValue();
    return total;
    public void showInventory() {
    System.out.println(toString()); //call our toString method

  • Problems trying to run ASD 2.5.8

    I just replaced the logic board on my power mac g5 (dual 2Ghz) and now the fans are running like crazy.
    I got a hold of ASD 2.5.8, so I can run a thermal calibration, but when I boot to the cd the screen is bunched up, like squeezed together and nothing is really legible.
    I tried the 2.5.7 CD and I get the same result.
    Has anyone else had this issue?
    Is there something I'm doing wrong?

    If it's running...
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto *but not including the Serial#*...
    Hardware Overview:
    Machine Name: Power Mac G5 Quad
    Machine Model: PowerMac11,2
    CPU Type: PowerPC G5 (1.1)
    Number Of CPUs: 4
    CPU Speed: 2.5 GHz
    L2 Cache (per CPU): 1 MB
    Memory: 10 GB
    Bus Speed: 1.25 GHz
    Boot ROM Version: 5.2.7f1
    If not running, put the Serial# in here...
    http://www.chipmunk.nl/klantenservice/applemodel.html
    And compare here...
    http://www.everymac.com/systems/apple/powermac_g5/index-powermac-g5.html

Maybe you are looking for

  • Trying to create a condition on a BW Universe

    Hi experts, I'm trying to create a condition on a BW-Query Universe just like below: <EXPRESSION>  IIF([0HALFYEAR1].[LEVEL01].[[20HALFYEAR1]].[Value] = 1 , [Measures].[DAAP8LRPLLYPPU417LVN5XS2Z]-[Measures].[DAAP8LRPLLXY17S9W2G13IDT7] , [Measures].[DA

  • Red Eye Tool doesn't work in ACR 4.1

    The Red Eye tool doesn't work on my computer in Camera Raw 4.1/Bridge. When I choose it, the Pupil Size and Darken sliders appear but nothing happens when you try a correction. If I open the same image in Photoshop CS3, the Red Eye control works fine

  • Connect to PC issues

    I've been at it for hours. My computer beeps when I connect my phone. I can prompt my PC to install the PC companion software when I connect, but I cant get PC companion to connect to my phone, it just wont detect it. I've tried everything, been at i

  • Quicktime player app causes screen updates to lag?

    I notice gui refreshes are paused by 0.5 seconds every 20 seconds if quicktime player app is loaded. Example: Load quicktime player app. Now drag a finder around continuously. On my system, every 20 seconds, the finder window will not follow the mous

  • In process Inspection  Lot Qty and Actual Lot quantity difference.

    Hi Experts, In case of  In process Inspection Scenario : 1. Production Order created, released but before saving the qty is changed.                 2. Production Order created released and saved. Then qty is changed in Change Prod order txn. These s