当前位置:首页 » 编程软件 » java编译idl

java编译idl

发布时间: 2023-08-15 16:28:31

java中计算两个时间相差多少分钟

java中计算两个时间相差多少分钟,具体代码如下:

public static String getDatePoor(Date endDate, Date nowDate) {

long nd = 1000 * 24 * 60 * 60;

long nh = 1000 * 60 * 60;

long nm = 1000 * 60;

// long ns = 1000;

// 获得两个时间的毫秒时间差异

long diff = endDate.getTime() - nowDate.getTime();

// 计算差多少天

long day = diff / nd;

// 计算差多少小时

long hour = diff % nd / nh;

// 计算差多少分钟

long min = diff % nd % nh / nm;

// 计算差多少秒//输出结果

// long sec = diff % nd % nh % nm / ns;

return day + "天" + hour + "小时" + min + "分钟";

}

data默认有toString()

输出格林威治时间,比如说Date date = new Date();

String toStr = date.toString();

(1)java编译idl扩展阅读

Java语言的优良特性使得Java应用具有无比的健壮性和可靠性,这也减少了应用系统的维护费用。Java对对象技术的全面支持和Java平台内嵌的API能缩短应用系统的开发时间并降低成本。

Java的编译一次,到处可运行的特性使得它能够提供一个随处可用的开放结构和在多平台之间传递信息的低成本方式。特别是Java企业应用编程接口(Java Enterprise APIs)为企业计算及电子商务应用系统提供了有关技术和丰富的类库。

1、JDBC(Java Database Connectivity)提供连接各种关系数据库的统一接口。

2、EJB(Enterprise JavaBeans)使得开发者方便地创建、部署和管理跨平台的基于组件的企业应用。

3、Java RMI(Java Remote Method Invocation)用来开发分布式Java应用程序。一个Java对象的方法能被远程Java虚拟机调用。这样,远程方法激活可以发生在对等的两端,也可以发生在客户端和服务器之间,只要双方的应用程序都是用Java写的。

4、Java IDL(Java Interface Definition Language) 提供与CORBA(Common Object Request Broker Architecture)的无逢的互操作性。这使得Java能集成异构的商务信息资冲档拆源。

5、JNDI(Java Naming and Directory Interface)提供从Java平台到的统一的无逢的连接。这个接口屏蔽了企业网络所使用的各种命名和目录服务。

6、JMAPI(Java Management API)为异构网络上系统、网络蠢拦和服务管理的开发提供一整套丰富的对象和方法。

7、JMS(Java Message Service)提供企业消息服务,如可靠的消息队列、发布和订阅通信、以及有关推拉(Push/Pull)技术的各个方面。

8、JTS(Java transaction Service)提供存取事务处理资源的开放标准,这些事散枣务处理资源包括事务处理应用程序、事务处理管理及监控。

⑵ IDL文件在编译时总是显示文件不存在 求高手帮帮忙 还有就是想问一下批处理文件如何新建

你没有保存这个文件,或者这个文件没有放在相应的目录下吧。如果是这样的话,一般在编译前先编译一下你用到的自己的程序,.r或.run空格程序名(带.pro)就可以了。如果不想每次都.r,你可以把你的程序都拷贝到idl安装目录下的lib文件夹(可以新建子文件夹)

⑶ Java 中的IDL是什么啊

Java IDL(Interface Definition Language,接口定义语言)为 JavaTM 平台添加了 CORBA(Common Object Request Broker Architecture,公用对象请求代理体系结构)功能,从而可提供基于标准的互操作性和连接性。Java IDL 使分布式、支持 Web 的 Java 应用程序可利用 Object Management Group 定义的行业标准 OMG IDL(Object Management Group Interface Definition Language,对象管理组接口定义语言)及 IIOP(Internet Inter-ORB Protocol,Internet对象请求代理间协议)来透明地调用远程网络服务。运行时组件包括一个全兼容的 Java ORB,用于通过 IIOP 通讯进行分布式计算。要使用 Java IDL,用户必须具有 idltojava 编译器。

⑷ IDL语言的用途

由于其强大的功能和独特的特点,IDL语言可以应用于任何领域的三维数据可视化、数
值计算、三维图形建模、科学数据读取等功能中。
概括说来,在地球科学(包括历雀气象、水文、海洋、土壤、地质、地下水等)、医学影
像、图像谈和处理、GIS系统、软件开发,大学教学,实验室,测试技术,天文,航空航天、信
号处理,防御工程,数学统计及分析,环境工程等很肢侍早多领域,IDL语言都可以得到广泛而又
深远的应用。

