Issue with ant build on Windows

I’m attempting to execute Jalview 2.9 on Windows that I compiled myself with Ant from Eclipse, using the “makedist” target.

I obtain the following error after a successful compile:

\Jalview\dist>java -jar jalview.jar

Java version: 1.8.0_92

amd64 Windows 10 10.0

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/log4j/Layout

at jalview.bin.Jalview.main(Jalview.java:113)

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Layout

Am I misusing the “makedist” target?

Thanks!

n Stuart

Never mind J I solved it by using the following command based on in the InstallAnywhere directory:

java -Djava.ext.dirs=JALVIEW_HOME/lib -jar JALVIEW_HOME/jalview.jar

···

From: jalview-discuss-bounces@jalview.org [mailto:jalview-discuss-bounces@jalview.org] On Behalf Of Stuart Ozer
Sent: Thursday, April 28, 2016 4:36 PM
To: jalview-discuss@jalview.org
Subject: [Jalview-discuss] Issue with ant build on Windows

I’m attempting to execute Jalview 2.9 on Windows that I compiled myself with Ant from Eclipse, using the “makedist” target.

I obtain the following error after a successful compile:

\Jalview\dist>java -jar jalview.jar

Java version: 1.8.0_92

amd64 Windows 10 10.0

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/log4j/Layout

at jalview.bin.Jalview.main(Jalview.java:113)

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Layout

Am I misusing the “makedist” target?

Thanks!

n Stuart

Hi Stuart

Never mind J I solved it by using the following command based on in
the InstallAnywhere directory:

Well done :slight_smile: There are some fragments of help in the README and doc
directory, but they include a fair amount of out of date information
that we ought to clear out.

Right now we're focused on getting our next release ready, but after
that we have plans to overhaul Jalview's build system.. and will tidy
all those docs up then.

Jim

···

On 29/04/2016 00:49, Stuart Ozer wrote: