Ubuntu上跑apache ant 出現錯誤 - Linux
By Annie
at 2013-07-04T17:49
at 2013-07-04T17:49
Table of Contents
大家好, 本身還是Linux新手
使用的是Ubuntu12.10
最近在安裝一套軟體的時候出了一點錯誤
我找了好久都找不到問題出現在那裏
還煩請各位高手幫我解決!!
================以下正文=========
我現在再裝一個execution monitor
他需要JDK跟Apache ant才能安裝
所以我安裝了JDK1.7.0 還有ant1.9.1
問題出在於我打ant build的時候出現了這些錯誤
/home/sugarfree/桌面/sctg_2013_01_23/sources/execution_monitor/build.xml:153:
java.lang.ClassCastException: com.sun.codemodel.JCodeModel$JReferencedClass
cannot be cast to java.lang.Comparable
at java.util.TreeMap.compare(TreeMap.java:1188)
at java.util.TreeMap.put(TreeMap.java:531)
at java.util.TreeSet.add(TreeSet.java:255)
at com.sun.codemodel.JMethod._throws(JMethod.java:104)
at com.sun.codemodel.JMethod._throws(JMethod.java:109)
at
com.sun.tools.xjc.generator.ObjectFactoryGenerator.<init>(ObjectFactoryGenerator.java:191)
at com.sun.tools.xjc.generator.PackageContext.<init>(PackageContext.java:68)
at
com.sun.tools.xjc.generator.SkeletonGenerator.<init>(SkeletonGenerator.java:143)
at
com.sun.tools.xjc.generator.SkeletonGenerator.generate(SkeletonGenerator.java:108)
at com.sun.tools.xjc.Driver.generateCode(Driver.java:366)
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:336)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
make: *** [execution_monitor] Error 1
這看起來像是JDK的某個部分沒有被找到
不過我已經有設定JAVA_HOME,PATH也有指到JDK下的bin資料夾
連CLASSPATH都設定到JDK下的tools.jar及dt.jar
結果還是失敗....這問題真的困擾我好久!!!
感覺我再找不出來就要被老師砍頭了>口<
不知道各位版上高手有什麼解法呢....
有問題也請發問!!
--
如果有緣,轉了地球一圈我們還會相遇的。
--
使用的是Ubuntu12.10
最近在安裝一套軟體的時候出了一點錯誤
我找了好久都找不到問題出現在那裏
還煩請各位高手幫我解決!!
================以下正文=========
我現在再裝一個execution monitor
他需要JDK跟Apache ant才能安裝
所以我安裝了JDK1.7.0 還有ant1.9.1
問題出在於我打ant build的時候出現了這些錯誤
/home/sugarfree/桌面/sctg_2013_01_23/sources/execution_monitor/build.xml:153:
java.lang.ClassCastException: com.sun.codemodel.JCodeModel$JReferencedClass
cannot be cast to java.lang.Comparable
at java.util.TreeMap.compare(TreeMap.java:1188)
at java.util.TreeMap.put(TreeMap.java:531)
at java.util.TreeSet.add(TreeSet.java:255)
at com.sun.codemodel.JMethod._throws(JMethod.java:104)
at com.sun.codemodel.JMethod._throws(JMethod.java:109)
at
com.sun.tools.xjc.generator.ObjectFactoryGenerator.<init>(ObjectFactoryGenerator.java:191)
at com.sun.tools.xjc.generator.PackageContext.<init>(PackageContext.java:68)
at
com.sun.tools.xjc.generator.SkeletonGenerator.<init>(SkeletonGenerator.java:143)
at
com.sun.tools.xjc.generator.SkeletonGenerator.generate(SkeletonGenerator.java:108)
at com.sun.tools.xjc.Driver.generateCode(Driver.java:366)
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:336)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
make: *** [execution_monitor] Error 1
這看起來像是JDK的某個部分沒有被找到
不過我已經有設定JAVA_HOME,PATH也有指到JDK下的bin資料夾
連CLASSPATH都設定到JDK下的tools.jar及dt.jar
結果還是失敗....這問題真的困擾我好久!!!
感覺我再找不出來就要被老師砍頭了>口<
不知道各位版上高手有什麼解法呢....
有問題也請發問!!
--
如果有緣,轉了地球一圈我們還會相遇的。
--
Tags:
Linux
All Comments
By Jessica
at 2013-07-08T13:49
at 2013-07-08T13:49
By Carol
at 2013-07-09T09:59
at 2013-07-09T09:59
By Ula
at 2013-07-13T02:42
at 2013-07-13T02:42
By Adele
at 2013-07-17T20:56
at 2013-07-17T20:56
By Edith
at 2013-07-22T20:03
at 2013-07-22T20:03
By Sandy
at 2013-07-24T05:11
at 2013-07-24T05:11
By Tracy
at 2013-07-28T03:30
at 2013-07-28T03:30
By Franklin
at 2013-07-30T14:48
at 2013-07-30T14:48
Related Posts
Linux mail指令問題
By Zenobia
at 2013-07-04T17:37
at 2013-07-04T17:37
dd備份記憶卡
By Jacob
at 2013-07-04T17:32
at 2013-07-04T17:32
CentOS 6 DNS_UDP 流量異常
By Madame
at 2013-07-04T12:04
at 2013-07-04T12:04
pps影片衝突?
By Christine
at 2013-07-03T22:26
at 2013-07-03T22:26
自由軟體之父Stallman拒絕使用手機
By Necoo
at 2013-07-03T22:05
at 2013-07-03T22:05