Problem in compiling source (JDIC)

I've added a jdic.jar library to my project, when I want to register a new extension, it throws an exception...
  System.out.println("1.");
            AssociationService service = new AssociationService();
            System.out.println("2.");
            Association association = new Association();
            System.out.println("3.");
            association.addFileExtension("flem");
            System.out.println("4.");
            //association.setIconFileName(Main.class.getResource("icon/Untitled.png").toString());
            System.out.println("5.");
            association.addAction(new Action("open", "C:\\WINDOWS\\system32\\NOTEPAD.EXE"));
            System.out.println("6.");
            try {
                System.out.println("7.");
                service.registerUserAssociation(association);
                System.out.println("8.");
            } catch (AssociationAlreadyRegisteredException ex) {
                System.out.println("9.");
                System.err.println("Asociation already registred!");
                System.out.println("10.");
            } catch (RegisterFailedException ex) {
                System.out.println("11.");
                System.err.println("Register failed!");
                System.out.println("12.");
and the output is:
1.
2.
3.
4.
5.
6.
7.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jdic in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at org.jdesktop.jdic.filetypes.internal.WinRegistryWrapper.<clinit>(Unknown Source)
        at org.jdesktop.jdic.filetypes.internal.WinRegistryUtil.isSubKeyExist(Unknown Source)
        at org.jdesktop.jdic.filetypes.internal.WinRegistryUtil.isFileExtExist(Unknown Source)
        at org.jdesktop.jdic.filetypes.internal.WinAppAssociationWriter.isAssociationExist(Unknown Source)
        at org.jdesktop.jdic.filetypes.AssociationService.registerUserAssociation(Unknown Source)
        at javaapplication2.Main.main(Main.java:36)
Java Result: 1
when I change the 0.9.1 ver. for 0.9.5 ver. the output is:
1.
java.lang.ClassNotFoundException: org.jdesktop.jdic.filetypes.internal.AppAssociationReaderFactory_windows
2.
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
3.
4.
5.
        at java.security.AccessController.doPrivileged(Native Method)
6.
7.
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at org.jdesktop.jdic.filetypes.AssociationService.<init>(Unknown Source)
        at javaapplication2.Main.main(Main.java:23)
Exception in thread "main" java.lang.NullPointerException
        at org.jdesktop.jdic.filetypes.AssociationService.registerUserAssociation(Unknown Source)
        at javaapplication2.Main.main(Main.java:36)
Java Result: 1

Hi,
I had the same problems with the samples. But I got different message. but, instead of typing "ant build", I entered only "ant" on the prompt and I was able to built it.
So, in the comamnd prompt goto your example directory and enter only ant .
The ant will read the build.xml file and you should be able to get it.
bye

Similar Messages

  • Problem with compilation of HelloWorld.java

    hi,
    getting problem with compilation of HelloWorld.java
    CLASSPATH--- C:\java
    PATH--- C:\j2sdk1.4.2_04\bin
    HelloWorld.java source code in: C:\java
    On cmd prompt:
    C:\java>javac HelloWorld.java
    error: cannot read: HelloWorld.java
    1 error
    pls help me with this
    rgds,
    sanlearns

    What does this command yield?
    dir HelloWorld.java

  • Can't use SecKeyRef and similar functions, when "Compile sources as" is set to "Objective c  "

    Hi, need to access SecKeyRef funcion and some other similar ones, but i can't access them, when my compiler option "Compile sources as" is set to "Objective c++". When it is set to "According to a file type", i dont get any errors with those funcions, but my old code starts to get errors. What should i do? I have tryed everything and still no luck...
    I'm using xcode 4,6 and app is for iOS6.

    I got my problem fixed. I was getting errors, with some failas that were importing <cmath><limits> etc. I renamed their extensions to .mm and set compile sources as to "According to a file type".
    Now wait a second. So if my apps target is iOS6.1 , apple will no longer accept my app? I didn't heard nothing about it...

  • Basic Questions About Compiling Source

    Hi!
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    Maybe it's that 'setup.py' file? What are you supposed to do?
    Of course, it's not only this one that's given me trouble. Sometimes the readme will say I have to edit a certain file for my system. Are there just a few standard changes you always make? Or is it...how can I put it...complicated? How do you find out what's needed in those cases?
    OS 10.6.8
    Xcode 3.2.4
    Python 2.7

    sudont wrote:
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    This is the place for UNIX discussions. If you have developer-related questions, there is a forum dedicated to that as well: Developer Forums
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    Yes. Hopefully the project you want to install follows standard conventions. If so, you can do "./configure", then "make", and finally "sudo make install" to install the software into "/usr/local".
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    The make file will figure that stuff out.
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    Yes, with the addition of "sudo" before "make install" because "/usr/local" is owned by root.
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    arm? You mean "arm (anonymizing relay monitor) - Terminal status monitor for Tor relays." You really don't want to be messing with that stuff. The only people involved with Tor that are trustworthy are US Navy intelligence who have their own uses for it. If you don't understand it as well as they do, best stay away.

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

  • Problem in compiling j2me file

    Hello friends,
    friends my problem in compiling j2me file..
    when i compile my j2me file through WTK2.2 (toolkit)
    then it creates extra file including j2me" .class" file..
    for example if my j2me file is "aman.java" and when i compile it
    then it will covert into "aman.class" file but it creates one more file like "aman1$.class" ..plz help me to get out of this problem..coz its increase my j2me file size..
    thanks
    Aman

    That is an inner class in aman.java that you are seeing there.
    If you use inner anonymous classes, for example;
    public class MyMIDlet extends MIDlet {
       // code for the MIDlet
       // Anonymous inner class
       setCommandListener(new CommandListener() {
          public void commandAction(Command c, Displayable d) {
            // implementation;
            // may access MyMIDlet's private fields
    }then the command listener you create will become another class named MyMIDlet$1.class.
    In this example you can get rid of the inner class by making one of the existing classes implement that CommandListener interface:
    public class MyMIDlet extends MIDlet implmements CommandListener {
       public void commandAction(Command c, Displayable d) {
         // implementation;
         // may access MyMIDlet's private fields
       // code for the MIDlet
       // Instead of the anonymous inner class, we can now use MyMIDlet since it
       // implements CommandListener
       setCommandListener(this);
       // etc. etc. etc.
    }shmoove

  • Problem in compiling with ant?

    Hi,
    I have problem with compiling using ant ..i have build file...and properly place directories.......
    C:/>ant build
    It's giving an error as "Exception in thread "main" java.lang.NoClassDefFoundError: build"
    can any one help me to solve this problem

    Cross-Post:
    http://forum.java.sun.com/thread.jspa?threadID=589924&tstart=0

  • Ant question: difference btwn source-path/compiler-source-path/include-libraries

    I have a few questions about build.xml include/lib directories (questions in xml file)
    <mxmlc>
    <source-path="../frameworks"/>
    <compiler.source-path path-element="path to include actionscript include similar to c include"/>
    <compiler.include-libraries dir="${basedir}">
        <include name="I have no idea what this is. Does flex generate binaries similar to how c compilers generate .so or .dll?"/>
    </compiler.include-libraries>
    </mxmlc>
    1. What's the difference between source-path and compiler.source-path
    2. So what exactly is a compiler.include-libraries?  Just curious what produces a library.
    I've had success accessing actions script files that reside in other directories using compiler.source-path but not source-path.  Any help appreciated
    Regards,
    Monty

    I have a few questions about build.xml include/lib directories (questions in xml file)
    <mxmlc>
    <source-path="../frameworks"/>
    <compiler.source-path path-element="path to include actionscript include similar to c include"/>
    <compiler.include-libraries dir="${basedir}">
        <include name="I have no idea what this is. Does flex generate binaries similar to how c compilers generate .so or .dll?"/>
    </compiler.include-libraries>
    </mxmlc>
    1. What's the difference between source-path and compiler.source-path
    2. So what exactly is a compiler.include-libraries?  Just curious what produces a library.
    I've had success accessing actions script files that reside in other directories using compiler.source-path but not source-path.  Any help appreciated
    Regards,
    Monty

  • Problems to compile a servlet

    Hi, i have a problem to compile a servlet, i will try to explain my problem easily...
    i have a JavaBena class int he directory.....C:\Programmi\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\classes......and i have compiled it by DOS commands, everyhting has gone well!
    i have a Servlet class in the same directory where it situated the JavaBean. i compile the Servlet as well as i have done with the Javabean, by DOS commans, including the Tomcat servlet api.
    this is the command which i use to compile the servlet.......javac ServletRegistraUtente.java -classpath "C:\Programmi\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar".....
    but everything i get this error...
    C:\Programmi\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\classes>javac ServletRicercaUtente
    .java -classpath "C:\Programmi\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
    ServletRicercaUtente.java:20: cannot find symbol
    symbol : class BeanRicercaUtente
    location: class ServletRicercaUtente
    ^
    ServletRicercaUtente.java:20: cannot find symbol
    symbol : class BeanRicercaUtente
    location: class ServletRicercaUtente
    BeanRicercaUtente m_BeanRicercaUtente = new BeanRicercaUtente();
    ^
    2 errors
    C:\Programmi\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\classes>
    these are the 2 classes....
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import JavaBean.BeanRicercaUtente;
    public class ServletRicercaUtente extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
              ServletContext sc;
              RequestDispatcher rd;
              try
                   BeanRicercaUtente m_BeanRicercaUtente = new BeanRicercaUtente();
                   request.setAttribute("m_BeanRicercaUtente", m_BeanRicercaUtente);
                   String codiceFiscale = request.getParameter("codice");
                   m_BeanRicercaUtente.effettuaRicerca(codiceFiscale);
                   sc = getServletContext();
                   rd = sc.getRequestDispatcher("/risposta.jsp");
                   rd.forward(request, response);
              catch(Throwable theException){}
    import java.sql.*;
    public class BeanRicercaUtente
         String nome, cognome, indirizzo, telefono;
         public void effettuaRicerca(String codiceFiscale)
              try
                   Class.forName("com.mysql.jdbc.Driver");
                   String url = "jdbc:mysql://.................";
                   Connection con = DriverManager.getConnection(url);
                   Statement cmd = con.createStatement();
                   String qry = "SELECT ..................";
                   ResultSet res = cmd.executeQuery(qry);
                   while (res.next())
                        cognome = res.getString(1);
                        nome = res.getString(2);
                        indirizzo = res.getString(3);
                        telefono = res.getString(4);
                   res.close();
                   cmd.close();
                   con.close();
              catch (SQLException e)
                   e.printStackTrace();
              catch (ClassNotFoundException e)
                   e.printStackTrace();
    i would be glad to get help about it...! :) thanks!

    i am sorry, but in the first class i have not written "import JavaBean.BeanRicercaUtente;"
    i have only these imports...
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;

  • Silly problem when compiling main class

    hi there,
    i have a problem when compiling the main class.
    the classes used by the main class are not recognized. the compiler can't locate the children classes.
    i've already set the path and classpath environment variables, but there's still something missing.
    how should i organize my folders in order to be able to compile the main class successfully, please?
    thanks.

    It would be good to have a precise problem description: the actual command used, folder structure and environment variable settings. Even if you have to construct a simple test case with a couple of classes that illustrates the problem.
    In the absence of that some generic remarks:
    The PATH variable typically points at all the folders that contain executable files that you use often. You can always access other executable files by specifying there full names.
    The CLASSPATH variable is typically left unset.
    When you use the java tools (like the javac compiler or the java runtime) you can specify the classpath that you want to use with -cp. This will override any CLASSPATH value. So in the simple case of two classes (Main and MyClass), you can put them in anywhere you like (for example C:\MyJavaStuff) and compile and run with:
    {noformat}
    C:\MyJavaStuff> javac -cp . *.java
    C:\MyJavaStuff> java -cp . Main
    {noformat}(Mind the dot after -cp))
    By a "main" class I guess you mean a class with a static void main(String args[]) method, but I am suspicious of your "child" classes. Perhaps packages are involved. A precise description of the problem would help.

  • Problems placing compiled jsp in the right directory

    I have problems placing compiled jsp in the right directory.
              - My document root is weblogic/myserver/public_html
              - My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              - My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              - When weblogic compiles my jsp it places them in
              weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              Now I want to compile ram1.jsp and place it in above directory. I tried the
              following but it does not place class correct.
              1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              **** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              2: java weblogic.jspc -d
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              ass
              What am I doing wrong ?
              cheers Per
              

              I would try this...
              cd public_html
              java weblogic.jspc -prefix compiled_jsp ram/jsp/ram1.jsp
              I'm not sure if -prefix is the exact option - something like that - maybe package_prefix.
              As always, things work better/easier when you leave things at the default value
              (jsp_servlet).
              Mike
              "Per Lovdinger" <[email protected]> wrote:
              >I have problems placing compiled jsp in the right directory.
              >
              >- My document root is weblogic/myserver/public_html
              >- My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              >- My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              >
              >- When weblogic compiles my jsp it places them in
              >weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              >
              >Now I want to compile ram1.jsp and place it in above directory. I tried
              >the
              >following but it does not place class correct.
              >
              >1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              >**** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              >
              >2: java weblogic.jspc -d
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              >****
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              >ass
              >
              >What am I doing wrong ?
              >
              >cheers Per
              >
              >
              

  • Difference between compiler.source-path path-element="" / & source-path path-element="" /

    Hi guys,
    I am not able to understand few differences when i am trying to compile my flex project using ANT. In the adobe resource i can see lots of places they mention as "compiler.source-path path-element="" "
    And lots of places i use as <source-path path-element="" />. Can anybody give a better explaination about this.
    The below example you can see there are lot of places where they used the attribute as compiler. & some places direct name
    <?xml version="1.0" encoding="utf-8"?>
    <!-- myMXMLCBuild.xml -->
    <project name="My App Builder" basedir=".">
        <taskdef resource="flexTasks.tasks" classpath="${basedir}/flexTasks/lib/flexTasks.jar" />
        <property name="FLEX_HOME" value="C:/flex/sdk"/>
        <property name="APP_ROOT" value="apps"/>
        <property name="DEPLOY_DIR" value="c:/jrun4/servers/default/default-war"/>
        <target name="main">
            <mxmlc
                file="${APP_ROOT}/Main.mxml"
                output="${DEPLOY_DIR}/Main.swf"
                actionscript-file-encoding="UTF-8"
                keep-generated-actionscript="true"
                incremental="true"
            >
                <!-- Get default compiler options. -->
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                <!-- List of path elements that form the roots of ActionScript
                class hierarchies. -->
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <!-- List of SWC files or directories that contain SWC files. -->
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="../bundles/{locale}" />
                </compiler.library-path>
                <!-- Set size of output SWF file. -->
                <default-size width="500" height="600" />
            </mxmlc>
        </target>
        <target name="clean">
            <delete dir="${APP_ROOT}/generated"/>
            <delete>
                <fileset dir="${DEPLOY_DIR}" includes="Main.swf"/>
            </delete>
        </target>
    </project>

    I know that Oracle has been putting work into improving the performance of XMLTable and XQuery and that is their direction for what we as developers should be using in our code. I've yet to write any production code like your query 2 but I agree with you that they should be equivalent. For a quick and dirty test, you could simply do an explain plan on both queries and see if they come out similar. As always, an explain plan does not mean that is exactly what Oracle will run during execution, but it is close enough for most situations.

  • ATI Radeon drivers problems (both open-source and proprietary)

    Hi 2 All!!
    I have a problem with my ATI Radeon 9000-series. The open source drivers (xf86-video-ati) don't work very good for me, my monitor's fresh rate isn't "at-top" and the monitor projection is slightly translated to the right (say 8-12 pixels). So I've tried to build the official drivers with ABS, all is gone successfully, except for some worrying warnings, but I thought that it's normal. I have a customized kernel, build through ABS... So, when I've tried to load the fglrx module it says:
    # modprobe fglrx
    FATAL: Error inserting fglrx (/lib/modules/2.6.27-ARCH/video/fglrx.ko): Cannot allocate memory
    Please, help me! My machine is slow, I can't run any OpenGL-accelerated application, even Quake III!!! If you can suggest me how to improve the performance and how to resolve problems with open-source drivers, it also would be very good... Thank you and sorry for my poor English please.

    I had some problems with installing ATI drivers recently (could not build fglrx module, not even manually, I had to change some installation script), but with latest driver version (8.11 I think) from ati.amd.com was everything fine (I have Radeon 9600 Pro)
    Try to do this (and write here the output)
    glxinfo | grep vendor
    fglrxinfo
    In both cases, it should write something like OpenGL...: ATI... if there will be MESA or DRI, that means that you don't have loaded your fglrx module.
    If fglrxinfo output will be something like: no permission for...(should be first or second line of the output), then write this somewhere in your xorg.conf:
       Section "DRI"
           Mode 0666
       EndSection
    run:
    modprobe -a fglrx - and give here the output. If there will be none, run:
    lsmod | grep fglrx - to see wheter fglrx module is really loaded in kernel
    if you will have no module, you can install one, type:
    cd /lib/modules/fglrx/build_mod
    sh make.sh
    cd ../
    sh make_install.sh (as root)
    and post any warning or error here at forum, drivers (but not fglrx module) are installed at /usr/share/ati
    After installing drivers, you also need to configure your system (notice your system that it's there), commands:
    aticonfig --initial (for editing your xorg.conf)
    aticonfig --overlay-type=Xv (acceleration support in xorg.conf)
    Showing your xorg.conf file here is also good idea, here is mine (sections Device and Screen):
    Section "Device"
        #VideoRam    262144
        # Insert Clocks lines here if appropriate
        Identifier  "** ATI Radeon (generic)               [radeon]"
        Driver      "radeon"
    EndSection
    Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        Option        "VideoOverlay" "on"
        Option        "OpenGLOverlay" "off"
        BusID       "PCI:1:0:0"
    EndSection
    Section "Screen"
        Identifier "Screen 1"
        Device     "** ATI Radeon (generic)               [radeon]"
        Monitor    "My Monitor"
        DefaultDepth     24
        SubSection "Display"
            Viewport   0 0
            Depth     8
            Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
            Viewport   0 0
            Depth     16
            Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
            Viewport   0 0
            Depth     24
            Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
    EndSection
    Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
            Viewport   0 0
            Depth     24
        EndSubSection
    EndSection

  • Problem compiling source file in package

    Hi, I have 5 source files which I have just packaged together and put in the same sub-directory, the problem is that when I try to compile the file with the main method I get the error message:"cannot read" then the name of the source file. I am compiling from the command line and setting the classpath as I compile with the statement:
    c:\j2sdk1.4.1\bin>javac -classpath c:\directory\package directory source file.java
    I'm not sure what I am doing wrong and the source files all compiled fine before I added the package statement to the files. Please any help would really be appreciated.

    It sounds like the java file your are trying to compile is not in the directory you are compiling from.
    Is this basically what you are doing?:
    Say the package name is mypackage.
    Assume we are O.K. with keeping source and class files together.
    Create a directory named 'mypackage' somewhere...C:\mypackage\.
    Put all the .java files in it (these .java files indicate that they are a member of the 'mypackage' package).
    At a command prompt, cd to the directory containing the 'mypackage' directory...'cd C:\'
    Compile the source files: C:\j2sdk1.4.1\bin\javac mypackage\*.java
    run the main class: C:\j2sdk1.4.1\bin\java mypackage.TheMainClass
    Basically, this says keep the files where you want them and point to javac, instead of moving everything under java/bin. btw it will save a lot of typing if you add java/bin to your PATH.
    Hope this helps.

  • Problem while compiling the Device Driver source code onSolaris 8 intel pla

    Hello!
    We are writing Device Driver for PCI (PMC) based HS serial
    communication card on Solaris 8(intel edition).The Processor
    used is Celeron/Pentium III.
    We are facing following problems.
    1) Kindly let us know the cc compiler options for xarch=isa.
    2) Presently we have included following header files.
         #include <sys/ddi.h>
         #include <sys/sunddi.h>
    3)We tried to compile our driver soure file (pmc.c) using
    FORTE DEVELOPER 6 UPDATE 1 with the following command.
         # cc -Xa -D_KERNEL -c pmc.c
    4) The compiler is not able to reach to our source code. It prematurely fails
    while compiling the system header files
    5) The errors were reported during Preprocessor
    compilation in /SYS/*.h header files.
    cc: Warning: using -Xa, ignoring all other -X options
    "/usr/include/iso/limits_iso.h", line 54: warning: macro redefined: SHRT_MIN
    "/usr/include/iso/limits_iso.h", line 56: warning: macro redefined: USHRT_MAX
    "/usr/include/iso/limits_iso.h", line 59: warning: macro redefined: UINT_MAX
    "/usr/include/sys/vnode.h", line 486: syntax error before or at: rlim64_t
    "/usr/include/sys/vnode.h", line 486: warning: undefined or missing type for: rlim64_t
    "/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: cred_t
    "/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: ssize_t
    "/usr/include/vm/page.h", line 468: undefined or not a type: pgcnt_t
    6)Kindly let us know :-
    a) if any Environment variables to be set.
    b) What all the system include headre files are required & in what sequence if any.
    Expecting a early reply .
    Can anybody help us.
    Thanking you for your kind co-operation.
    A.P.SINGH
    INDIA               

    Try to use cc comiler from /opt/SUNWspro/bin/ like
    /opt/SUNWspro/bin/cc -Xa -D_KERNEL -c pmc.c

Maybe you are looking for

  • Purchase info record report

    Hi Friends, I need to develop a report for purchase inforecord with vendor, material, conditions and scales information. i need to join EINA , EINE, KONP and KONM tables. please suggest me how to link EINA, EINE tables with KONP, KONM tables. Thanks

  • Using Preview to enter keywords in a PDF shows quotation marks

    When I enter keywords in a PDF with Preview and later open the same file with Acrobat and look at the properties, the string of keywords are within quotation marks. If I enter the keywords while in Acrobat there are no quotation marks. If the keyword

  • Spry menu fails in IE

    My sprymenu works fine in Firefox and google chrome, but in IE the submenu shows at the wrong position. It's not even close to it's possition as it should be. I have no clue or whatsoever on this matter so the only thing that would help me is if some

  • Why are graphics garbled in PowerPoint?

    I have a MBP retina, and ever since I've owned it, I've noticed an issue with the Presenter View in PowerPoint 2011.  Some of my graphics get garbled. This is specific to the Presenter view - with a 2nd monitor or projector hooked up, there is no iss

  • Foriegn Currency setup using the RIC code

    Hi Gurus,          How to configure the foreign currency set up using the Reportable item code(RIC).We need to configure the D rate.and update the daily exchange rate through Reuters using the excel sheet.What is configuration required in sap Regards