Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Java, C and C++ in Ubuntu

Hybrid View

  1. #1
    Join Date
    May 2013
    Beans
    8

    Java, C and C++ in Ubuntu

    Hey guys! I've used Ubuntu in the past (and absolutely loved the environment) but last time I used it, I was more or less just playing around with it. Recently I've been taking a programming class in Java and I've had so much fun with it. I do have a few quick questions about the Ubuntu platform and writing code though.

    1. Does is automatically come with a JVM and C/C++ Compiler?
    2. What IDE would you recommend for writing code on Ubuntu? (I am using Netbeans on Windows and Mac OS X)
    3. What scripting language do you prefer? Python, Ruby or Perl? I haven't done any scripting yet, but plan to do so in the future.

    As I was saying, before I was more or less playing with Ubuntu, but now I have put serious thought into doing open source development on the side as a hobby. I love the open source community and would like to see it thrive and I would like to be a contributing member. I also have one more thing. What books would you recommend I buy to learn C/C++ and scripting languages? I am thinking of doing some serious development and writing code for the Ubuntu community. By the way, what kind of code is the Ubuntu community looking for? What do you guys really want as a general user? Are you looking for games, music, movies, various multimedia editors? I just want to know what is popular so that I can be writing code where it is really needed/wanted.

    Thank you!
    Last edited by saribeiro; May 12th, 2013 at 01:42 AM.

  2. #2
    squakie is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Java, C and C++ in Ubuntu

    I can't help you with the first 3 questions (I use C and C++ -> you should have gcc, but there are other things needed as well (all free). Some people say it's not needed because it's for package development, but the build-essential package includes lots of things in the way of dependencies, and those things make things easier. There are many IDE's out there - I use CodeBlocks, but I don't know if you can use it for Java or not. Linux also has many libraries you may at one time or another need depending on what you are developing. The beauty is that you can just Synaptic package manaer or the Software Center to install those as needed.

    As far as what to develop, you may want to check and see what you can do to help support Ubuntu. Sometimes there are programming things that need to be done, sometimes scripting, etc.. It would be a way to give back to the community as your skills increase.

  3. #3
    Join Date
    May 2013
    Beans
    8

    Re: Java, C and C++ in Ubuntu

    Oh ok! Thanks a lot! Are you a developer for the Ubuntu community? I'm just trying to gain as much coding experience as I can. I find coding and programming experiences invaluable because I use programs for so much of my work.

  4. #4
    squakie is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Java, C and C++ in Ubuntu

    Quote Originally Posted by saribeiro View Post
    Oh ok! Thanks a lot! Are you a developer for the Ubuntu community? I'm just trying to gain as much coding experience as I can. I find coding and programming experiences invaluable because I use programs for so much of my work.
    I haven't been yet. I keep trying to decide if I know enough to be helpful.

  5. #5
    Join Date
    May 2013
    Beans
    8

    Re: Java, C and C++ in Ubuntu

    I also have another question that I just thought of. I really love the Ubuntu font and I want to get the Ubuntu font in my installation of LaTeX. I have a MacBook Pro, it runs Mac OS X Version 10.8.2 and I have TexStudio running on my Mac. Is there any way I can import the Ubuntu font to TeX?

  6. #6
    Join Date
    May 2013
    Beans
    8

    Re: Java, C and C++ in Ubuntu

    Does the Code::Blocks IDE come with a compilers bundled with the software, or will I need to install those separately?

  7. #7
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Java, C and C++ in Ubuntu

    It's been a while since I've used it, but it seemed to me code compiled right out of the box with that program. I wrote a couple C++ programs with it, but can't remember exactly what I did now.

    May have been a couple Z factor solvers or something.

    Just download it and try to create a simple "Hello World" program to see if its working for you.

    Most programming I do now is in VBA unfortunately, or BASH script if I need to do something silly in Linux.
    Last edited by Petro Dawg; May 11th, 2013 at 05:01 AM.
    Who's Awesome? You're Awesome.

  8. #8
    Join Date
    Jun 2010
    Location
    Ukraine
    Beans
    37

    Re: Java, C and C++ in Ubuntu

    > Does the Code::Blocks IDE come with a compilers bundled with the software, or will I need to install those separately?


    It depends from IDE packet dependences. Generally for C++ your system needs have g++ installed, which goes with libstdc++ (stdlib) alongside. Just watch to compiler' terminal - it determine what you are not install yet.

  9. #9

    Re: Java, C and C++ in Ubuntu

    *READ THIS ONLY IF YOU WANT TO KNOW HOW TO RUN A C++ PROGRAM ON UBUNTU*

    Ok, here is the complete explanation of how to run a program in C++. After you write the program you want in a text pad, save it as "_____.cpp", then save it in a directory you want (for simplicity say "Documents"). Next open the command prompt and "cd" to Documents, finally type "g++ -o [name you want to give the executable version] _____.cpp". For example:

    cd Documents
    g++ -o hello HelloWorld.cpp

    Remember, the part after the -o is the name you WANT to give the executable program. Now to run it:

    ./hello

    This should work for all C++ programs, I hope this helped you with the compiling piece.
    Last edited by KARNVORbeefRAGE; May 11th, 2013 at 05:10 PM.

  10. #10
    Join Date
    Jul 2009
    Location
    Italy
    Beans
    68
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Java, C and C++ in Ubuntu

    After installing the fonts using the links Cheesemill gave you and checking that the new fonts are correctly installed (try to use it in Office/LibreOffice or any other similar software) using them with latex requires you to use xelatex to compile your tex file in order to be able to access the system fonts. Here's a link with some infos and an example

    http://en.wikipedia.org/wiki/XeTeX

    Using xelatex instead of latex requires only some changes in the document preamble, as far as I know most of the latex packages work with xelatex too.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •