小编bou*_*tta的帖子

如何确保最新版本的JAR与JNLP应用程序一起使用?

我有一个桌面应用程序,我想使用JAVA Web start启动该应用程序.当我第一次使用浏览器启动它时它工作正常,它将下载资源中定义的所有jar .下次我使用JNLP或浏览器运行它时,它不会下载任何jar.使用的罐子来自缓存或其他地方,我不知道......

我希望每次启动我的应用程序时都会下载资源中定义的所有jar

我的jnlp文件包含:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
    <information>
        <title>example</title>
        <vendor>example</vendor>
    </information>
    <resources>
        <!-- Application Resources -->
        <j2se version="1.5+"
              href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="application.jar" main="true" />
        <jar href="lib/app.jar" />             
    </resources>
    <application-desc main-class="com.application.entry">
  </application-desc>
   <update check="background"/>
   <security>
     <all-permissions/>
   </security>
</jnlp>
Run Code Online (Sandbox Code Playgroud)

java jnlp java-web-start

3
推荐指数
1
解决办法
7151
查看次数

Git Local Change历史位置在硬盘上

我是Git的新手.我正在使用Git Extension,我想问一下,如果我做了一些更改并在本地提交但是还没推送它.我的本地历史存储在哪里??? 我有从服务器克隆存储库的目录.这是我的本地提交历史存储的位置还是存储在C盘中的任何位置?

git

3
推荐指数
1
解决办法
3699
查看次数

如何从Oracle中的链表中获取第一个元素?

我的Oracle-DB中有一个表,如下所示:

?????????????????????????????????????
? ID ? Predecessor_id ? Information ?
?????????????????????????????????????
? 1  ?     NULL       ?    foo      ?
? 2  ?     1          ?    bar      ?
? 3  ?     2          ?    muh      ?
? 4  ?     NULL       ?    what     ?
? 5  ?     4          ?    ever     ?
?????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)

我需要一个返回类似这样的东西:

??????????????????????????????????????????????????????????
? ID ? Predecessor_id ? First_list_element ? Information ?
??????????????????????????????????????????????????????????
? 1  ?     NULL       ?         1          ?    foo      ?
? 2  ?     1          ?         1          ?    bar      ?
? 3  ?     2 …
Run Code Online (Sandbox Code Playgroud)

sql oracle oracle11g

3
推荐指数
1
解决办法
640
查看次数

如何在DataGridTextColumn上使用MultiBinding?

我有2个属性HeightWidth我的ImageDimension对象,我想将它们绑定在一起所以它显示像50x60(中间的斧头字符)?我怎样才能做到这一点?下面的代码给我一个错误说

"对象引用未设置为对象实例."

<cst:CustomDataGrid x:Name="grdImageDimension"  
                    ItemsSource="{Binding ImageDimensions, IsAsync=True}"  
   <DataGridTextColumn Header="ImageDimension" Width="50">
      <DataGridTextColumn.Binding>
         <MultiBinding StringFormat="{}{0} + {1}">
            <Binding Path="ImageDimensions.Height" />
            <Binding Path="ImageDimensions.Width" />                              
         </MultiBinding>
      </DataGridTextColumn.Binding>
   </DataGridTextColumn>
</cst:CustomDataGrid>
Run Code Online (Sandbox Code Playgroud)

视图模型:

Public Class ImageDimensionsVM

    Private m_ImageDimensions As ObservableCollection(Of ImageDimension)
    Public Property ImageDimensions() As ObservableCollection(Of ImageDimension)
        Get
            Return m_ImageDimensions
        End Get
        Set(value As ObservableCollection(Of ImageDimension))
            m_ImageDimensions = value
        End Set
    End Property
Run Code Online (Sandbox Code Playgroud)

c# data-binding wpf xaml

2
推荐指数
1
解决办法
7446
查看次数

使用嵌套for循环

我的规格如下:

编写一个程序,打印出两个加起来为7的数字的所有排列.提示:你可以使用两个嵌套的for循环.

我这样做但我知道这不对.我应该输入什么号码?

public class NestedFor {

  public static void main(String[] args) {

    for(int i=1; i<=3; i++) {
      for(int j=1; j<=i; j++) {
            System.out.println(i+ "   " +j);
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

java loops for-loop nested-loops

-7
推荐指数
1
解决办法
333
查看次数

标签 统计

java ×2

c# ×1

data-binding ×1

for-loop ×1

git ×1

java-web-start ×1

jnlp ×1

loops ×1

nested-loops ×1

oracle ×1

oracle11g ×1

sql ×1

wpf ×1

xaml ×1