Results 1 to 8 of 8

Thread: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse?

  1. #1
    Join Date
    Nov 2010
    Beans
    29

    Smile Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse?

    Hi,

    I starting Java programming at school and take a good guess, everyone uses Window$

    So we are practicing java for beginners in Eclipse (In Windows).

    I want to know if I send my teacher my projects would the files run smoothly with out any problem??

    Thank You for your time

  2. #2
    Join Date
    Feb 2011
    Beans
    22

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    Yes. The .java and .class files will all work on Windows.

  3. #3
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    Moved to Programming Talk
    The Left Coast Geek * The Community ATI Driver Wiki * Find what you need in the Ubuntu Community wikis

    Don't let the truth get in the way of a good story!
    This universe is crazy. I'm going back to my own.


  4. #4
    Join Date
    Mar 2010
    Location
    London
    Beans
    924

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    Java will work anywhere that Java is installed... no matter what operating system. The 'compiled' .class files that are created do not run on the native operating system... they run on a Java Virtual Machine (the JVM).
    - "Make me a coffee..."
    - "No"
    - "sudo make me a coffee"
    - "OK"

  5. #5
    Join Date
    May 2007
    Location
    Leeds, UK
    Beans
    1,664
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    You probably also want to check you are using the same major version, e.g. Java 7.
    Please create new threads for new questions.
    Please wrap code in code tags using the '#' button or enter it in your post like this: [code]...[/code].

  6. #6
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,050
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    Put in the comments block: Please don't ding me if this doesn't run on your Windows machine. It was programmed in a linux environment. Neckbeards for Freedom.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  7. #7
    Join Date
    Feb 2008
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    Quote Originally Posted by Edgar117 View Post
    I want to know if I send my teacher my projects would the files run smoothly with out any problem??
    Yes, everything should work fine.

    Also remember that Linux and Windows use different end-of-line symbols. Most advanced editors (like Eclipse), don't have an issue with this, but if your teacher views the files in Notepad, then the text will look as one long line

    As far as I can remember, you can force a certain end of line style in Eclipse, by going to Window > Preferences > General > Workspace > New text file line delimiter and choosing "Windows".

  8. #8
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,165
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Can Java files from Ubuntu Eclipse work or can be exported to the Windows Eclipse

    If you only send .java/.class files yes it should work (if you teacher is really picky you may have to convert java files to Windows end-of-line conventions with "todos", but if he is that picky change teachers... he doesn't know much).

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
  •