Opened 13 years ago

Closed 13 years ago

#108 closed defect (fixed)

add google guava jar to build path

Reported by: Kevin Milner Owned by: Kevin Milner
Priority: major Milestone: OpenSHA 1.1
Component: build-process Version: 1.0.x
Keywords: HazardCurveServer Cc:

Description

Application: HazardCurveServer?
Version: 1.0.2
Steps to reproduce: Calculate a hazard curve
Other info: the guava jar needs to be added to the builds for the applications

Excpetion:

java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
	at org.opensha.commons.geo.Region.distanceToLocation(Region.java:473)
	at org.opensha.sha.earthquake.rupForecastImpl.FloatingPoissonFaultSource.getMinDistance(FloatingPoissonFaultSource.java:389)
	at org.opensha.sha.calc.HazardCurveCalculator.getHazardCurve(HazardCurveCalculator.java:298)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.handleForecastList(HazardCurveServerModeApplication.java:1682)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.computeHazardCurve(HazardCurveServerModeApplication.java:1336)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.run(HazardCurveServerModeApplication.java:943)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:332)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 7 more

Change History (1)

comment:1 Changed 13 years ago by Kevin Milner

Resolution: fixed
Status: newclosed

done in [7295]. Unfortunately, this increased the size of our apps by 1.1 MB, but it probably has a lot of useful and well-tested code we could reuse.

Note: See TracTickets for help on using tickets.