Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7754405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:17:57+00:00 2026-06-01T12:17:57+00:00

I am trying to compile two java programs in Eclipse on Ubuntu. I then

  • 0

I am trying to compile two java programs in Eclipse on Ubuntu. I then want to be able to go from two terminal and run the programs; server and client. I am fairly new to eclipse and ubuntu, how would I go about doing this. Such as using g++ and it spitting out a.out or whatever you might call it, how can I do this with eclipse and a Java program?

Don’t I need to run them in the JVM? I know java is compiled to java bytecode and ran on a JVM. But this is the first time I have tried to just run a java program a have written in eclipse, outside of eclipse.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:17:59+00:00Added an answer on June 1, 2026 at 12:17 pm

    To run the program outside of eclipse there are several ways, i enslist some opportunities below :

    • Get the dist folder copy it somewhere and executing the program from here passing the main class name as jvm argument
    • Export the program as a runnable jar

    To export as a runnable jar the procedure is as follow :

    1. Highlight the appropriate file/project
    2. File -> Export
    3. Choose “Runnable JAR file” -> Next
    4. Make sure the right project is selected under the “Launch Configuration” dropdown and select “Package required libraries into generated JAR file” under the “Library Handling” section and make sure it’s going to the correct export destination.
    5. click Finish
    6. Run the jar with the command : java -jar yourjarname.jar

    Since seems that you are familiar with gcc there could be even another option : compile the java program into a standard executable with gcj gcc extension, there is also the eclipse plugin GCJBuilder …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn how to compile java programs from the command line and
I'm trying to compile a java source file that uses two jar files (trove
I'm trying to extract two blocks of code from a text file using Java
I am just trying to compile and run a very simple test program, but
I have a android webservice client application. I am trying to use the java
I'm trying to compile all my packages except two of them, here is what
I am trying to get a little test working in Java. I have two
I'm trying to integrate a project into maven having two components - client (written
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
When trying to compile GNU software on HP-UX (binutils for example) I'm getting error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.