0
我創建runner.bat推出一個Java測試 它包含:路徑的java,類路徑org.junit.runner.JUnitCore package.class 當我啓動它:啓動Java測試bycommand線
FAILURES測試運行:1,故障:1個
Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.add(Unknown Source)
at java.lang.Runtime.addShutdownHook(Unknown Source)
at com.sun.imageio.stream.StreamCloser$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.imageio.stream.StreamCloser.addToQueue(Unknown Source)
at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at com.polyspace.util.guicomponent.CompositePanel.setBufferedImage(Unknown Source)
at com.polyspace.util.guicomponent.CompositePanel.<init>(Unknown Source)
如何從Linux啓動相同的測試? 一個shell,perl腳本? – user281070 2010-02-25 14:40:38
Java代碼中是否存在特定於平臺的特定平臺,可以阻止它在Windows上運行?如果這是您的問題,您可能需要更新您的問題。 如果您只需調用Java,那麼使用與您在Windows上使用的基本命令相同的shell腳本就可以實現。 – 2010-02-25 17:45:49