Gcc not compile hello world in c?

hi
i wrote a hello world example in c language and  i want compile its.object file is created but not created executed file.please write me what command i need and a little hello world in c to test.
thanks

A good way to do this is build a simple makefile containing just the following 2 lines:
CC=gcc
CFLAGS:=-ggdb -std=c99
The second line is optional and you may have other preferences.  The -ggdb option adds debugging information for the GNU debugger, gdb; and the -std=c99 allows a program that is compliant with the C99 standard to be compiled.  Name this file 'Makefile' and place it in the same directory as your source code file (i.e. hello.c). Then just type
$ make hello

Similar Messages

  • Gcc won't compile hello world

    Hello World :
    #include<iostream>
    using namespace std;
    int main ()
    cout << "what am I doing wrong?";
    return 0;
    All the strace sh!t
    execve("/usr/bin/gcc", ["gcc", "hello.cpp"], [/* 43 vars */]) = 0
    uname({sys="Linux", node="stryder", ...}) = 0
    brk(0) = 0x805d000
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f59000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=65638, ...}) = 0
    mmap2(NULL, 65638, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f48000
    close(3) = 0
    open("/lib/tls/libc.so.6", O_RDONLY) = 3
    read(3, "177ELF111331220R1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1363203, ...}) = 0
    mmap2(NULL, 1150540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2f000
    mmap2(0xb7f3e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10f) = 0xb7f3e000
    mmap2(0xb7f46000, 7756, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f46000
    close(3) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e2e000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e2e6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    munmap(0xb7f48000, 65638) = 0
    brk(0) = 0x805d000
    open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=38399616, ...}) = 0
    mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c2e000
    close(3) = 0
    brk(0x807e000) = 0x807e000
    rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
    rt_sigaction(SIGINT, {0x804ade0, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0
    rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0
    rt_sigaction(SIGHUP, {0x804ade0, [HUP], SA_RESTART}, {SIG_IGN}, 8) = 0
    rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
    rt_sigaction(SIGTERM, {0x804ade0, [TERM], SA_RESTART}, {SIG_IGN}, 8) = 0
    rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
    rt_sigaction(SIGPIPE, {0x804ade0, [PIPE], SA_RESTART}, {SIG_IGN}, 8) = 0
    rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
    access("/bin/gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/gcc", X_OK) = 0
    lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
    lstat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=85296, ...}) = 0
    access("/bin/gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/gcc", X_OK) = 0
    lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
    lstat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=85296, ...}) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
    access("hello.cpp", F_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", R_OK) = 0
    open("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", O_RDONLY) = 3
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", {st_mode=S_IFREG|0644, st_size=3869, ...}) = 0
    read(3, "*asm:n%{v:-V} %{Qy:} %{!Qn:-Qy} "..., 3869) = 3869
    close(3) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
    access("/tmp", R_OK|W_OK|X_OK) = 0
    gettimeofday({1121809872, 830804}, NULL) = 0
    getpid()
    open("/tmp/ccTAp7N8.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
    close(3) = 0
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus", {st_mode=S_IFREG|0755, st_size=9274676, ...}) = 0
    access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus", X_OK) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7198
    waitpid(7198, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7198
    --- SIGCHLD (Child exited) @ 0 (0) ---
    gettimeofday({1121809873, 223825}, NULL) = 0
    open("/tmp/ccLSz9Bn.o", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
    close(3) = 0
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7199
    --- SIGCHLD (Child exited) @ 0 (0) ---
    waitpid(7199, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7199
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", {st_mode=S_IFREG|0755, st_size=127724, ...}) = 0
    access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", X_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crt1.o", R_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crti.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o", R_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbegin.o", R_OK) = 0
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b33c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/.", 0xbfc6b35c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/.", 0xbfc6b35c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../.", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
    stat64("/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b38c) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b37c) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtend.o", R_OK) = 0
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o", R_OK) = 0
    stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", {st_mode=S_IFREG|0755, st_size=127724, ...}) = 0
    access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", X_OK) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7200
    waitpid(7200, /tmp/ccLSz9Bn.o(.text+0xd): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
    /tmp/ccLSz9Bn.o(.text+0x60): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccLSz9Bn.o(.text+0x9f): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccLSz9Bn.o(.text+0xce): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
    /tmp/ccLSz9Bn.o(.text+0x127): In function `main':
    : undefined reference to `std::cout'
    /tmp/ccLSz9Bn.o(.text+0x12c): In function `main':
    : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
    /tmp/ccLSz9Bn.o(.text+0x155): In function `__static_initialization_and_destruction_0(int, int)':
    : undefined reference to `std::ios_base::Init::Init()'
    /tmp/ccLSz9Bn.o(.text+0x186): In function `__tcf_0':
    : undefined reference to `std::ios_base::Init::~Init()'
    /tmp/ccLSz9Bn.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
    collect2: ld returned 1 exit status
    [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 7200
    --- SIGCHLD (Child exited) @ 0 (0) ---
    stat64("/tmp/ccLSz9Bn.o", {st_mode=S_IFREG|0600, st_size=2468, ...}) = 0
    unlink("/tmp/ccLSz9Bn.o") = 0
    stat64("/tmp/ccTAp7N8.s", {st_mode=S_IFREG|0600, st_size=6022, ...}) = 0
    unlink("/tmp/ccTAp7N8.s") = 0
    exit_group(1)
    Any help would be appreciated immensly.

    well, the compiler output would have been much more useful than an strace.  The gnu compilers are used by millions of people - I'm pretty sure someone would have noticed if it didn't compile c++ programs.  Following that logic, it's most likely a program error.
    Also, like biio said, use g++ for c++ apps, instead of gcc - that'll probably fix your issue because it compiles fine here:
    g++ hello.cpp -o hello

  • Cross compile "Hello World" C++

    Hi, I have been trying to search on the internet for how to cross complie a simple "Hello World" program on a linux box so that you can exeute it later on an windows computer... If anyone knows about this please let me know!
    And I looking for how to do it from the commandline....
    Best Regards, Robert

    Hi.
    You should download mingw32 from community.
    I have successfully cross compiling my qt application using this package and mingw32-qt from AUR.
    For example of compiling a main application. Please refer to below URL.
    http://www.gentoo-wiki.info/HOWTO_MinGW
    I haven't try compiling the Winmain routine. But it is similar in Arch and you should use i486-mingw32-gcc to compile.

  • Exception when compiling hello world

    Here's my code.
    public class h
         public static void main(String[] args)
              System.out.println("hello");
    }The code compiles correctly with no errors. When I run it im getting the following error:
    Exception in thread "main" java.lang.noClassDefFoundError : h
    Has anyone got any idea why i could be getting this error, thanks.

    The -d option was not recognised.
    I already use netbeans but I didn't bother for such a small program.
    I got it to work anyway. I just had to add the current working dir to the classpath like SET CLASSPATH=%CLASSPATH%;.

  • Error while compiling hello world cpp file in ubuntu lucid

    Hi all,
    I am trying to compile the helloworld.cpp file in ubuntu lucid using the following command:
    $ CC -compat=g -o helloworld helloworld.cpp
    "/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++locale.h", line 86: Error: Formal argument 1 of type __va_list_element* in call to va_start(__va_list_element*, ...) is being passed struct*.
    "/usr/include/c++/4.4/ext/atomicity.h", line 46: Error: The function "__sync_fetch_and_add" must have a prototype.
    "/usr/include/c++/4.4/ext/atomicity.h", line 50: Error: The function "__sync_fetch_and_add" must have a prototype.
    3 Error(s) detected.
    Any hints in fixing these errors?
    Thanks,
    karthik
    Edited by: 856954 on May 5, 2011 10:55 PM
    Edited by: 856954 on May 5, 2011 10:58 PM
    Edited by: 856954 on May 5, 2011 10:59 PM
    Edited by: 856954 on May 5, 2011 11:00 PM

    Ubuntu is not a supported platform. The compiler mostly works, but there are a number of extra issues. Some options like -compat=g are nowhere near usable, even if you use the same version of libstdc++ that is present on the supported platforms.

  • Xcode 4 not deleting Hello World project fully

    Hi,
    I'm very new to Xcode and have been having a go at creating my first app. However I made quite a few mistakes and though it would be easier to delete the project and start fresh. I did this by going into Finder and trashing the folder. When I go back to Xcode and create a new project with the same name my old errors are still in the code, even after the original file has been trashed and the trash emptied.
    So my question is how to I fully delete a project so I can start another one with the same name?
    I really appreciate the help, I can't find answers anywhere for this one.
    Thanks.

    Ok I found the files in the Repository. All deleted, not back to developing!

  • Hello World CANNOT FIND SPECIFIED INSTANCE

    I started with the BPEL PM Training http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Training-Segment01.pdf.
    1. The screens are not the same as in JDeveloper 10.1.3.2.0.4066...
    2. I was able to compile hello world
    3. when i went to bpel console the hello world was not there so i used the deploy button and did the deploy it manually
    4. I was able to see the process
    5. However, when I ran it and went to audit instance, i get the error message "cannot find the specified instance"
    6. the solution said 'if the instance has recently been initiated, the invocation data may not have been delivered to the engine yet. Refresh your browser window and try again in a few seconds"
    7. I tried both several times and get the same error message
    Anyone know how to fix this?
    I am running DHCP with the loopback adapter - is that a problem?
    Much appreciated.

    Fi,
    See the below link will helful to you,
    Informatica Start Workflow failed in Workflow Manager
    Note: FYI this is not right area to get answers for your questions related to ETL.
    Thanks,
    Balaa...

  • Hello world tutorial

    is there any simple tutorials for starting j2 me like the classic helloworld.
    ones that explain the code that is. ive looked at 2 for getting started on this site but they dont really explain the code, more about getting the examples build and running.

    package greeting;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener
    private Display display ;
    private TextBox textBox ;
    private Command quitCommand;
    public void startApp()
    display = Display.getDisplay(this);
    quitCommand = new Command("Quit", Command.SCREEN, 1);
    textBox = new TextBox("Hello World", "My first MIDlet", 40, 0);
    textBox .addCommand(quitCommand);
    textBox .setCommandListener(this);
    display .setCurrent(textBox );
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction(Command choice, Displayable displayable)
    if (choice == quitCommand)
    destroyApp(false);
    notifyDestroyed();
    Compiling Hello World
    javac -d d:\j2me\tmp_classes -target 1.1 -bootclasspath
    d:\j2me\midp1.0.3fcs\classes HelloWorld.java
    Running Hello World
    midp -classpath d:\j2me\classes greeting.HelloWorld
    I have a very good documentation about this, if you want them.... just let me know.

  • IPhone SDK 3.1: Problem compiling first Hello World App

    Hi,
    I am new to XCode, Mac OS and iPhone Development.
    I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
    the hello world program through xCode as while opting for Build and Run, the simulator it was giving me an error saying that it cannot find the right SDK.
    I had assumed that the old SDK is not compatible with the new Mac OS 10.6 (Snow Leopard). I had then uninstalled the old
    iPhone SDK using Terminal tool, using the command line given in the xCode uninstall guide.
    Installed the latest iPhone SDK (version 3.1), and then tried to compile the hello world app through xCode. Now I am getting the following error:
    *error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory*)
    I had located the above mentioned directory and could not find the file: "gcc-4.2" as mentioned in the error. Instead
    executable files like "i686-apple-darwin10-gcc-4.2.1" are present there.
    My Project Settings are:
    Project Format - xcode 3.2 -compatible
    Base SDK - iPhone Simulator 3.1
    Compiler Version - System Default (GCC 4.2)
    I am totally confused here, as I don't know how to correctly set up the ENV, as I thought the iPhone installer SDK does that automatically.
    Please help me out.
    Thanks in advance for your time,
    JC.
    Error Messages:
    Build helloworldxc of project helloworldxc with configuration Debug
    ProcessPCH /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch helloworldxc_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
    cd "/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc"
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_IPHONE_OS_VERSION_MINREQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1 .sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-generated-files.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-own-target-headers.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-all-target-headers.hmap -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-project-headers.hmap -F/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r/include -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources/i386 -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources -c /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/helloworldxc_Prefix.pch -o /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch
    while compiling hellowworldxc_Prefix.pch,
    error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory)

    Could you let me know as where is the xcode setting through which it is looking for the compiler in the following path ? This path is probably wrong (Pls refer to the error messages)
    I'm not sure this will be of any help to you -- I'm not sure if it's the answer you're looking for, since I don't really know enough on the subject. However, this may answer your question, or at least maybe help you find the answer for yourself, so it's worth a shot. Try going to Edit Project Settings in the Project menu, and once the Project Settings open, select the Build tab. Search through this and see if you find any preferences along the lines of what you are looking for. In particular I would try the sections toward the bottom about the GCC 4.0 compiler. Sorry if this was a waste of time, but I wanted to try...

  • Gcc not working with compiled glibc from PKGBUILD

    hello folks, please excuse my english
    i like to compile certain parts of my system, between them are the kernel, glibc , zsh, etc.
    i had noticed that using a compiled version of glibc from abs results in gcc not working at all ( C compiler cannot create executables logs says). this is weird especially because i hadn't had problems before, i have looked for the error mesagges on Google and a lot of people has had this problem but  nobody has a "generic" solution for this
    this is the config.log file from one failed compile of mpg123
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by mpg123 configure 1.12.3, which was
    generated by GNU Autoconf 2.65. Invocation command line was
    $ ./configure --prefix=/usr --with-audio=alsa esd sdl
    ## Platform. ##
    hostname = Soul
    uname -m = x86_64
    uname -r = 2.6.34.1
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Tue Jul 6 23:23:17 CLT 2010
    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown
    /bin/arch = x86_64
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /bin
    PATH: /usr/bin
    PATH: /usr/local/bin
    PATH: /sbin
    PATH: /usr/sbin
    PATH: /usr/local/sbin
    PATH: /usr/share/java/apache-ant/bin
    PATH: /usr/lib/perl5/core_perl/bin
    ## Core tests. ##
    configure:2849: checking build system type
    configure:2863: result: x86_64-unknown-linux-gnu
    configure:2883: checking host system type
    configure:2896: result: x86_64-unknown-linux-gnu
    configure:2933: checking for a BSD-compatible install
    configure:3001: result: /bin/install -c
    configure:3012: checking whether build environment is sane
    configure:3062: result: yes
    configure:3203: checking for a thread-safe mkdir -p
    configure:3242: result: /bin/mkdir -p
    configure:3255: checking for gawk
    configure:3271: found /bin/gawk
    configure:3282: result: gawk
    configure:3293: checking whether make sets $(MAKE)
    configure:3315: result: yes
    configure:3402: checking for -Werror in CFLAGS (It breaks tests)
    configure:3412: result: no
    configure:3423: checking if you are up to something totally static with LDFLAGS/CFLAGS
    configure:3443: result: no
    configure:3463: checking for style of include used by make
    configure:3491: result: GNU
    configure:3561: checking for gcc
    configure:3577: found /usr/bin/gcc
    configure:3588: result: gcc
    configure:3817: checking for C compiler version
    configure:3826: gcc --version >&5
    gcc (GCC) 4.5.1
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:3837: $? = 0
    configure:3826: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: ../configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
    Thread model: posix
    gcc version 4.5.1 (GCC)
    configure:3837: $? = 0
    configure:3826: gcc -V >&5
    gcc: '-V' option must have argument
    configure:3837: $? = 1
    configure:3826: gcc -qversion >&5
    gcc: unrecognized option '-qversion'
    gcc: no input files
    configure:3837: $? = 1
    configure:3857: checking whether the C compiler works
    configure:3879: gcc -march=amdfam10 -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x12): undefined reference to `__libc_csu_fini'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x19): undefined reference to `__libc_csu_init'
    collect2: ld returned 1 exit status
    configure:3883: $? = 1
    configure:3921: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mpg123"
    | #define PACKAGE_TARNAME "mpg123"
    | #define PACKAGE_VERSION "1.12.3"
    | #define PACKAGE_STRING "mpg123 1.12.3"
    | #define PACKAGE_BUGREPORT "[email protected]"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mpg123"
    | #define VERSION "1.12.3"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3926: error: in `/var/abs/local/mpg123/src/mpg123-1.12.3':
    configure:3930: error: C compiler cannot create executables
    See `config.log' for more details.
    ## Cache variables. ##
    ac_cv_build=x86_64-unknown-linux-gnu
    ac_cv_env_CCASFLAGS_set=
    ac_cv_env_CCASFLAGS_value=
    ac_cv_env_CCAS_set=
    ac_cv_env_CCAS_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-march=amdfam10 -O2 -pipe'
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_ESD_CFLAGS_set=
    ac_cv_env_ESD_CFLAGS_value=
    ac_cv_env_ESD_LIBS_set=
    ac_cv_env_ESD_LIBS_value=
    ac_cv_env_JACK_CFLAGS_set=
    ac_cv_env_JACK_CFLAGS_value=
    ac_cv_env_JACK_LIBS_set=
    ac_cv_env_JACK_LIBS_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value='-Wl,--hash-style=gnu -Wl,--as-needed'
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_PULSE_CFLAGS_set=
    ac_cv_env_PULSE_CFLAGS_value=
    ac_cv_env_PULSE_LIBS_set=
    ac_cv_env_PULSE_LIBS_value=
    ac_cv_env_SDL_CFLAGS_set=
    ac_cv_env_SDL_CFLAGS_value=
    ac_cv_env_SDL_LIBS_set=
    ac_cv_env_SDL_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_host=x86_64-unknown-linux-gnu
    ac_cv_path_install='/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes
    ## Output variables. ##
    ACLOCAL='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run aclocal-1.11'
    AIX_CFLAGS=''
    AIX_LDFLAGS=''
    AIX_LIBS=''
    ALIB_CFLAGS=''
    ALIB_LDFLAGS=''
    ALIB_LIBS=''
    ALSA_CFLAGS=''
    ALSA_LDFLAGS=''
    ALSA_LIBS=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run tar'
    API_VERSION='25'
    AR=''
    ARTS_CFLAGS=''
    ARTS_LDFLAGS=''
    ARTS_LIBS=''
    AS=''
    AUTOCONF='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run autoconf'
    AUTOHEADER='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run autoheader'
    AUTOMAKE='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run automake-1.11'
    AWK='gawk'
    CC='gcc'
    CCAS=''
    CCASDEPMODE=''
    CCASFLAGS=''
    CCDEPMODE=''
    CFLAGS='-march=amdfam10 -O2 -pipe'
    COREAUDIO_CFLAGS=''
    COREAUDIO_LDFLAGS=''
    COREAUDIO_LIBS=''
    CPP=''
    CPPFLAGS=''
    CYGPATH_W='echo'
    DECODER_LOBJ=''
    DECODER_OBJ=''
    DEFS=''
    DEPDIR='.deps'
    DLLTOOL=''
    DSYMUTIL=''
    DUMMY_CFLAGS=''
    DUMMY_LDFLAGS=''
    DUMMY_LIBS=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ESD_CFLAGS=''
    ESD_LDFLAGS=''
    ESD_LIBS=''
    EXEC_LT_LDFLAGS=''
    EXEEXT=''
    FGREP=''
    GREP=''
    HAVE_AIX_FALSE=''
    HAVE_AIX_TRUE=''
    HAVE_ALIB_FALSE=''
    HAVE_ALIB_TRUE=''
    HAVE_ALSA_FALSE=''
    HAVE_ALSA_TRUE=''
    HAVE_ARTS_FALSE=''
    HAVE_ARTS_TRUE=''
    HAVE_COREAUDIO_FALSE=''
    HAVE_COREAUDIO_TRUE=''
    HAVE_DUMMY_FALSE=''
    HAVE_DUMMY_TRUE=''
    HAVE_ESD_FALSE=''
    HAVE_ESD_TRUE=''
    HAVE_HP_FALSE=''
    HAVE_HP_TRUE=''
    HAVE_JACK_FALSE=''
    HAVE_JACK_TRUE=''
    HAVE_MINT_FALSE=''
    HAVE_MINT_TRUE=''
    HAVE_MODULES_FALSE=''
    HAVE_MODULES_TRUE=''
    HAVE_NAS_FALSE=''
    HAVE_NAS_TRUE=''
    HAVE_OPENAL_FALSE=''
    HAVE_OPENAL_TRUE=''
    HAVE_OS2_FALSE=''
    HAVE_OS2_TRUE=''
    HAVE_OSS_FALSE=''
    HAVE_OSS_TRUE=''
    HAVE_PORTAUDIO_FALSE=''
    HAVE_PORTAUDIO_TRUE=''
    HAVE_PULSE_FALSE=''
    HAVE_PULSE_TRUE=''
    HAVE_SDL_FALSE=''
    HAVE_SDL_TRUE=''
    HAVE_SGI_FALSE=''
    HAVE_SGI_TRUE=''
    HAVE_SNDIO_FALSE=''
    HAVE_SNDIO_TRUE=''
    HAVE_SUN_FALSE=''
    HAVE_SUN_TRUE=''
    HAVE_WIN32_FALSE=''
    HAVE_WIN32_TRUE=''
    HP_CFLAGS=''
    HP_LDFLAGS=''
    HP_LIBS=''
    INCLUDE_STDIO_H=''
    INCLUDE_STDLIB_H=''
    INCLUDE_SYS_TYPE_H=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    JACK_CFLAGS=''
    JACK_LDFLAGS=''
    JACK_LIBS=''
    LD=''
    LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed'
    LFS_LOBJ=''
    LIBMPG123_VERSION='25:5:25'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIPO=''
    LN_S=''
    LTLIBOBJS=''
    LT_LDFLAGS='-export-dynamic'
    MAKEINFO='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/missing --run makeinfo'
    MINT_CFLAGS=''
    MINT_LDFLAGS=''
    MINT_LIBS=''
    MKDIR_P='/bin/mkdir -p'
    MODULE_OBJ=''
    NAS_CFLAGS=''
    NAS_LDFLAGS=''
    NAS_LIBS=''
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OPENAL_CFLAGS=''
    OPENAL_LDFLAGS=''
    OPENAL_LIBS=''
    OS2_CFLAGS=''
    OS2_LDFLAGS=''
    OS2_LIBS=''
    OSS_CFLAGS=''
    OSS_LDFLAGS=''
    OSS_LIBS=''
    OTOOL64=''
    OTOOL=''
    OUTPUT_CFLAGS=''
    OUTPUT_LDFLAGS=''
    OUTPUT_LIBS=''
    OUTPUT_MOD=''
    OUTPUT_OBJ=''
    PACKAGE='mpg123'
    PACKAGE_BUGREPORT='[email protected]'
    PACKAGE_NAME='mpg123'
    PACKAGE_STRING='mpg123 1.12.3'
    PACKAGE_TARNAME='mpg123'
    PACKAGE_URL=''
    PACKAGE_VERSION='1.12.3'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PORTAUDIO_CFLAGS=''
    PORTAUDIO_LDFLAGS=''
    PORTAUDIO_LIBS=''
    PULSE_CFLAGS=''
    PULSE_LDFLAGS=''
    PULSE_LIBS=''
    RANLIB=''
    SDL_CFLAGS=''
    SDL_LDFLAGS=''
    SDL_LIBS=''
    SED=''
    SET_MAKE=''
    SGI_CFLAGS=''
    SGI_LDFLAGS=''
    SGI_LIBS=''
    SHELL='/bin/sh'
    SNDIO_CFLAGS=''
    SNDIO_LDFLAGS=''
    SNDIO_LIBS=''
    STRIP=''
    SUN_CFLAGS=''
    SUN_LDFLAGS=''
    SUN_LIBS=''
    VERSION='1.12.3'
    WIN32_CFLAGS=''
    WIN32_CODES_FALSE=''
    WIN32_CODES_TRUE=''
    WIN32_LDFLAGS=''
    WIN32_LIBS=''
    ac_ct_CC='gcc'
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCCAS_FALSE=''
    am__fastdepCCAS_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='x86_64-unknown-linux-gnu'
    build_alias=''
    build_cpu='x86_64'
    build_os='linux-gnu'
    build_vendor='unknown'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='x86_64-unknown-linux-gnu'
    host_alias=''
    host_cpu='x86_64'
    host_os='linux-gnu'
    host_vendor='unknown'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /var/abs/local/mpg123/src/mpg123-1.12.3/build/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    lt_ECHO='echo'
    mandir='${datarootdir}/man'
    mkdir_p='/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    ## confdefs.h. ##
    /* confdefs.h */
    #define PACKAGE_NAME "mpg123"
    #define PACKAGE_TARNAME "mpg123"
    #define PACKAGE_VERSION "1.12.3"
    #define PACKAGE_STRING "mpg123 1.12.3"
    #define PACKAGE_BUGREPORT "[email protected]"
    #define PACKAGE_URL ""
    #define PACKAGE "mpg123"
    #define VERSION "1.12.3"
    configure: exit 77
    the parts i had searched on google are specificaly the
    "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x12): undefined reference to `__libc_csu_fini'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x19): undefined reference to `__libc_csu_init'"
    does anyone have an idea of what could it be?
    notice that this doesn't bother me because if i use the glibc from the repositories everything works fine, this is just for curiosity of why it doesn't work
    thanks in advance

    slacknatcher wrote:
    the parts i had searched on google are specificaly the
    "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x12): undefined reference to `__libc_csu_fini'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/crt1.o: In function `_start':
    (.text+0x19): undefined reference to `__libc_csu_init'"
    does anyone have an idea of what could it be?
    notice that this doesn't bother me because if i use the glibc from the repositories everything works fine, this is just for curiosity of why it doesn't work
    thanks in advance
    You have stripped glibc too much.  See the Arch PKGBUILD and make sure your makepkg.conf has STRIP_BINARY etc defined.

  • Cannot compile my Hello World

    Hello I am new to Java,
    I am running openSUSE 11.1.
    on running the javac compiler this is what I get.:
    alon@linux-6xrt:~/java> javac Ch2Sample1.java
    /usr/lib/gcc/i586-suse-linux/4.3/../../../crt1.o: In function `_start':
    /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
    collect2: ld returned 1 exit status
    alon@linux-6xrt:~/java> This is my java code
    import javax.swing.*;
    public class Ch2Sample1  {
         public static void main  (String [] args  )   {
         JFrame      myWindow;
         myWindow = new JFrame();
         myWindow.setSize(300, 300);
         myWindow.setTitle("My First Java ");
         myWindow.setVisible(true);
         System.out.print("Hello World");
    }I am pretty much at a loss.

    Thank you
    I followed your advice and
    javac -v
    Using built-in specs.
    Reading specs from /usr/lib/gcc/i586-suse-linux/4.3/libgcj.spec
    rename spec startfile to startfileorig
    rename spec lib to liborig
    Target: i586-suse-linux
    Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,java --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre --with-ecj-jar=/usr/lib/gcc/i586-suse-linux/4.3/ecj.jar --enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=i586-suse-linux
    Thread model: posix
    gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux)
    alon@linux-6xrt:/usr/lib/jvm> I guess I am using gcj
    BTW I am using openSUSE, I use geany editor and I type all the command the terminal.. no IDE for me.
    I gather I should down the java compiler from Sun then?.
    I have found this
    java                        java-gcj       jre-1.6.0-openjdk
    java-1.5.0                  jre            jre-gcj
    java-1.5.0-gcj              jre-1.5.0      jre-openjdk
    java-1.5.0-gcj-4.3-1.5.0.0  jre-1.5.0-gcj
    java-1.6.0-openjdk-1.6.0    jre-1.6.0
    alon@linux-6xrt:/usr/lib/jvm> So I guess I have the openjdk?
    Your advice?

  • How to compile a simple "Hello World" program in Java by using Netbeans

    Hi all, I am very new to java programming arena. i am trying to learn the most demanding language for the time being. To program, i always use IDE's as it makes programming experience much easier by underline the syntax errors or sometimes showing codehint. However, I am facing some problem when i use Netbeabs to compile a simple "Hello world" program. my problem is whenever i write the code and press compile button, netbeans says "main class not found". Consequently,i am becoming frustated. So, i am here in this forum to get some kind help on How i can compile java programs in Netbeans. Please help me out, otherwise i may lose my enthusiasm in Java. please help me, i m stuck

    Go to http://www.netbeans.org/
    You should find tutorials there.

  • "hello world" - my first MIDlet is not working .......

    Hi There,
    I have downloaded J2ME toolkit recently and wrote a "hello world" MIDlet which is as follows
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener
    private Command cmd;
    private Display display;
    public HelloWorld()
    display = Display.getDisplay( this );
    cmd = new Command("Exit", Command.SCREEN, 1);
    public void startApp()
    TextBox t = new TextBox( "Hello ", "Ravi", 256, 0 );
    t.addCommand( cmd );
    t.setCommandListener( this );
    display.setCurrent( t );
    public void pauseApp()
    public void destroyApp( boolean unconditional )
    public void commandAction( Command c, Displayable s )
    if( c == cmd )
    destroyApp( false );
    notifyDestroyed();
    the code builds fine and when i run it it shows -
    "Could not create icon com.sun.midp.midlet.Selector$MIDletInfo@8e597cUnable to create MIDlet ravi"
    in my toolbar ................
    can any tell me ..... how to set these icons........
    thank you
    ravi

    Hi there,
    I can successfully compiled these code and generated .JAD file. but when I try to convert inot PRC. It show me following error message:
    File:E:\j2me_cldc\apps\HelloWorld\bin\HelloWorld.jad Result:Failed: The .JAR file corresponding to the .JAD file you want to convert is missing. Java Applications (MIDlets) are represented by both a .JAD and a .JAR file pair. Both the .JAD and .JAR must be present to convert the MIDlet to a .PRC file. Please make sure both the .JAD and the .JAR files are present.
    How can I get aforementioned JAR file? Just pack the class file by myself or something else needed to be done additionally? Please give me a hand...
    HeChangrun

  • Hello World Servlet Not Working

    Hi,
    I am using apache and eclipse for the first time. I am running into an issue. When I create the HelloServlet.java class, a yellow icon with a question mark appears on top on my web-inf, package, and class. I also notice a yellow line appears under the class name HelloWorld. I place the curso on top of it, and I saw the message below:
    �The serializable class HelloServlet does not declare a static final serialVersionUID field of type long�. I am not sure what I did wrong. When I paste the url in the browser, it does not show the message. It shows me an error 404.
    I am using eclipse 3 with tomcat 6 and java 5.
    P.S. I started tomcat, and all the jsp and html samples are working fine.

    I am getting the error message below when I compile my hello World Servlet.
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_14\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_03\bin\client;C:\Program Files\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_14\bin;C:\JDBC\sqljdbc_1.2\enu\sqljdbc.jar;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    Dec 13, 2007 11:45:54 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 827 ms
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Dec 13, 2007 11:45:54 AM org.apache.tomcat.util.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:689)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:750)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:664)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:845)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/HelloWorld/WEB-INF/web.xml
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 1 column 6
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [HelloWorld] startup failed due to previous errors
    Dec 13, 2007 11:45:55 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1244 ms
    Dec 13, 2007 11:45:55 AM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[8005]:
    java.net.BindException: Address already in use: JVM_Bind
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
         at java.net.ServerSocket.bind(ServerSocket.java:319)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
         at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

  • Adobe Drive not connecting to hello world sample launched via Eclipse

    I'm trying to get the hello world sample running with Drive SDK 5. I got:
    Adobe Drive 5.0.1
    AdobeDriveSDK-5.0.0.398770.zip
    latest Java JRE 1.6
    Eclipes 4.3.1 (Kepler SR 1)
    Windows 7 64bit
    I configured the hello world project as described in the getting started guide. I double checked that AD4ServiceManager.exe is not running. After starting the project in Eclipse and waiting about 15 seconds, all bundles are active:
    osgi> ss
    Framework is launched.
    id     State       Bundle
    0     ACTIVE      org.eclipse.osgi_3.5.0.v20090520
    1     ACTIVE      com.adobe.csi.ncomm_2.0.0.28
    2     ACTIVE      com.adobe.drive.core_2.0.0.28
    3     ACTIVE      org.eclipse.equinox.cm_1.0.100.v20090520-1800
    4     ACTIVE      org.eclipse.equinox.preferences_3.2.300.v20090520-1800
    5     ACTIVE      org.eclipse.equinox.app_1.2.0.v20090520-1800
    6     ACTIVE      com.adobe.drive.biz.filesystem_2.0.0.28
    7     ACTIVE      javax.servlet_2.5.0.v200806031605
    8     ACTIVE      org.eclipse.equinox.launcher_1.0.200.v20090520
    9     ACTIVE      com.adobe.drive.manager.executor_1.0.0.28
    10     ACTIVE      com.adobe.drive.connector.cmis_2.0.0.28
    11     ACTIVE      com.adobe.drive.ui_2.0.0.28
                     Fragments=27
    12     ACTIVE      org.hsqldb_2.2.9
    13     ACTIVE      com.adobe.drive.model.synchronization_2.0.0.28
    14     ACTIVE      com.adobe.drive.data.persistence.api_2.0.0.28
    15     ACTIVE      org.eclipse.equinox.ds_1.1.0.v20090601
    16     ACTIVE      org.eclipse.update.configurator_3.3.0.v20090312
    17     ACTIVE      org.hibernate_3.2.5
    18     ACTIVE      com.adobe.csi.core_2.0.0.28
    19     ACTIVE      com.adobe.drive.connector.service_2.0.0.28
    20     ACTIVE      com.adobe.drive.model_2.0.0.28
    21     ACTIVE      com.adobe.drive.data.provider_2.0.0.28
    22     ACTIVE      com.adobe.csi.auth.keystore_2.0.0.28
    23     ACTIVE      com.adobe.drive.connector.api_2.0.0.28
    24     ACTIVE      com.adobe.drive.data.persistence.hsqldb_2.0.0.28
    25     ACTIVE      com.adobe.drive.data.cache_2.0.0.28
    26     ACTIVE      org.apache.commons.codec_1.0.0.28
    27     RESOLVED    com.adobe.drive.ui.scripting_2.0.0.28
                     Master=11
    28     ACTIVE      org.apache.commons.net_1.4.1
    29     ACTIVE      sample.helloworld_2.0.0
    30     ACTIVE      com.adobe.csi.bootstrap_2.0.0.28
    31     ACTIVE      com.adobe.drive.data.manager_2.0.0.28
    32     ACTIVE      org.apache.commons.logging_1.0.4
    33     ACTIVE      com.adobe.versioncue.nativecomm_4.0.1.28
    34     ACTIVE      com.adobe.drive.biz.versioncue.api_2.0.0.28
    35     ACTIVE      org.eclipse.equinox.common_3.5.0.v20090520-1800
    36     ACTIVE      com.adobe.csi.pipes_2.0.0
    37     ACTIVE      com.adobe.drive.data.model_2.0.0.28
    38     ACTIVE      com.adobe.drive.data.persistence_2.0.0.28
    39     ACTIVE      com.adobe.drive.processinfo_2.0.0.28
    40     ACTIVE      com.adobe.drive.connector.cmis.client_2.0.0.28
    41     ACTIVE      com.adobe.drive.ncomm.filesystem_2.0.0.28
    42     ACTIVE      org.eclipse.equinox.registry_3.4.100.v20090520-1800
    43     ACTIVE      org.apache.commons.httpclient_3.1.0
    44     ACTIVE      com.adobe.drive.vcdetector_2.0.0
    45     ACTIVE      com.adobe.drive.ncomm.versioncue_2.0.0.28
    46     ACTIVE      com.adobe.drive.connector.cqdam_4.0.0.28
    47     ACTIVE      com.adobe.csi.core.preferences_2.0.0.28
    48     ACTIVE      org.eclipse.equinox.util_1.0.100.v20090520-1800
    49     ACTIVE      com.adobe.csi.utils_2.0.0.28
    50     ACTIVE      com.adobe.drive.biz.automount_2.0.0.28
    51     ACTIVE      com.adobe.csi.core.logging_2.0.0.28
    52     ACTIVE      com.adobe.drive.manager.interests_2.0.0.28
    53     ACTIVE      org.apache.log4j_1.2.15
    54     ACTIVE      com.adobe.drive.ifs_2.0.0.28
    55     ACTIVE      com.adobe.drive.core.jobs_2.0.0.28
    56     ACTIVE      org.eclipse.osgi.services_3.2.0.v20090520-1800
    57     ACTIVE      com.adobe.drive.biz.versioncue_2.0.0.28
    58     ACTIVE      com.adobe.csi.auth_2.0.0.28
    Also, the output of csstat looks fine:
    osgi> csstat
    Registered connector factories (schema : reference):
    cmis : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=com.adobe.drive.connector.cmis#cmis, service.id=48}
    cq : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=cq#cq, service.id=75}
    helloworld : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=sample.helloworld#helloworld, service.id=70}
    Instantiated connector factories (uuid : factory):
    Afterwards, I start Adobe Drive (32bit version). The UI hangs with the message "Adobe Drive is starting. Please wait.". From task manager I can see that not just Adobe Drive was started, but also AD4ServiceManager.exe. I guess, this should not happen, because Adobe Drive should discover the one launched via Eclipse.
    So what's going wrong here? How does Adobe Drive discover the one launched via Eclipse? What could block discovery?
    Here more details in case that helps debugging the problem. MANIFEST.MF:
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: HelloWorld Plug-in
    Bundle-SymbolicName: sample.helloworld
    Bundle-Version: 2.0.0
    Bundle-Vendor: Adobe Systems
    Adobe-AutoStart: true
    Require-Bundle: com.adobe.drive.connector.api,
    com.adobe.drive.core,
    com.adobe.drive.model,
    com.adobe.csi.utils
    Service-Component: OSGI-INF/HelloWorldHandlerFactory.xml
    build.properties
    source.. = src/
    output.. = bin/
    bin.includes = META-INF/,\
                   OSGI-INF/
    HelloWorldHandlerFactory.xml:
    <?xml version="1.0"?>
         <component name="sample.helloworld#helloworld"
         factory="com.adobe.drive.connector.handlerfactory">
         <implementation class="sample.helloworld.HelloWorldHandlerFactory"/>
    </component>
    Here the Eclipse run configuration settings:

    Wow, this seems to help even though it is still a bit shaky. Here the steps I have to do to get it working:
    manually launch 64bit version of AD4ServiceManager.exe with parameter -launchedbydrive
    launch Eclipse project and wait till ss shows everything as registered (much faster now)
    start 64bit version of Drive -> my adapter doesn't show up
    shutdown drive
    start 64bit version of Drive again -> my adapter now shows up and works as expected
    I find a few things confusing here:
    In Eclipse, should I configure the 32bit or 64bit version of AD4ServiceManager as plugin execution environment? Currently, I'm using the 32bit version.
    Why isn't the step of manually launching AD4ServiceManager.exe not mentioned in the getting started guide?
    I will reboot my machine to see if it is still working or just some special sun radiation making it work currently :-)

Maybe you are looking for

  • Failed to load Connection...

    Dear all, Now that I'm able to use and publish my projects properly, I'm facing a "Failed to load connection" on my first report, on my production machine. I'm using on my development machine SQL Server Express, and getting connected via an ODBC conn

  • How do I get a table on pages to continue onto the next page if the text is too long?

    I like to make a table to organize information. I just make it like a box. I like to do this for my lesson plans since I am a teacher, but I can't get all my information on the one cell and it just disappears. I attached the picture to help show you

  • Question in Oracle Financial Anaylzer (Please help)

    Can anyone of you point to where documentation for Application Programming Interface is for Oracle . Financial Analyzer (v6). I am having difficulty in understanding functions used for maintaining Structures like Dimension Maintenance, Dimension Valu

  • Best approach to create a security environment in Java

    I need to create a desktop application that will run third party code, and I need to avoid the third party code from export by any way (web, clipboard, file io) informations from the application. Somethig like: public class MyClass {     private Stri

  • Sqlloader for one column

    Hi I want to load a table from .csv file having only one column is this possible please suggest. i tried it but only 1st character of records is loading rest is getting ignored