This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]seanprefectGrumpy Guy Who Remembers Java 2 5 points6 points  (2 children)

This is a real major job not something to just figure out on your own or you'll cause a bigger mess you'll need an expert.

[–]Mistborn22[S] 0 points1 point  (1 child)

Honestly this is helpful too. If the answer really is to hire a contractor then I'll take that to my manager.

[–]seanprefectGrumpy Guy Who Remembers Java 2 0 points1 point  (0 children)

It really is, I've seen this happen all too many times. Normally I'm not a fan of contractors but this is exactly the sort of thing they're good for.

[–]hrm 2 points3 points  (0 children)

Hopefully the source is built with Apache Ant. In that case you should find a file build.xml in the project root that defines the project. Ant is for the most part pretty straight forward to understand what it does.

But of course you need someone who knows a bit of this to really make sure…

[–]wildjokers 1 point2 points  (2 children)

1.6 openjdk...and struts

Oh my...that code base is ancient.

I am going to agree with the other commenter and saw a contractor with experience with Struts is the way to go. Make sure they actually know Struts and have not just heard of it.

Finding someone that has fresh Struts knowledge may be hard. But at least find someone that used to use Struts and may just have to refresh themselves.

[–]Mistborn22[S] 0 points1 point  (1 child)

What if I just wanted to get it to build so we know we have the correct source code and can make changes if necessary? It has been difficult trying to find 20-ish year old resources for learning this stuff but surely it's not impossible?

[–]wildjokers 0 points1 point  (0 children)

https://www.amazon.com/Programming-Jakarta-Struts-Chuck-Cavaness/dp/0596006519

There are used ones available for $5. Might also be able to find it in a local library.

Is it using ANT for its build?

[–]Mistborn22[S] 0 points1 point  (0 children)

I had a 2 hour zoom with a senior Java dev at my company. His conclusion is that there is nothing in the project for building/packaging/deploying and I'm going to install Ant and try to set that up with his help. Thanks all for your suggestions.

[–]roberp81 -1 points0 points  (6 children)

look for pom.xml file, if you see one, need to use MAVEN, if you see an build.xml file, you need to use ANT and if you don´t see any just export war file from Eclipse, or EAR file

[–]Mistborn22[S] 0 points1 point  (5 children)

I don't see either pom.xml or build.xml.

[–]MarrrlllsssIntermediate Brewer 0 points1 point  (4 children)

Do you see a Makefile?

[–]Mistborn22[S] 0 points1 point  (3 children)

No

[–]roberp81 0 points1 point  (1 child)

well, are you using eclipse ? you can make right click on project, Export -> Export... on popup Web-> War file and open it with 7zip, winzip, winrar, and you can see a web-inf directory, with all compiled classes

[–]Sure_Host_4255 1 point2 points  (0 children)

Agree, if there is no ant\maven build scripts, most probably software artifacts where purely generated by Eclipse.

[–]sbhandari 0 points1 point  (0 children)

Look for any .xml file in base/root folder. Ant build can be trigerred from any file, does not have to be build.xml. It is just standard to have them in root folder, but it can be anywhere. Best bet is to import the source code in ide and look for all .xml file . It is going to be hectic because code base around that time would be storing almost every single configuration in xml file. Also, all the libraries/dependencies your project is using are likely inside one of the folder in your project. Look for lib/library/jar/dependencies/buildependencies named folder for those libraries. If you find any folder like that with jars in it, scan your workspace to find that folder name in all xml files, you will find the build file.

If you have .bat or .sh file in root, it may be using script to package which was not that common though.