⑸ java是什么语言

JAVA语言,就是属于混合型语言,这是属于解释型语言和编译型语言之间的一种语言。学习一门高级程序语言,很多人都推荐JAVA。JAVA能让你学习到一门高级程序语言的方方面面,但又不会造成学习曲线过于陡峭

Java语言是一个支持网络计算的面向对象程序设计语言。Java语言吸收了Smalltalk语言和C++语言的优点,并增加了其它特性,如支持并发程序设计、网络通信、和多媒体数据控制等。主要特性如下:
1) Java语言是简单的。Java语言的语法与C语言和C++语言很接近,使得大多数程序员很容易学习和使用Java。另一方面,Java丢弃了C++ 中很少使用的、很难理解的、令人迷惑的那些特性,如操作符重载、多继承、自动的强制类型转换。特别地,Java语言不使用指针,并提供了自动的废料收集,使得程序员不必为内存管理而担忧。
2) Java语言是一个面向对象的。Java语言提供类、接口和继承等原语,为了简单起见,只支持类之间的单继承,但支持接口之间的多继承,并支持类与接口之间的实现机制(关键字为implements)。Java语言全面支持动态绑定,而C++ 语言只对虚函数使用动态绑定。总之,Java语言是一个纯的面向对象程序设计语言。
3) Java语言是分布式的。Java语言支持Internet应用的开发,在基本的Java应用编程接口中有一个网络应用编程接口(java.net),它提供了用于网络应用编程的类库,包括URL、URLConnection、Socket、 ServerSocket等。Java的RMI(远程方法激活)机制也是开发分布式应用的重要手段。
4) Java语言是健壮的。Java的强类型机制、异常处理、废料的自动收集等是Java程序健壮性的重要保证。对指针的丢弃是Java的明智选择。Java的安全检查机制使得Java更具健壮性。
5) Java语言是安全的。Java通常被用在网络环境中,为此,Java提供了一个安全机制以防恶意代码的攻击。除了Java语言具有的许多安全特性以外,Java对通过网络下载的类具有一个安全防范机制(类ClassLoader),如分配不同的名字空间以防替代本地的同名类、字节代码检查,并提供安全管理机制(类SecurityManager)让Java应用设置安全哨兵。
6) Java语言是体系结构中立的。Java程序(后缀为java的文件)在Java平台上被编译为体系结构中立的字节码格式(后缀为class的文件), 然后可以在实现这个Java平台的任何系统中运行。这种途径适合于异构的网络环境和软件的分发。
7) Java语言是可移植的。这种可移植性来源于体系结构中立性,另外,Java还严格规定了各个基本数据类型的长度。Java系统本身也具有很强的可移植性,Java编译器是用Java实现的,Java的运行环境是用ANSI C实现的。
8) Java语言是解释型的。如前所述,Java程序在Java平台上被编译为字节码格式, 然后可以在实现这个Java平台的任何系统中运行。在运行时,Java平台中的Java解释器对这些字节码进行解释执行,执行过程中需要的类在联接阶段被载入到运行环境中。
9) Java是高性能的。与那些解释型的高级脚本语言相比,Java的确是高性能的。事实上,Java的运行速度随着JIT(Just-In-Time)编译器技术的发展越来越接近于C++。
10) Java语言是多线程的。在Java语言中,线程是一种特殊的对象,它必须由Thread类或其子(孙)类来创建。通常有两种方法来创建线程:其一,使用型构为Thread(Runnable) 的构造子将一个实现了Runnable接口的对象包装成一个线程,其二,从Thread类派生出子类并重写run方法,使用该子类创建的对象即为线程。值得注意的是Thread类已经实现了Runnable接口,因此,任何一个线程均有它的run方法,而run方法中包含了线程所要运行的代码。线程的活动由一组方法来控制。 Java语言支持多个线程的同时执行,并提供多线程之间的同步机制(关键字为synchronized)。
11) Java语言是动态的。Java语言的设计目标之一是适应于动态变化的环境。Java程序需要的类能动态地被载入到运行环境,也可以通过网络来载入所需要的类。这也有利于软件的升级。另外,Java中的类有一个运行时刻的表示,能进行运行时刻的类型检查。
Java语言的优良特性使得Java应用具有无比的健壮性和可靠性,这也减少了应用系统的维护费用。Java对对象技术的全面支持和Java平台内嵌的API能缩短应用系统的开发时间并降低成本。Java的编译一次,到处可运行的特性使得它能够提供一个随处可用的开放结构和在多平台之间传递信息的低成本方式。特别是Java企业应用编程接口(Java Enterprise APIs)为企业计算及电子商务应用系统提供了有关技术和丰富的类库。
1) JDBC(Java Database Connectivity)提供连接各种关系数据库的统一接口。
2) EJB(Enterprise JavaBeans)使得开发者方便地创建、部署和管理跨平台的基于组件的企业应用。
3) Java RMI(Java Remote Method Invocation)用来开发分布式Java应用程序。一个Java对象的方法能被远程Java虚拟机调用。这样,远程方法激活可以发生在对等的两端,也可以发生在客户端和服务器之间,只要双方的应用程序都是用Java写的。
4) Java IDL(Java Interface Definition Language) 提供与CORBA(Common Object Request Broker Architecture)的无逢的互操作性。这使得Java能集成异构的商务信息资源。
5) JNDI(Java Naming and Directory Interface)提供从Java平台到的统一的无逢的连接。这个接口屏蔽了企业网络所使用的各种命名和目录服务。
6) JMAPI(Java Management API)为异构网络上系统、网络和服务管理的开发提供一整套丰富的对象和方法。
7) JMS(Java Message Service)提供企业消息服务,如可靠的消息队列、发布和订阅通信、以及有关推拉(Push/Pull)技术的各个方面。
8) JTS(Java transaction Service)提供存取事务处理资源的开放标准,这些事务处理资源包括事务处理应用程序、事务处理管理及监控。
在Java技术中,值得关注的还有JavaBeans,它是一个开放的标准的组件体系结构,它独立于平台,但使用Java语言。一个JavaBean是一个满足JavaBeans规范的Java类,通常定义了一个现实世界的事物或概念。一个JavaBean的主要特征包括属性、方法和事件。通常,在一个支持JavaBeans规范的开发环境(如Sun Java Studio 和IBM VisualAge for Java)中,可以可视地操作JavaBean,也可以使用JavaBean构造出新的JavaBean。JavaBean的优势还在于Java带来的可移植性。现在,EJB (Enterprise JavaBeans) 将JavaBean概念扩展到Java服务端组件体系结构,这个模型支持多层的分布式对象应用。除了JavaBeans,典型的组件体系结构还有DCOM和CORBA,关于这些组件体系结构的深入讨论超出了本书的范围。

