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

  • Home
  • SEARCH
  • 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 8638089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:38:19+00:00 2026-06-12T10:38:19+00:00

Some weeks ago at work I took over a Java-based back-end web application written

  • 0

Some weeks ago at work I took over a Java-based back-end web application written using Eclipse. The nature of the application is that it cannot be adequately tested locally, and instead changes need to be tested on our testing network (which involves pushing the changes to an AWS Micro server that we connect to via SSH).

Until now, I pushed changes in the same way as my predecessor: compile the program using Eclipse’s Export to Runnable JAR File option, then scp the jar to the remote server and run it. However, this process has a huge problem. While compilation takes only seconds, the jar is well over 30MB, and pushing the entire thing from the office to the remote server over our fairly ordinary internet connection takes well over 10 minutes. If I’m having a particularly bad day and, say, introduce several minor bugs to the code and then discover them one by one, I can easily end up losing an hour or more in total twiddling my thumbs while pushing the whole jar over and over for a series of one-line changes.

Clearly, a saner solution than scping the entire jar for every change would be to simply remotely pull only the changed .java files from source control, and then compile the new version entirely remotely. However, I’m quite new to Java (and indeed programming generally) and all my Java work has been on existing Eclipse projects that I’ve taken over partway through development. As such, I know very little about compiling Java, and I have found the tutorials about this online are mostly either opaque or completely fail to address the question of how to compile code that uses external libraries.

I will relate here what information about the project’s dependencies I can find from Eclipse, and my questions are these: what do I need to copy to the remote server, and where do I need to put it, to be able to compile remotely? What tools, if any, do I need to install on the remote server to be able to compile there? And once I’ve got everything set up, what do I actually type at the command line to get it to compile?

Anyway, here’s what I know about the dependencies and directory structure (I’ve anonymised our application name by calling it “bunnies”):

  • The application source code is located in bunnies/src

  • We compile to bunnies/bin/main.jar

  • bunnies/dependencies contains three jars of external libraries that we use.

  • Right-clicking on the project in Eclipse, going to the Java Build Path section, and selecting the Libraries tab, I see

    • the three libraries above
      (appearing in the form, e.g. “json-simple-1.1.1.jar – /home/mark/workspace/bunnies/dependencies”)
    • a fourth jar file in another location
      (“M2_REPO/com/google/guava/guava/r09/guava-r09.jar – /home/mark/.m2/repository/com/google/guava/guava/r09/guava-r09.jar”)
    • JRE System Library [java-6-openjdk-i386]
  • But there’s more! We also use two libraries, mahout-core and mahout-integration, that are included as separate projects in the same workspace rather than as jar files in the dependencies folder. They appear by name on the Projects tab of the Java Build Path section of the bunnies project, and are located at /home/mark/workspace/mahout-core and /home/mark/workspace/mahout-integration respectively.

  • Since I am not a Java whiz, perhaps there are also some other hidden dependencies I’m missing, that don’t appear in any of the places I’ve looked so far?

If anyone can walk me through the steps of compiling this huge mess from the command line, without needing to use the Export option in Eclipse, so that I can ultimately compile it all remotely, I would be highly appreciative.

  • 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-12T10:38:20+00:00Added an answer on June 12, 2026 at 10:38 am

    Look into Apache Ant. It’s a build-suite for Java, sort of like an XML based Makefile system.

    I have a Java system running on a remote server. I have a directory structure separated into /src and /build. I then just scp the .java files from my local machine to the /src folder and build using ant.

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

Sidebar

Related Questions

We started using Mercurial a several weeks ago. Most developers follow this workflow: work
i've installed nodejs on my work pc some weeks ago... today i've tried to
I work in a python shell and some weeks ago I have defined a
In most cases I am used to work with Windows, some weeks ago I
I started using WPF (in C#) some weeks ago and now i need help
I released an app some weeks ago and many of my users are complaining
I remember few weeks ago when I reorgnized our code and created some namespaces
I have to interview some C++ candidates over the next few weeks and as
I have some bugs with Chrome. Since a few weeks ago the placeholders don't
Some weeks ago 2 of my sites have been exploited probably from an ftp

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.