English 中文(简体)
1. 作出可起诉的衰败 衣着
原标题:Making an executable jar that evals Clojure strings

I m Building a Java app thatloads 衣物档案。 我会遇到麻烦,造成单一可起诉的jar。 Im 使用了I-Jar,但在我试图管理杰尔案时,我例外:

Exception in thread "main" java.lang.reflect.InvocationTargetException
    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:616)
    at com.simontuffs.onejar.Boot.run(Boot.java:340)
    at com.simontuffs.onejar.Boot.main(Boot.java:166)
Caused by: java.lang.ExceptionInInitializerError
    at com.ziroby.clojure.App.main(App.java:14)
    ... 6 more
Caused by: java.lang.NullPointerException
    at clojure.lang.RT.lastModified(RT.java:374)
    at clojure.lang.RT.load(RT.java:408)
    at clojure.lang.RT.load(RT.java:398)
    at clojure.lang.RT.doInit(RT.java:434)
    at clojure.lang.RT.<clinit>(RT.java:316)
... 7 more

当我看一下造成这种情况的界线时,似乎试图获得相对阶级档案的jar信息:

    return ((JarURLConnection) url.openConnection()).getJarFile()
           .getEntry(libfile).getTime();

我认为这意味着,它试图为一种嵌入式的jar获得稀缺的信息,而这种信息实际上存在于档案系统中。 它研究一下,看看它是否需要重新编造档案(如<条码>common/分数.clj)。

我做了一些错误? 在不混淆衣物的情况下,是否还有其他一些办法可施以可诉的jar?

最佳回答

我得出这样的结论:这是对克隆的ug。 我能够添加一个单项无效支票(在<条码>前调整)。 http://dev.clojure.org/jira/browse/CLJ-971"rel=“nofollow”http://dev.clojure.org/jira/browse/CLJ-971

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签