⑹ JAVA 调用 IDL Attempt to call undefined procere/function

Compiling Your Program
Before a procere or function can be executed, it must be compiled. When a system routine (a function or procere built into IDL, such as iPLOT) is called, either from the command line or from another procere, IDL already knows about this routine and compiles it automatically. When a user-defined function or procere is called, IDL must find the routine and then compile it. Compilation can be either automatic or manual, as described below.

Warning
User-written functions must be defined before they are referenced, unless they:
1) Exist in the IDL !PATH.
2) Exist in a .pro file named the same as the function.
3) Are reserved using the FORWARD_FUNCTION statement.
This restriction is necessary in order to distinguish between function calls and subscripted variable references. See About Calling and Compiling Functions for details.

Automatic Compilation
When you enter the name of an uncompiled user-defined routine at the command line or call the routine from another routine, IDL searches the current directory for filename.pro, thenfilename.sav, where filename is the name of the specified routine. If no file is found in the current directory, IDL searches each directory specified by !PATH. (For more on the IDL path, see!PATH.)
If no file matching the routine name is found, IDL issues an error:
% Attempt to call undefined procere/function: 'routine'

where routine is the name of the routine you specified.
If a file is found, IDL automatically compiles the contents of the file up to the routine whose name matches the name of the file (excluding the suffix), and then executes the routine. If the file does not contain the definition of a routine whose name matches the name of the file, IDL issues the same error as when the no file with the correct name is found.
For example, suppose a file named proc1.pro contains the following procere definitions:
PRO proc1 PRINT, 'This is proc1' END PRO proc2 PRINT, 'This is proc2' END PRO proc3 PRINT, 'This is proc3' END

