#need help recompiling java app

41 messages · Page 1 of 1 (latest)

tidal coveBOT
#

This post has been reserved for your question.

Hey @proper otter! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

proper otter
#

source is not available and I didn't write the app

tidal coveBOT
#
103ms
#

<@&765578700724371486>

Requested by Mr.Orange#1159
steel hollow
#

You want to compile something you don't have the source of. Right

proper otter
#

ya decompiled with jd

#

and need to compile again

#

the app is a big mess

#

very old

#

runs on proxmox ubuntu vm and accessing by vpn for the moment

#

and having dev installs locally to try/test

#

i recv'd a raw image of this machine from the dev

steel hollow
#

Decompiling doesn't work. It's a best attempt at describing what the bytecode does

proper otter
#

MailSrvlet.java:3: error: package de.xyz.dbaccess does not exist

#

sure jd-gui decompiled

#

i have a java file from the class

#

cant i just patch the class files directly?

#

how to define classpath for javac to find the stuff missing

#

i have a WEB-INF/classes/de/xyz folder

#

under jetty/webapps

steel hollow
proper otter
proper otter
#

never compiled this one

proper otter
steel hollow
#

Just an absence of interest in making it work, I guess. Decompiling is useless unless you want to make modifications, and anyone who uses a decompiler and wants actual source from it would have no problem fixing everything that needs fixing alongside the modifications

proper otter
#

49 errors first, now just 22 errors

#

i added one path

#

error: package javax.servlet does not exist

#

now to find this one...

#

yeah i need mods because its another install

#

need to mod hard coded stuff...

#

error: package org.apache.velocity does not exist

#

javac -classpath /var/somedb/jetty/webapps/somedb/WEB-INF/classes MailSrvlet.java

#

gives just 22 errors out of 49 in the beginning

#

i need to mod the outgoing mail smtp and text/rcpt in mail, two class files

#

19 errors

#

still got this:
error: package javax.servlet does not exist

tidal coveBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.