[kepler-dev] Using GUI with kepler.jar
Chad Berkley
berkley at nceas.ucsb.edu
Tue May 5 10:46:19 PDT 2009
What are you jarring up? All of kepler? That isn't necessary. All you
need in the jar is the bootstrapper classes in build-area/src. The
classpath for everything else will be built automatically as long as you
have it all compiled. The Main-Class attribute should be
org.kepler.core.loader.Loader. I can send you the jar file if you want.
chad
tkd wrote:
> Hi,
>
> I can't check the new version now, so I have to use this other solution.
>
>
> Strange :
>
> - if I create the jar by the command : jar cvf kepler.jar kepler, I
> obtain this msg :
>
> java -jar kepler.jar
>
> Failed to load Main-Class manifest attribute from kepler.jar
>
> and the manifest file contains ... nothing :
> Manifest-Version: 1.0
> Created-By: 1.5.0_18 (Sun Microsystems Inc.)
>
> - if I create the jar file with eclipse (runnable jar file //
> module-manager), I obtain this error msg : seems that the tools.jar is
> missing ? but he's in my classpath, and zith the option -cp I obtain the
> same msg ...
>
> java -jar kepler.jar
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/kepler/core/loader/Loader
> [odrousse at symbiose7 BioWIC]$ java -jar kepler.jar
> java.io.FileNotFoundException: /local/odrousse/build-area/modules.txt
> (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(Unknown Source)
> at java.io.FileReader.<init>(Unknown Source)
> at
> org.kepler.core.ant.common.ModulesTxtReader.readModules(ModulesTxtReader.java:64)
>
> at
> org.kepler.core.loader.ModulesManager.constructModules(ModulesManager.java:22)
>
> at
> org.kepler.core.loader.SystemPropertyLoader.load(SystemPropertyLoader.java:18)
>
> at org.kepler.core.loader.Loader.main(Loader.java:60)
> java.lang.NullPointerException
> at java.util.ArrayList.<init>(Unknown Source)
> at
> org.kepler.core.loader.ModulesManager.constructModules(ModulesManager.java:23)
>
> at
> org.kepler.core.loader.SystemPropertyLoader.load(SystemPropertyLoader.java:18)
>
> at org.kepler.core.loader.Loader.main(Loader.java:60)
> Unable to start application.
> java.lang.ExceptionInInitializerError
> at org.ecoinformatics.util.Config.<clinit>(Config.java:84)
> at org.kepler.gui.KeplerApplication.main(KeplerApplication.java:80)
> at org.kepler.loader.Kepler.main(Kepler.java:117)
> at org.kepler.core.loader.Loader.main(Loader.java:95)
> Caused by: java.io.FileNotFoundException: Failed to find config.xml in
> the classpath: kepler.jar
> at org.ecoinformatics.util.Config.<init>(Config.java:124)
> at org.ecoinformatics.util.Config.<clinit>(Config.java:82)
>
>
>
> tkd
>
>
>
> Chad Berkley wrote:
>> Hi tkd,
>>
>> If you run 'ant startupScript' a kepler.jar will be created along with
>> a .bat and .sh script that can execute it. You can, of course, also
>> just execute the jar with java -jar. Make sure you update your
>> build-area since I've been actively changing this in the last couple
>> days (including this morning).
>>
>> chad
>>
>>
>> tkd wrote:
>>> Hi,
>>>
>>> I created a kepler.jar (jar -cvf kepler.jar), like in the ppod
>>> project. Now I would like to execute the gui from Kepler. How can I
>>> do this please ?
>>>
>>> Thanks in advance
>>>
>>> tkd
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at kepler-project.org
>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>
More information about the Kepler-dev
mailing list