Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on OSX Big Sur #6

Open
dosman33 opened this issue Oct 14, 2021 · 0 comments
Open

Build fails on OSX Big Sur #6

dosman33 opened this issue Oct 14, 2021 · 0 comments

Comments

@dosman33
Copy link

Greetings,

As the subject says, Jreepad 1.7rc1 fails to build on Big Sur 11.6 with apache-ant-1.9.16.


hostname:jreepad-master username$ ant
Buildfile: /Users/username/Downloads/jreepad-master/build.xml

clean:
[delete] Deleting directory /Users/username/Downloads/jreepad-master/build
[delete] Deleting directory /Users/username/Downloads/jreepad-master/dist

init:
[mkdir] Created dir: /Users/username/Downloads/jreepad-master/build
[mkdir] Created dir: /Users/username/Downloads/jreepad-master/build/jreepad/lang
[mkdir] Created dir: /Users/username/Downloads/jreepad-master/dist
[mkdir] Created dir: /Users/username/Downloads/jreepad-master/dist/lib
[mkdir] Created dir: /Users/username/Downloads/jreepad-master/dist/Jreepad-1.7rc1-OSX

compile:
[javac] /Users/username/Downloads/jreepad-master/build.xml:62: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 37 source files to /Users/username/Downloads/jreepad-master/build
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 3 files to /Users/username/Downloads/jreepad-master/build/jreepad/lang
[copy] Copying 13 files to /Users/username/Downloads/jreepad-master/build/images

jar:
[jar] Building jar: /Users/username/Downloads/jreepad-master/dist/Jreepad-1.7rc1.jar
[copy] Copying 4 files to /Users/username/Downloads/jreepad-master/dist/lib

dist:
[jarbundler] Creating application bundle: /Users/username/Downloads/jreepad-master/dist/Jreepad-1.7rc1-OSX/Jreepad.app

BUILD FAILED
/Users/username/Downloads/jreepad-master/build.xml:107: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
at net.sourceforge.jarbundler.PropertyListWriter.writeFile(Unknown Source)
at net.sourceforge.jarbundler.JarBundler.writeInfoPlist(Unknown Source)
at net.sourceforge.jarbundler.JarBundler.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:352)
at org.apache.tools.ant.Target.execute(Target.java:437)
at org.apache.tools.ant.Target.performTasks(Target.java:458)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1406)
at org.apache.tools.ant.Project.executeTarget(Project.java:1377)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1261)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.lang.ClassNotFoundException: org.apache.xml.serialize.OutputFormat
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1386)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1335)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1090)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 19 more

Total time: 2 seconds


Caused by: java.lang.ClassNotFoundException: org.apache.xml.serialize.OutputFormat

I spent some time attempting to stuff xercesImpl-2.8.1.jar into the .classpath and ./lib directory to no avail. I'm not a dev though so I'm probably doing something wrong. I can usually bang pieces of code together until they sort of run though.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant