Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

catch all AWT loading errors

  • Loading branch information...
commit 6b7f2eeadbd08c751843d9f4f1c04c580d690f76 1 parent 7bda1b3
Timothy Wall authored
Showing with 2 additions and 2 deletions.
  1. +0 −1  build.xml
  2. +2 −1  src/com/sun/jna/Platform.java
1  build.xml
View
@@ -1007,7 +1007,6 @@ osname=macos
<arg value="-Dgpg.useagent=true"/>
</artifact:mvn>
-
<!-- sign and deploy the platform artifact -->
<artifact:mvn failonerror="true">
<arg value="org.apache.maven.plugins:maven-gpg-plugin:${version-maven-gpg-plugin}:sign-and-deploy-file"/>
3  src/com/sun/jna/Platform.java
View
@@ -76,7 +76,8 @@ else if (osName.startsWith("OpenBSD")) {
Class.forName("java.awt.Component");
hasAWT = true;
}
- catch(ClassNotFoundException e) {
+ catch(Throwable t) {
+ // Don't care why
}
HAS_AWT = hasAWT;
boolean hasBuffers = false;
Please sign in to comment.
Something went wrong with that request. Please try again.