當前位置:首頁 » 編程軟體 » 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-02-04 18:03:08 瀏覽:921
商品存儲規劃 發布:2025-02-04 17:45:24 瀏覽:564
ios訪問共享 發布:2025-02-04 17:36:33 瀏覽:334
javabuild 發布:2025-02-04 17:30:19 瀏覽:591
gnulinux編譯 發布:2025-02-04 17:30:18 瀏覽:131
蘇州阿里雲伺服器專網 發布:2025-02-04 17:21:05 瀏覽:526
如何學習php 發布:2025-02-04 17:11:55 瀏覽:389
sql查詢鎖 發布:2025-02-04 17:04:00 瀏覽:396
第二代長安cs55plus買哪個配置 發布:2025-02-04 16:58:16 瀏覽:193
彩虹島用什麼電腦配置 發布:2025-02-04 16:52:22 瀏覽:649