If you enter proc1 at the IDL command line, only the proc1 procere will be compiled and executed. If you enter proc2 or proc3 at the command line, you will get an error informing you that you attempted to call an undefined procere.
In general, the name of the IDL program file should be the same as the name of the last routine within the file. This last routine is usually the main routine, which calls all the other routines within the IDL program file (or, in the case of object classes, the class definition). Using this convention for your IDL program files ensures that all the related routines within the file are compiled before being called by the last main routine.
Program files within the IDL distribution use this formatting style. For example, open the program file for the XLOADCT procere, xloadct.pro, in the IDL Editor. This file is in the lib/utilitiessubdirectory of the IDL distribution. This file contains several routines. The main routine (XLOADCT) is at the bottom of the file. When this file is compiled, the IDL Output Log notes all the routines within this file that are compiled:
IDL> .COMPILE XLOADCT % Compiled mole: XLCT_PSAVE. % Compiled mole: XLCT_ALERT_CALLER. % Compiled mole: XLCT_SHOW. % Compiled mole: XLCT_DRAW_CPS. % Compiled mole: XLCT_TRANSFER. % Compiled mole: XLOADCT_EVENT. % Compiled mole: XLOADCT.

Note that the main XLOADCT procere is compiled last.

Tip
When editing a program file containing multiple functions and/or proceres in the IDL Editor, you can easily move to the desired function or procere by selecting its name from the Functions/Proceres Menu. See Navigating Among Proceres and Functions for more information.

Manual Compilation
There are several ways to manually compile a procere or function.

Use the .COMPILE executive command at the IDL command line:
.COMPILE myFile

where myFile is the name of a .pro file located either in IDL's current working directory or in one of the directories specified by !PATH. All the routines included in the specified file will be compiled, but none will be executed automatically. If you are using the IDL Development Environment, the .pro file will also be opened in the IDL Editor.

If the file is open in the IDL Editor, select Run Compile or click the Compile button on the toolbar. All routines within the file will be compiled, but none will be executed automatically.

Use the .RUN or .RNEW executive command at the IDL command line:
.RUN myFile

where myFile is the name of a .pro file located either in IDL's current working directory or in one of the directories specified by !PATH. All the routines included in the specified file will be compiled, and any $MAIN$ level programs will be executed automatically. If you are using the IDL Development Environment, the .pro file will also be opened in the IDL Editor.

Use the .RUN, .RNEW, or .COMPILE executive command with no filename argument. Invoking any of these executive commands with no filename allows you to interactively create and compile a $MAIN$ level program. See Creating $MAIN$ Programs for additional details.

Note
Only .pro files can be compiled using the manual compilation mechanisms. Attempting to compile a SAVE (.sav) file using one of these mechanisms will result in an error.

In the "Hello World" example shown in Compiling Your Program, we have a user-defined procere that contains a call to a user-defined function. If you enter the name of the user-defined procere, hello_main, at the command line, IDL will compile and execute the hello_main procere. After you provide the requested input, a call to the hello_who function is made. IDL searches forhello_who.pro, and compiles and executes the function.
Compilation Errors
If an error occurs ring compilation, the error is reported in the Output Log of the IDLDE. For example, because the END statement is commented out, the following user-defined procere will result in a compilation error:
PRO procere_without_END PRINT, 'Hello World' ;END

When trying to compile this procere (after saving it into a file namedprocere_without_END.pro), you will receive the following error in the IDL Output Log:
IDL> .COMPILE procere_without_END % End of file encountered before end of program. % 1 Compilation errors in mole PROCEDURE_WITHOUT_END.

Note
Under Microsoft Windows, the IDL Editor window displays a red dot to the left of each line that contains an error.

Setting Compilation Options
The COMPILE_OPT statement allows you to give the IDL compiler information that changes some of the default rules for compiling the function or procere within which the COMPILE_OPT statement appears. The syntax of COMPILE_OPT is as follows:
COMPILE_OPT opt1 [,opt2, ..., optn]
where optn is any of the available options documented in COMPILE_OPT. These options allow you to change default values of true and false, hide routines from HELP, and reserve the use of parentheses for functions. See COMPILE_OPT for complete details.

⑺ JAVA7 32位如何下载

1、打开网络搜索Java7,选择第一项进入下载的页面:

⑻ 编译环境有哪些

