Cannot compile db2 application [SOLVED]

OK ppl i really need your help.
I'm trying to compile a db2 program.
I have a sqc file.
I have done:
db2 prep 13.sqc bindfile
db2 bind 13.bnd
gcc -I$DB2DIR/include -I~/sqllib/include -c 13_01.c
and then when i try to do:
gcc -o program 13_01.o -Wl,-rpath,~/sqllib/lib32 -L~/sqllib/lib32 -ldb2
i get the following error:
/usr/bin/ld: cannot find -ldb2
collect2: ld returned 1 exit status
I have LD_LIBRARY_PATH=/home/db2inst2/sqllib/lib32 and DB2 is version 9.7.
I have googled and googled and googled but i don't find the solution.
Can someone pls help me I need this so I can prepare for my exams but in classes they only teached us to do this on Windows and I don't like to work in it. I have tried even in Windows, but there I get some really crazy errors (not that I have used different method to try compiling it on Windows, method that they thought us in classes).
Thank you!
Last edited by pivonroll (2010-03-13 13:11:26)

OMG
i did it.
I just changed ~/sqllib/lib32 to /opt/ibm/db2/V9.7/lib32 and it worked!

Similar Messages

  • [SOLVED] Cannot compile dvb drivers.

    Hi,
    I'm setting up a htpc media center based on arch with mythtv and xbmc. I've installed the base and base-devel packages and I need to compile the tbs-dvb-drivers to make my TBS 6280 DVB-T2 card work.
    Unfortunately I cannot compile the drivers as the compile process seems to enter in a loop, it continues to show the following output:
    TBS drivers configured for x86_64 platform.
    make -C /home/media/tbs-dvb-drivers/src/linux-tbs-drivers/v4l
    make[1]: ingresso nella directory "/home/media/tbs-dvb-drivers/src/linux-tbs-drivers/v4l"
    scripts/make_makefile.pl
    ./scripts/make_kconfig.pl /lib/modules/3.11.6-1-ARCH/build /lib/modules/3.11.6-1-ARCH/build
    Preparing to compile for kernel version 3.11.6
    ***WARNING:*** You do not have the full kernel sources installed.
    This does not prevent you from building the v4l-dvb tree if you have the
    kernel headers, but the full kernel source may be required in order to use
    make menuconfig / xconfig / qconfig.
    If you are experiencing problems building the v4l-dvb tree, please try
    building against a vanilla kernel before reporting a bug.
    Vanilla kernels are available at http://kernel.org.
    On most distros, this will compile a newly downloaded kernel:
    cp /boot/config-`uname -r` <your kernel dir>/.config
    cd <your kernel dir>
    make all modules_install install
    Please see your distro's web site for instructions to build a new kernel.
    ./scripts/make_myconfig.pl
    scripts/make_makefile.pl
    ./scripts/make_kconfig.pl /lib/modules/3.11.6-1-ARCH/build /lib/modules/3.11.6-1-ARCH/build
    Preparing to compile for kernel version 3.11.6
    ***WARNING:*** You do not have the full kernel sources installed.
    This does not prevent you from building the v4l-dvb tree if you have the
    kernel headers, but the full kernel source may be required in order to use
    make menuconfig / xconfig / qconfig.
    If you are experiencing problems building the v4l-dvb tree, please try
    building against a vanilla kernel before reporting a bug.
    Vanilla kernels are available at http://kernel.org.
    On most distros, this will compile a newly downloaded kernel:
    cp /boot/config-`uname -r` <your kernel dir>/.config
    cd <your kernel dir>
    make all modules_install install
    Please see your distro's web site for instructions to build a new kernel.
    ./scripts/make_myconfig.pl
    scripts/make_makefile.pl
    ./scripts/make_kconfig.pl /lib/modules/3.11.6-1-ARCH/build /lib/modules/3.11.6-1-ARCH/build
    Preparing to compile for kernel version 3.11.6
    ***WARNING:*** You do not have the full kernel sources installed.
    This does not prevent you from building the v4l-dvb tree if you have the
    kernel headers, but the full kernel source may be required in order to use
    make menuconfig / xconfig / qconfig.
    If you are experiencing problems building the v4l-dvb tree, please try
    building against a vanilla kernel before reporting a bug.
    Vanilla kernels are available at http://kernel.org.
    On most distros, this will compile a newly downloaded kernel:
    cp /boot/config-`uname -r` <your kernel dir>/.config
    cd <your kernel dir>
    make all modules_install install
    Please see your distro's web site for instructions to build a new kernel.
    ./scripts/make_myconfig.pl
    scripts/make_makefile.pl
    ./scripts/make_kconfig.pl /lib/modules/3.11.6-1-ARCH/build /lib/modules/3.11.6-1-ARCH/build
    Preparing to compile for kernel version 3.11.6
    I've waited up to 20 minutes, but the process seems stucked and the size of the folder doesn't grow up.
    It's true that I have just the kernel-headers installed. In addition make continues to warn me that the edit date of several files is newer than the actual. Initially the date of the system was wrong (but not older than the file's) but now I've fixed it with the correct date in UTC. The problem persists.
    I've also tried to compile from source directly but make enters into the same loop and gives me the same warnings.
    Thank you in advance for any kind of help.
    Regards.
    Last edited by fasigno (2013-11-03 21:40:00)

    First make sure you have the core-devel package group installed. This is required to build AUR package in general.
    Next, check to see if you have kernel-headers and v4l-utils installed? If not install them both and try again. I'm not sure if they are hard dependancies or not.
    EDIT: Sorry, I see you wrote that you installed core-devel and kernel-headers already. It looks like you may have a time zone and hardware clock sync problem. If you just installed arch, make sure the timezone and locale are correct and havn't been altered since you first installed your system. If that's all good, then install the AUR package cleanly from scratch again.
    Do you have NTP running?
    Last edited by wdirksen (2013-11-03 20:36:18)

  • [SOLVED] Cannot compile taskview-git

    I cannot compile taskview-git. Here's my output:
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> taskview-git dependencies:
    - glib2 (already installed)
    - git (already installed)
    ==> Continue building taskview-git ? [Y/n]
    ==> --------------------------------------
    ==>
    ==> Building and installing package
    ==> Determining latest git revision...
    -> Version found: 20110318
    ==> Making package: taskview-git 20110318-1 (Fri Mar 18 19:50:42 EET 2011)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Starting build()...
    ==> Connecting to the GIT server....
    Cloning into TaskView...
    remote: Counting objects: 1158, done.
    remote: Compressing objects: 100% (605/605), done.
    remote: Total 1158 (delta 801), reused 751 (delta 536)
    Receiving objects: 100% (1158/1158), 336.24 KiB | 121 KiB/s, done.
    Resolving deltas: 100% (801/801), done.
    ==> GIT checkout done.
    ==> Starting make for: taskview-git
    Cloning into /tmp/yaourt-tmp-alexandros/aur-taskview-git/src/TaskView-build...
    done.
    ==> Starting configure...
    ./autogen.sh: line 22: .: gnome-autogen.sh: file not found
    Aborting...
    ==> ERROR: Makepkg was unable to build taskview-git.
    Any ideas?
    Thanks in advance!
    Last edited by Aventinus (2011-03-18 19:22:06)

    I guess you're missing gnome-autogen.sh which is provided by gnome-common.
    # pacman -Qo gnome-autogen.sh
    /usr/bin/gnome-autogen.sh is owned by gnome-common 2.28.0-1
    Last edited by oliver (2011-03-18 18:07:05)

  • Error in compiling Flex application: 64K byte limit

    Hi experts ,
    While deploying the VC model , i m getting this error :
    Error in compiling Flex application: Error: A function in the code exceeds the 64K byte limit (actual size = '65557'). Since the problem occurs in the compiler-generated deferred instantiation code, please refactor/componentize portions of this document.
          (/usr/sap/NW2/JC00/j2ee/cluster/server0/GUIMachine_Business_Packages/Contribution_Margin_36461/FLEX_COMPILATION_FOLEDR/AAD15VY.mxml:19)
    Failed to compile AAD15VY.mxml
    Could any one help me out in solving this issue ..its urgent ...
    Your suggestions will be rewarded.
    Thanks,
    Pratima

    You have to remove few components from your model to decrease the compiler generated LOC.
    Check the following link for detailed solution:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=936390
    Taken from SAP Notes:
    <i>Solution
    Doing the following may help:
    1.Divide problematic iViews into a number of nested iViews.
    2.Optimize each model to reduce the number of elements that it
      contains:
      a.Reduce the number of signals by merging signals of the same name.
      b.When your application updates forms with read-only fields, use
        expression boxes and a data store instead of signals.
      c.Minimize the use of animations in your models, including form
        sliding and chart animation effects
      d.Use a data store to store variables, instead of invisible forms.
        To display messages, use a simple text rather than a static dynamic
        expression.
    3.For on-the-spot, temporary workarounds, you can try dragging an empty
      layer onto the Design board. This sometimes solves the problem ad
      hoc, but is not recommended as a best practice.
    </i>

  • Cannot Compile. Pls. help!

    I cannot compile the following program which calls for another 6 class files from its code. Please note the main program (DiveLog.java)+the other 6 class files are stored in the same directory.
    And also as this involves "package" I tried to compile it as "javac -classpath DiveLog.jav". But I still get the 'cannot resolve symbol' error messages.
    DiveLog.java (Main Program)
    package DiveLog;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DiveLog
    private JFrame dlframe; //Not assigned yet.
    private JTabbedPane tabbedPane; //Not assigned yet.
    //Begins Constructor
    public DiveLog()
    // Create a frame object to add the application GUI components to.
    dlframe = new JFrame("A Java(TM) Technology Dive Log");
    // Closes from title bar and from menu
    dlframe.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    // Tabbed pane with panels for Jcomponents
    // Instantiate JTabbedPane with keyword new
    tabbedPane = new JTabbedPane(SwingConstants.LEFT);
    // Calls method to set color
    tabbedPane.setBackground(Color.blue);
    tabbedPane.setForeground(Color.white);
    populateTabbedPane();
    //Calls the method that builds the menu
    buildMenu();
    dlframe.getContentPane().add(tabbedPane);
    dlframe.pack();
    dlframe.setSize(765, 690);
    dlframe.setBackground(Color.white);
    dlframe.setVisible(true);
    }// Ends Constructor
    private void populateTabbedPane()
    // Create tabs with titles
    tabbedPane.addTab("Welcome", null, new Welcome(), "Welcome to the Dive Log");
    tabbedPane.addTab("Diver Data", null, new Diver(), "Click here to enter diver data");
    tabbedPane.addTab("Log Dives", null, new Dives(),
    "Click here to enter dives");
    tabbedPane.addTab("Statistics", null, new Statistics(),
    "Click here to calculate" + " dive statistics");
    tabbedPane.addTab("Favorite Web Site", null, new Website(),
    "Click here to see a web site");
    tabbedPane.addTab("Resources", null, new Resources(),
    "Click here to see a list of resources");
    } //Ends populateTabbedPane method
    // Method header
    private void buildMenu()
    // Instantiates JMenuBar, JMenu,
    // and JMenuItem.
    JMenuBar mb = new JMenuBar();
    JMenu menu = new JMenu("File");
    JMenuItem item = new JMenuItem("Exit");
    //Closes the application from the Exit menu item.
    item.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    System.exit(0);
    } // Closes actionPerformed method
    }); // Closes addActionListener method
    //Adds the item to the menu object
    menu.add(item);
    //Adds the menu object with item onto the menu bar
    mb.add(menu);
    //Sets the menu bar in the frame
    dlframe.setJMenuBar(mb);
    } //Ends buildMenu method
    public static void main(String[] args)
    DiveLog dl = new DiveLog();
    } //Ends Class
    ===========================================
    Welcome.class (one of the 6 class files.The other 5 are identical to this.)
    package divelog;
    * This class creates the content on the
    * Welcome tabbed pane in the Dive Log
    * application.
    * @version 1.0
    //import for buttons, labels, and images
    import javax.swing.*;
    //import for layout manager
    import java.awt.*;
    public class Welcome extends JPanel
    { //Opens class
    }//Closes class
    =========================================================

    Might be a typo when you posted, but your DiveLog class is in package DiveLog, whereas your Welcome class is in package divelog (note the capitalization differences).
    And even though they're in the same package, i'm always a fan of importing all the files you're going to need explicitly, such as
    import divelog.Welcome
    this applies to using the wildcard character too (as in, you shouldn't) to import files. Explicitly listing all imports allows you, and any other developer, to quickly see a list of all classes used.

  • Cannot compile body of dbms_utility without its specification

    hi there!
    I just got this error on my 11g EE database
    yesterday had power problems, and the backup batery did not work(but it happens very often)
    today, trying to send email with a job, i realized through TOAD that sys has 304 invalid objects.
    Try to compile and it seems something missing.
    "cannot compile body of dbms_utility without its specification"
    I cant find that specification and no forums found related to this.
    need help from experts..
    S.O. Oracle enterprise linux 4.7
    D.B. Oracle Enterprise 11.2
    thanks!

    Virendra, thanks for your time, this is the output
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> ALTER PACKAGE SYS.DBMS_UTILITY COMPILE;
    show errors
    ALTER PACKAGE SYS.DBMS_UTILITY COMPILE BODY;
    show errors
    Warning: Package altered with compilation errors.
    SQL> Errors for PACKAGE SYS.DBMS_UTILITY:
    LINE/COL ERROR
    262/75     PLS-00103: Encountered the symbol "end-of-file" when expecting
         one of the following:
         end function pragma procedure subtype type <an identifier>
         <a double-quoted delimited-identifier> current cursor delete
         exists prior
    SQL>
    Warning: Package Body altered with compilation errors.
    SQL>

  • Cannot use the application "Safari" with Leopard

    When I try to open Safari in my non-admin account I get an error message reading 'You cannot use the application "Safari" with this version of Mac OS X'.
    Bizarrely, if I logon as the admin account it works perfectly.
    I have repaired permissions, run software update, repaired permissions again, logged in as SU and fscked and still the same thing. I discovered that Omni Outliner would open the plist but I don't have the knowledge to interpret that.
    I think I have used Safari on this laptop since upgrading to Leopard. Most of the time I use Firefox so it hasn't been an issue anyway. The really bizarre thing is it works normally in the admin account.
    All suggestions welcome.

    Thanks for that. Tried it to no avail
    I have found out what has gone wrong but I have no idea how.
    I keep all my browsers in a subfolder of the applications folder. I trashed Safari with the intention of downloading a clean version from the Apple website. When I got there I couldn't find a version for OS X (there may be one, it just isn't obvious). So I thought I'd just try Safari one more time from my admin account. Of course the app wasn't in the browser folder. So I went to put it back in the applications folder with the intention of moving it from there to the browsers subfolder.
    But no. There was already a newer version in the applications folder. How did it get there? I have no idea. But it opens. So I've moved it to the browsers subfolder and it still works.
    So problem solved. I don't understand how it happened. And especially why it worked all along in the admin account.
    Thanks to everyone who suggested solutions.

  • Error in compiling flex applications?

    Hi ,
    when when i deploy VC applications iam getting an error ERROR IN COMPILING FLEX APPLICATIONS.CONSULT LOG FILE FOR DETAILS. can u tell me what might be the reason for this error.
    Thanks
    kishore

    hi,
    Solution: Refer OSS  974494
    I) Changing the vc.verboseErrorMessages to true will expose the Flex error
    messages when compilation fails.
    1)Open the visual admin of the J2EE
    2)Navigate to Server >> Services >> VisualComposer Development Server
    3)Change the vc.verboseErrorMessages to true.
    4)Save the changes
    II)In the visual admin tool, go to Server -> Services -> Log Configurator.
    In the right pane choose Locations, then scroll down to com.sap.portal.vc
    Increase the severity to ALL
    Click "Copy to Subtree"
    Apply to all "server nodes"
    III)Reproduce the problem.
    IV)For further investigation, please provide
    1. The error that was received when trying to compile the model with
    verbose set to 'true'.
    2. The newly updated defaultTrace<x>.trc
    V) Revert the logging settings to the default values (false for
    vc.verboseErrorMessages, 'Error' in com.sap.portal.vc* locations)
    Edited by: Parth on Feb 14, 2008 5:16 PM
    If your problem is solved pleas close the thread..Points will be welcomed...

  • Compile AIR application with Ant (WindowedApplication could not be found)

    I'm trying to compile my AIR application with Ant, using the mxmlc Ant Task. It seems to compile fine, and I get a .swf, but when I try to run it with ADL, I get the message "Class mx.core::WindowedApplication could not be found." It looks like the AIR libraries aren't being included properly.
    Here's my mxmlc task:
    Class mx.core::WindowedApplication could not be found.
    <mxmlc
         file="${MAIN_MXML}"
         output="${DEPLOY_DIR}/MyApp.swf"
         compatibility-version="3"
         locale="en_US"
         static-rsls="true"
         debug="${DEBUG_FLAG}"
         optimize="true"
         link-report="${DEPLOY_DIR}/report.xml"
         configname="air">
         <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
         <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
              <include name="*.swc" />
         </library-path>
         <library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
              <include name="*.swc" />
         </library-path>
         <library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
              <include name="{locale}" />
         </library-path>
         <source-path path-element="${SRC_DIR}" />
    </mxmlc>
    Any idea why this is happening? I've tried not including the load-config section and not including the library paths, but it's always the same result - it can't find WindowedApplication.
    Thanks!

    Hi, Guys!
    I ran into the same problem when i tried to write an ant-script to compile the asDocs for my project.
    After reading shades post i added the air-config (This resolved the WindowApplication couldn't be found error, because it adds all the air libs i guess)
    but lead to the problem that the flex vector-class wasn't found. As Vector is flashplayer 10.0.0 i also
    used the target-player parameter (This fixed that nicely).
    But now i got the problem that i get lots of this error msgs: DepartmentItemRendererClass.as(11):
    Error: The private attribute may be used only on class property definitions.
    I guess the problem now is that ant doesn't understand that the AS-Classes producing that errors are not used as
    standalone-classes. To divide my mxml and AS-Code i import external AS-Classes to my MXML
    like that <mx:Script source="ascodeClass.as" />
    Is there a solution allowing me to use this pattern and still compile my asDoc with ant?
    It confuses me a little, because Ant-Scripts worked to compile the project.
    Thanks in advance!
    Florian
    My Ant-Script producing that error:
    <project name="Red bull BPT 2.0: Generate ASDoc" basedir=".">
        <description>
           Creates the ASDoc for Red Bull BPT 2.0
        </description>
        <property file="FlexbuilderASDocAntTask.properties" />
        <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
        <target name="cleanAndCreateASDoc"
                depends="cleanASDoc, compileASDoc"
                description="Cleans and creates Actionscript-Documentation"
                />
            <!-- Delete the existing output folder and files and then regenerate the output folder -->
                <target name="cleanASDoc">
                    <echo>Deleting ASDoc Directory...</echo>
                        <!--Delete the folder specified for the Asdoc.dir variable-->
                        <delete dir="${Asdoc.dir}" failOnError="false" includeEmptyDirs="true" />
                        <echo>Deleted ASDoc Directory</echo>
                        <echo>Creating ASDoc Directory...</echo>
                        <!--Creates the folder specified for the Asdoc.dir variable-->
                        <mkdir dir="${Asdoc.dir}" />
                    <echo>Created ASDoc Directory</echo>
                </target>
            <!-- Run the ASDoc executable and generate the ASDocs to the new output folder -->
                <target name="compileASDoc">
                    <echo>ASDoc Compiling...</echo>
                        <exec executable="${AsDocs.executable}" failonerror="true">
                        <!--THIS SEEMS TO SOLVE THE WINDOWEDAPPLICATION AND FOLLOWING VECTOR ERROR -->   
                            <arg line="-load-config ${FLEX_HOME}/frameworks/air-config.xml" />
                            <arg line="-target-player 10.0.0" />
                        <!--THIS SEEMS TO SOLVE THE WINDOWEDAPPLICATION AND FOLLOWING VECTOR ERROR -->
                        <!--Main title for the top of all ASDoc pages-->
                            <arg line="-main-title '${Main.title}'" />
                        <!--Prefix Title of the window-->
                            <arg line="-window-title '${Window.title}'" />
                        <!--Defines the output directory for the ASDoc-Files-->
                            <arg line="-output '${Asdoc.dir}'" />
                        <!--Footer added to each ASDoc page-->
                            <arg line="-footer '${Footer.text}'" />
                        <!--Adding the source folders the ASDoc should be created from (Start)-->
                            <arg line="-doc-sources '${ModuleBaseDir}/source'" />
                        <!--Adding the source folders the ASDoc should be created from (End)-->
                        <!--Adding the folders for external Libraries needed to compile the application(Start)-->
                            <arg line="-external-library-path '${ModuleBaseDir}/libs'" />
                        <!--Adding the folders for external Libraries needed to compile the application(End)-->
                        </exec>
                    <echo>ASDoc Compile Complete!</echo>
        </target>
    </project>

  • I uninstalled and reinstalled but at the end of installation there were erros.  See attached screen shot.  I now cannot open the application.  error code 10810 comes up when I try to open.

    I could not update photoshop CS6 and Jeff from forum advised unistalling and reinstalling (Tk93580659). Mac OSX. In real trouble, as suggested I uninstalled and reinstalled but at the end of installation there were errors.  See attached screen shot.  Now I cannot open the application.  Error code 10810 comes up when I try to open (see 2nd screenshot).  Please help.  I have now lost photoshop altogether whereas previous at least I still could use it but could not update.  Thank you for any help to instal successfully.  Dr Koh

    Still looking for a solution to specific installation errors (see screeshot) referring to "Language Pack installation failure":
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050: - Adobe Photoshop CS6 Core: Failed due to Language Pack installation failure
    ERROR: DW050: - Adobe Photoshop CS6 International English Language Pack_AdobePhotoshop13-en_GB: Install failed
    Unfortunately previous advice of using CCS cleaner tool, and suggestions from links for 1) "exit code 6 and 7" and 2) "Troubleshoot instal logs" did not work at all. So I am desparate to fix this because I have spent a lot of money purchasing Photoshop CS6 but have no functioning program. Surely Adobe can help solve this problem with installing, or else it means a lot of money spent on Photoshop CS6 for nothing. I am appealing directly to Adobe to help because I have come to the end of my options. I thank the forum for their suggestions but so far the solution for this specific "Language Pack installation failure" problem is missing. Thank you.
    Dr Koh

  • Cannot run the macro SOLVER.XLAM!MainEx error message

    Ive had this problem for awhile but am now needing to use solver for my schoolwork. 
    Anytime i try to use the solver function under the data tab this error message pops up. 
    I have tried taking off and readding the add-in under options. 
    when i try to access solver in the visual basic panel it asks for a password which i have never set
    Im running excel 2013 on windows 7
    I have tried many things and am exhausted. No solution has been posted to this problem on the site or anywhere on the web 
    THIS IS NOT WHEN IM TYPING MACRO CODE IN VBA. its just when i try to use solver for simple spreadsheet calculations. 
    when i click solver i get the error cannot run module: SolverCode
    when i try to access the solver code in vba a password is required 

    Hi,
    As far as I know,  the Solver add-in code has the password by design, it is protected on purpose and copyrighted. They are designed for use from the spreadsheet only. 
    Then, as the error message:" Cannot run the macro SOLVER.XLAM!MainEx error message." Please try to do the following methods to fix the issue:
    1. Open VBE (Alt+F11)>Click Tools> References>set to SOLVER>Show immediate code pane (Ctrl+G)>Copy/paste (or write): application.run "solver.xlam!auto_open"
    2. Disable the other Excel add-ins, such as
    Adobe PDFMaker.
    3. Repair Office 2013.
    Regards,
    George Zhao
    TechNet Community Support

  • Cannot Compile when using FileInputStream

    I am trying to read data from a file...
    I cannot compile this and I have tried importing all of the java.io.* classes and it still does not compile.
    Help!
    I have the following imports:
    import net.rim.device.api.ui.*;
    import net.rim.device.api.system.Application;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    import java.io.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.*;
    import JavaProjects.JDE42.EmergInfo.Resource.*;
    import net.rim.device.api.i18n.*;
    And the code snippet:
    private void ReadDataFile()
    try {
    FileInputStream fstream = new FileInputStream(_resources.getString(EmergInfoResResource.DWI_DATAFILE));
    DataInputStream in = new DataInputStream(fstream);
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    String strLine;
    //Read File Line By Line
    while ((strLine = br.readLine()) != null) {
    // Print the content on the console
    System.out.println (strLine);
    //Close the input stream
    in.close();
    }catch (Exception e){//Catch exception if any
    System.err.println("Error: " + e.getMessage());
    On compile, I get the following errors:
    Building EmergInfo_DWI
    C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin\rapc.exe -quiet codename=EmergInfo_DWI EmergInfo_DWI.rapc warnkey=0x52424200;0x52525400;0x52435200 import="C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" D:\JavaProjects\JDE42\EmergInfo\img\DWI_Main.jpg D:\JavaProjects\JDE42\EmergInfo\img\DWI_Main_bw.jpg D:\JavaProjects\JDE42\EmergInfo\Resource\EmergInfoRes.rrc D:\JavaProjects\JDE42\EmergInfo\Resource\EmergInfoRes.rrh D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main.java D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main_Screen.java
    D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main.java:68: cannot find symbol
    symbol : class FileInputStream
    location: class Source.DWI_Main
    FileInputStream fstream = new FileInputStream(_resources.getString(EmergInfoResResource.DWI_DATAFILE));
    ^
    D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main.java:68: cannot find symbol
    symbol : class FileInputStream
    location: class Source.DWI_Main
    FileInputStream fstream = new FileInputStream(_resources.getString(EmergInfoResResource.DWI_DATAFILE));
    ^
    D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main.java:72: cannot find symbol
    symbol : class BufferedReader
    location: class Source.DWI_Main
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    ^
    D:\JavaProjects\JDE42\EmergInfo\Source\DWI_Main.java:72: cannot find symbol
    symbol : class BufferedReader
    location: class Source.DWI_Main
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    ^
    4 errors

    What I have installed:
    Blackberry JDE 4.2.0
    Blackberry JDE 5.0.0
    Java DB 10.5.3.0
    Java SE Development Kit Update 22
    Java Platform, Enterprise Edition 5 SDK
    Seems I do not have the ME stuff installed...
    Edited by: 802969 on Oct 16, 2010 2:07 PM

  • 10.5.2: You cannot use the application "System preferences.app" with...

    Hello
    after (successfully) updating from 10.5.1 to 10.5.2, the System Preferences.app cannot be started. Either the application does not start (a silent error) or there is a message "You cannot use the application "System preferences.app" with this version of MacOS X." The version is 10.5.2, according to "About this Mac", while the application version is 3.5. The same happens when I attempt to open "Time machine preferences" using the new menu/icon on the bar.
    Any help is appreciated.
    Thanks in advance,
    Marinho.

    Thanks, I did that, but it didn't solve the problem.
    By the way, the application version (of System preferences.app) remained the same (old one). Then I removed the application to Trash (meaning to restore it later if required) and applied the update again (and a third time), but then a new System preferences.app was not installed and the older one has disappeared from the trash! What a mess this update turns out to be...
    Marinho.

  • You cannot use the application "System Preferences" with this version OS X

    You cannot use the application “System Preferences” with this version of Mac OS X.
    I received this error message when trying to run System Preferences (SP) for the first time after running the 10.5.1 update (from the download, not software update). After the update, I repaired permissions. Did another restart. Same.
    I reinstalled 10.5.1 update. Same message. Logged in as another user. No change.
    I removed the com.apple.systempreferences.plist from ~/library/preferences. No change, and it did not re-create the .plist file.
    Any ideas? No one else seems to be having this problem as far as I can tell.
    dkrockville

    I have had this problem with many applications after updating to 10.5.1, including
    System Preferences, Calculator, Preview. Tried repairing permissions, and other tips from this thread. The strange thing is, the actual Leopard applications seem to have actually vanished? I don't know if this is anything to do with Time Machine; Anyway, My fix was:
    Download Pacifist (if you don't already have it), locate the apps that you're having problems with on the Leopard install DVD, and copy them to the Applications Folder (Click on 'Replace Bundle')
    Problem Solved for Me!
    Hope this Helps!

  • Compiling Java Application

    Hello!
    I am trying to compile an application.I have already looked through the posts but could not find anything relevant.Here's the error that I am getting:
    cannot access Settings bad class file: .\Settings.class class file has wrong version 49.0,should be 48 PLease remove or make sure it appears in the correct subdirectory of the classpath
    Settings timeSettings = new Settings();
    ^
    1 error
    Thanks in advace for any help

    http://forum.java.sun.com/thread.jspa?threadID=517933

Maybe you are looking for

  • Lost index indentation

    I converted WinHelp to HTMLHelp in RH8.  I lost all of the indentation of my index.  Is there an automated way to fix?

  • Converting error message to warning in ME22n

    Hello guys, In ME22n i am not able to delete one material line item,as its displays" Invoices pending for delivery costs (function not possible)", This is error message,if its possible to convert error message to warning then i wil be able to delete,

  • Standard upgrade from CUCM 9.1(1a) to 9.1(2)

    I am upgrading from 9.1(1a) to 9.1(2) and as I was reading the upgrade guide it states "You cannot install upgrade software on your node while the system continues to operate".  I have always been able to stage standard upgrades on the inactive parti

  • How to configure APO in ECC 6.0..

    Hi Experts, Please anyone explain me how to configure APO with ECC 6.0. what are all the prereqistic needed to activate  APO in ECC 6.0. thanks in advance. Regards Pradeep

  • BI 7.0 Business Content for EH&S

    Hello, I've only found "healthcare" business content but it's more related to hospital management. Does anybody know if there are bi 7.0 business content for Labor Health in companies which aren´t hospitals or health centers. Thank you very much Best