English 中文(简体)
动态地将Java方案中的Jar案卷装入
原标题:Dynamically loading jar file into Java program

Im从事桌面应用。 I m利用JFC/Swing建立申请。

现在,我想通过改变一些杰尔档案,而不是再次安装整个申请,来建立可以升级的申请。

我 some着一些基本步骤。 我想从各种杰尔档案中添加<条码>JMenu,因此,我积极地增加了这些杰尔档案。 现在我的问题是,我想履行一些职能,如在主要类别中添加<条码>JInternalFrame,该类别中包含整个杰尔档案。 我无法做到这一点。

请帮助我处理这一问题,并建议任何可能的想法。

问题回答

Now i want to build application that can be upgradable by changing some jar files, instead of installing entire application again.

Java Webstart。

Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers one click installation for platforms that support Java.

JWS提供了许多吸引力的特征,包括但不限于:闪电屏幕、桌面整合、档案协会、automatic Update(包括 la下载和对更新内容的方案控制)、分门别类、按平台、结构或 Java版本分列的其他资源下载、实时环境配置(最低J2SE版本、实用选择、RAM等)、利用推广对共同资源的轻松管理。

you can do it easily using URLClassLoader, you can see s simple example here: http://snippets.dzone.com/posts/show/3574





相关问题
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 ...

热门标签