问题一:java的编译环境是什么 JDK(Java Development Kit,Java开发包,Java开发工具)是一个写Java的applet和应用程序的程序开发环境。它由一个处于操作系统层之上的运行环境还有开发者编译,调试和运行用Java语言写的applet和应用程序所需的工具组成。
JDK(Java Development Kit)是Sun Microsystems针对Java开发员的产品。自从Java推出以来,JDK已经成为使用最广泛的Java SDK(Software development kit)。
JDK包含的基本组件包括:
・javac C 编译器,将源程序转成字节码
・jar C 打包工具,将相关的类文件打包成一个文件
・javadoc C 文档生成器,从源码注释中提取文档
・jdb C debugger,查错工具
JDK中还包括完整的JRE(Java Runtime Environment,Java运行环境),也被称为private runtime。包括了用于产品环境的各种库类,以及给开发员使用的补充库,如国际化的库、IDL库。
JDK中还包括各种例子程序,用以展示Java API中的各部分。
从初学者角度来看,采用JDK开发Java程序能够很快理解程序中各部分代码之间的关系,有利于理解Java面向对象的设计思想。JDK的另一个显着特点是随着Java (J2EE、J2SE以及J2ME)版本绩升级而升级。但它的缺点也是非常明显的就是从事大规模企业级Java应用开发非常困难,不能进行复杂的Java软件开发,也不利于团体协同开发。
JDK一般有三种版本:
SE(J2SE),standard edition,标准版,是我们通常用的一个版本
EE(J2EE),enterpsise edtion,企业版,使用这种JDK开发J2EE应用程序,
ME(J2ME),micro edtion,主要用于移动设备、嵌入式设备上的java应用程序

问题二:C语言的编译环境用哪个? 哪个不要脸的说TC 丢人
反而是有些垃圾用功能较强的编译工具
用TC,学会自己写函数 记住不要用中文的
那些说TC丢人的就是用的中文,英语都不懂还弄个毛编程
朋饥,我建议你坚持用TC2.0, 对新手最有帮助的!

问题三:c程序语言中的编译系统是什么?编译环境又什么什么? C语言代码是.C的文本文件。
需要用编译程序把.C文件翻译.OBJ,然后用连接程序再弄成.EXE文件。
编译程序就是那个把.C变成.OBJ的程序
编译环境就是把编译程序、连接程序以及其他一些方便程序员写程序的东西综合在
一起形成的一套系统,程序编译环境...
希望对你有帮助

问题四:C++编译软件和环境有哪些? 用DEV C++吧,我一直用这个

问题五:Renesas MCU的编译环境有哪些? 你可以登录官网查询

问题六:C++的编译器都有哪些啊?谢谢!!!! 编译器很多的:
Visual C++
GNU C++
Inter C++
Sun C++
clang
。。。。。
等等。
一般都用VC和GNU C++,其他的都是专业人士使用的。。。。
楼上的回答是复制互。。。。太NC
关于IDE,C++有很多,一些其他语言的IDE现在也支持C++了
给你介绍一些:
Visual Studio系列(目前最新版本是VS2013)
Dev C++(目前最新非官方版是Dev c++ 5.4.1)
Code Block
NetBeans
C-Free(貌似不好用)
。。。

问题七:编译程序与集成开发环境有什么不同?举例说ming 以下选自网络:
集成开发环境(IDE,Integrated Development Environment )是用于提供程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面工具。集成了代码编写功能、分析功能、编译功能、调试功能等一体化的开发软件服务套。
换句话说,编译器只是集成开发环境的一部分。
比如最常见的集成开发环境:Visual Studio(其使用的编译器是cl(貌似今年会集成clang编译器))。
除cl外,比较常见的编译器还有gcc。

问题八:C++的开发环境有哪些?哪个C++的开发环境要好一些呢? c++builder 2010 最好用了。
初学者,最好不要去学VC鸡c++并身就难学了,还要来一个VC。
还是用c++builder,入门简单,上手容易,
但你C++用熟了,再去整VC事斗功倍,不听老人言,吃亏在眼前。

问题九:什么是集成开发环境? development SDK
就是写代码,编译,链接做在一个场件中的东东
比如VB.NET ,turbo C
你知道,从前编写程序不是这样的,通常需要你在记事本中把代码写好存盘,然后以这个文件为参数,运行编译程序,链接程序,最后才能生成可执行的机器代码

热点内容
背算法好处 发布:2025-03-18 01:02:18 浏览:55
win7添加删除在哪个文件夹 发布:2025-03-18 01:02:13 浏览:703
苹果写源码 发布:2025-03-18 00:50:47 浏览:361
生存源码 发布:2025-03-18 00:50:46 浏览:349
bika安卓怎么下载 发布:2025-03-18 00:43:49 浏览:217
mysql删除数据库所有表 发布:2025-03-18 00:43:41 浏览:397
加减法括号的运算法则 发布:2025-03-18 00:35:44 浏览:553
怎么修改手机配置 发布:2025-03-18 00:34:51 浏览:750
安卓应用名称怎么修改 发布:2025-03-18 00:30:46 浏览:662
android默认桌面 发布:2025-03-18 00:29:59 浏览:872