首页
\
问答
\
我如何为在Java上编写的程序创建可执行文件?(how can I create executable file for the program written on Java?)
我如何为在Java上编写的程序创建可执行文件?(how can I create executable file for the program written on Java?)
大家好,我如何才能在Eclipse Helios上为Java编写的程序创建可执行文件? 我的意思是创建一个小图标,以便能够通过双击它的图标启动程序,在此先感谢我编辑的意思是Windows的可执行文件
everyone, how can I create executable file for the program written on Java in Eclipse Helios? I mean to create small icon to be able start program only by double-clicking on its icon, thanks in advance edited I mean executable for Windows
原文:https://stackoverflow.com/questions/4765371
更新时间:2021-09-27 17:09
最满意答案
是的,如果你知道,可以访问课程......
下面是一个如何按名称运行方法的示例(让selectedClass成为其所在的类):
Method theMethod = selectedClass.getClass().getMethod("methodName", null); theMethod.invoke(selectedClass, null);
Yeah, if you know, and can access the class...
Here is an example of how to run a method by name (Let selectedClass be the class in which its located):
Method theMethod = selectedClass.getClass().getMethod("methodName", null); theMethod.invoke(selectedClass, null);
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
puzzleArray的初始化puzzleArray : private char [][] puzzleArray = new char[numRows][numRows]; 在构造函数之前,当numRows为零时,调用puzzleArray.length == 0 。 只需移动puzzleArray = new char[numRows][numRows]; 到构造函数。 The initializer for puzzleArray: private char [][] puzzleArray = ...
-
如何将String转换为2D char数组JAVA [关闭](How to convert a String to a 2D char array JAVA [closed])[2022-02-17]
您需要另一个String偏移量的计数器 int offset = 0; for (int i=0; i < row; i++) { for (int j=0; j < column; j++) { boardArray[i][j] = startConfig.charAt(offset++); System.out.println(boardArray[i][j]); } } 或者根据Tim的优秀答案,偏移量可以计算为j + i*column 为输出匹配尝试 ... -
String [] [] addressData - 这只是声明,你必须创建实际对象String [] [] addressData = new String [size] [size]; 顺便说一下,java中没有2d数组[] []是一个字符串数组的数组 String[][] addressData - this is just declaration, you have to create actual object String[][] addressData = new String[size][s ...
-
是的,如果你知道,可以访问课程...... 下面是一个如何按名称运行方法的示例(让selectedClass成为其所在的类): Method theMethod = selectedClass.getClass().getMethod("methodName", null); theMethod.invoke(selectedClass, null); Yeah, if you know, and can access the class... Here is an example of how to r ...
-
尝试这个: ((NumberPanel)numberGrid[1][1]).isClicked(true); 或者使用NumberPanel作为数组的静态类: private NumberPanel[][] numberGrid; Try this: ((NumberPanel)numberGrid[1][1]).isClicked(true); Or use NumberPanel as the static class of the array: private NumberPanel[][] n ...
-
我认为你需要的只是: newArray[i][j] = a[i-1][j-1]; // or perhaps a[j-1][i-1] if you want the transpose 您需要调整索引,因为newArray在索引0处有一个额外的行和列。 I think all you need is: newArray[i][j] = a[i-1][j-1]; // or perhaps a[j-1][i-1] if you want the transpose You need to adjust t ...
-
C# - 2D数组字符串数组(C# - 2D Array of String Arrays)[2022-06-23]
在数组初始化之后放置Map初始化。 在Map的初始化期间,A1,A2,B1,B2等于null。 语法非常好。 这按预期工作: public static string[] A1 = new string[] { (" level data 1"), (" level data 2"), }; public static string[] A2 = new string[] { ... -
返回2D数组(Return 2D Array)[2022-11-06]
您的代码有两个问题: (1) drawBox方法签名的返回类型应该是2d数组,即String[][] ,你当前的方法签名只能返回单维数组 (2) return语句应该像return arrayBox (不需要再次指定变量类型) public String[][] drawBox(int boxLength) { String[][] arrayBox = new String[boxLength][boxLength+1]; //method stuff return arrayBo ...