C++ and JAVA in Suse 10.1 ??

Discussion in 'Open Source' started by DukeNukem, Oct 16, 2006.

Thread Status:
Not open for further replies.
  1. DukeNukem

    DukeNukem Come get Some

    Joined:
    Aug 28, 2005
    Messages:
    417
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Home Sweet Home
    Hie Bro's an chicks

    can any one tell me how to write and compile and run prog. made in c++ and java in Suse 10.1 from suse command prompt. (first part "write" i can do myself)
     
  2. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    Use gc++ for c++ and for java you can use either sun-java or gcj.
    GCC(GNU Compiler Collection) has lots of tools for various programming language.
    Besides you can use IDE's like Ajunta.I guess Eclipse will be too slow to run on your system, but it's another good tool.
     
  3. OP
    OP
    DukeNukem

    DukeNukem Come get Some

    Joined:
    Aug 28, 2005
    Messages:
    417
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Home Sweet Home
    Sir
    can you please tell me the procedure (if any) to compile and run the Progs in suse command prompt
    (like "bc.exe myfirst.cpp" or "javac file.java" or java file"")
     
  4. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    1. Fire up the terminal
    2. Change the directory to the working (c++ files containing) directory
    3. If the file's name is something like
    ( C ) a. "dukenukem.c" , then type "gcc dukenukem.c -o dukenukem"
    (C++) b. "dukenukem.cpp" then type "g++ dukenukem.cpp -o dukenukem"
    4. "Enter" ur done!
    5. To run the file now just type "./dukenukem" and enter! Bingo

    Here dukenukem is output file name and can be given any name and "-o" is the ouput parameter. If u wont give the output paramtere and output filename then default output file created is "a.out"!

    compiling java files is same as in windows!
     
  5. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    for c++ http://people.cs.uchicago.edu/~jacobm/linux_programming.html it's section 2,4 & 5 that you need to look at. Section 2 lists some CLI editors, but you can use GUI ones if you find CLI editors difficult to start with.
    for java. use some package manager like yum or smart(i am using smart on suse 10 and it's good) and install sun-java-jdk or java-xxx-sun-devel, by whatever name it is listed. Then you can open up the terminal and you will have access to all the tools in sun's jdk.
     
  6. OP
    OP
    DukeNukem

    DukeNukem Come get Some

    Joined:
    Aug 28, 2005
    Messages:
    417
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Home Sweet Home
    Thanks A Lot Bro.
     
  7. OP
    OP
    DukeNukem

    DukeNukem Come get Some

    Joined:
    Aug 28, 2005
    Messages:
    417
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Home Sweet Home

    Thanks Sir thanks
     
  8. gary4gar

    gary4gar GaurishSharma.com

    Joined:
    May 21, 2005
    Messages:
    4,094
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    Jaipur
    sir??
    lol
    mehul ppl respect u a lot
     
  9. Desi-Tek.com

    Desi-Tek.com New Member

    Joined:
    Oct 15, 2006
    Messages:
    370
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Mumbai
    use vi editor to write program

    eg fif file name is test.c

    than compile it using following command

    gcc - o test test.c

    and type
    ./test
    to run that program.

    how to compile java program

    javac javaFilename.java
     
  10. [xubz]

    [xubz] "The Cake is a Lie!!"

    Joined:
    Oct 14, 2006
    Messages:
    471
    Likes Received:
    2
    Trophy Points:
    0
    Well, since you use KDE, why dont you install KDevelop? Its a Pretty Good IDE!
     
  11. OP
    OP
    DukeNukem

    DukeNukem Come get Some

    Joined:
    Aug 28, 2005
    Messages:
    417
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Home Sweet Home
    REally Very Very Very Few get this privilege
     
  12. Desi-Tek.com

    Desi-Tek.com New Member

    Joined:
    Oct 15, 2006
    Messages:
    370
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Mumbai
  13. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,705
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    For Java use NetBeans IDE 5.0 BlueJ Edition , download it from here
    It's light-weight Java IDE , also very easy to use. For C/C++ use Anjuta.
    Download Anjuta from here .There is also Eclipse IDE for Java & C++,
    but it needs 512 MB RAM, also it consumes lot of resources.
     
  14. aku

    aku Gonna make it BiG

    Joined:
    Dec 30, 2004
    Messages:
    543
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Familiar with Java... SORRY POINTER NOT ALLOWED!!!
    hey.. hw 2 work wid sql in linux.. since im havin rdbms and sql in my syllabus. btw, my school uses oracle.. so is there gonna be any diff. in case of sql (the default one in linux, not externally installed app) in linux and oracle in windows?
    btw its oracle 8i
     
  15. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    There's no such thing as internal sql. Most of the distros come with MySQL. See http://dev.mysql.com/ for more on MySQL. Here's the link to MySQL manual http://dev.mysql.com/doc/refman/5.1/en/index.html just compare it with Oracle and see. I don't have much clue. I am too bad at DBMS.
    You also have other kinds of DBMS's on linux like PostgreSQL and even Oracle. Get oracle 10g Express Edition for linux from here http://www.oracle.com/technology/products/database/xe/index.html
    Also see this http://linas.org/linux/db.html for more on DBMS in linux and do a little bit of googling for more answers.
     
  16. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
  17. Desi-Tek.com

    Desi-Tek.com New Member

    Joined:
    Oct 15, 2006
    Messages:
    370
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Mumbai
  18. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    ^^Whateva u say sir! BUt that difference is not much visible to noobs to sql, does it? I know mysql has less features. But to start with mysql is best in my opinion and so is Postgresql. Also php stands nicely with mysql, remember the LAMP??
    So u dont have to start a debate here for mysql Vs oracle as everybody knows which is the best!
     
    Last edited: Oct 17, 2006
  19. aku

    aku Gonna make it BiG

    Joined:
    Dec 30, 2004
    Messages:
    543
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Familiar with Java... SORRY POINTER NOT ALLOWED!!!
    ... im in a fix.. school follows oracle... seems hav i to install oracle...
     
Thread Status:
Not open for further replies.

Share This Page