JAVA NATIVE COMPILER
Hello,
Is there a compiler for compiling my JAVA program in native code for win32 and Linux(x86).(free or not)
I use SWING for the interface.
Best regards
Hi,
I am not sure of a direct compiler but you can do this in two steps.
1. Compile your Java Source into normal Java Classes using any of the normal Java Compilers.
2. Convert these Byte code files (Java Classes) into executable files.
There are a few options for doing this sort of thing...
Windows
http://www.excelsior-usa.com/jetdl.html
..more information about this can be obtained under the FAQ section...
http://www.excelsior-usa.com/jetfaq.html#id2
Another options is...
http://www.bravozulu.com/Products/JToExe/Download/download.html
with information about it at...
http://www.bravozulu.com/Products/JToExe/jtoexe.html
Unix
Not sure of any Free stanalone programs for Unix flavours but there is an alternative here...
http://www.ifrance.com/vonarnim/vainstall/
Hope this helps.
Best Regards,
Manish
Similar Messages
-
Is there a good way of compiling a Java file to a windows executable?
It must be able to support Swing and cost nothing.
Is it even worth looking for such a program?
Please help because the Google searches are driving me crazy!Java compiles to native bytecode which runs in a JVM which is a platform native executable.
Problem solved, Java compiles to native code.
Now move along. -
Native compilation of Java on Oracle9i
We are trying to use the Java native compilation tool, NCOMP, that comes with Oracle9i to improve the execution speed of our Java classes. However, for this to work you have to install a C compiler, only some of which are approved by Oracle for this purpose on a given platform. The question is which ones are approved for use with NT/2000 ! The Oracle documentation is not at all clear. The README file associated with this says that approved compilers are listed in Settings_windows_nt.properties. However this just lists settings and does not explicitly state which C compiler it's trying to use ! The settings appear to indicate that it is MS Visual C++, BUT if so which version ? Professional, Enterprise, 5.0, 6.0 ??? Is this the only approved compiler ??? No where on the entire web seems to list this info. ! Any suggestions ?
Hi,
A month ago I got a note from Metalink claiming that ONLY Microsoft Visual C/C++ is certified againts ORacle 9i for WindowsNT/2000.
FYI I managed to get it working. However the NCOMP tool and it's manual are quite beta-ish and I would not recommend NCOMP easily.
Regards,
Martijn
Email me if you need further info on how to set NCOMP up. -
Has there been any further word from Oracle on the status of making Java native compilation, or at least just in time compilation, an available option inside JServer (Aurora)?
nullIt will be in 8.1.7. For further details, see FAQ at:
http://technet.oracle.com/products/oracle8i/htdocs/jserver_faq/index.html#_64_
take care
John.
Oracle JServer Development Team -
How much can a native compiler improve performance of a java application?
Hello,
we have a customer with low-end machines who complains very much about the
starting time of an application of us. I dont't know the exact configuration
of the clients but i think the bad perfrmance is because the client has too
few memory and has to swap when the jvm starts.
Could a native compiler like Excelsior JET be a solution or would the
imporvement be only marginal?
Anyone who has experience in this topic?
Thank you in advance!Could a native compiler like Excelsior JET be a solution or would the
imporvement be only marginal?Excelsior JET only packages up the class files and a JRE into a big blob so that it looks like a single executable. It doesn't actually generate native code for your classes.
There are some limited pure-native compilers (e.g. GCJ - the GNU compiler for Java). Because you also need native-compiled libraries, and those are quite incomplete, only certain basic programs can be compiled down to native form without some major tweaking today.
As to whether it'll improve your performance or not: if your program is computationally intensive (does lots of floating-point math, or other CPU-intensive algorithms), it may improve. If it's I/O, network or database bound, you'll see very little improvement, if any. If it's graphics-bound, you may see some improvement, though the native Swing support with GCJ is limited at this time.
Even with long computationally-intensive programs, you may or may not see an improvement. If you use the server VM (java -server ...), then it does similar things behind your back (optimizing compiles), so that eventually your program speeds up a fair amount (though not to pure-native speeds). -
Does native compiling improve application performance ?
Hi,
I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes directly to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net) says that its JAR files of the application run "basically at the same speed" compared to the native compiled one for windows.
Does really compiling Java classes to native code improve performance? I'm not talking about the startup speed, but the whole application performance.
Thanks...Youve really been spreading that article aroundthis
morning, George, lol.
It was actually a really good read this morning.
Thanks for posting it.I know! just realized that's about the 3rd or 4th
time I've posted it today. just a coincidence, thoughcan't promote that book enough though. Should be required reading (just like Effective Java). -
Will native compiling improve performance?
Hi,
I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net) says that its JAR files of the application run "basically at the same speed" compared to the native compiled one for windows.
Will really compiling Java classes to native code improve performance? I'm not talking about the startup speed, I mean the whole application performance.
Thanks...depends on what the app is doing
many things in java run as fast as native code, especially if you're using a later version of java
i guess there's one way to find out :-) -
Is there a free native compiler?
Does anyone know of a free native compiler.
Excelsior (http://www.excelsior-usa.com/) recently released a free (as in beer) edition of JET.
For Linux, there's GCJ (http://gcc.gnu.org/java/). -
I have a Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, after upgrade it don´t work with UCCX 10.5
I get the error message: "Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL.; nested exception is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. (line: 1, col: 47)
Does anyone know about this ?Did you ever find a resolution to this issue? I have a similar issue after upgrading from 7 to 10.5. I have loaded all provided certificates to the tomcat-trust store, restarted Tomcat Services and still get the same error
Thanks -
Please explian what is native compilation and how to use it
hi all.
please explian what is native compilation and how to use it
regardsIt's explained well in the PL/SQL User's Guide and Reference
Compiling PL/SQL Code for Native Execution
http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/12_tune.htm#48419 -
Java application compiles java files in memory
how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).
And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.
-
PL/SQL Native Compilation - not working!
I'm at my wits end here.
Oracle 10.2.0.3 under Windows Server 2003 (i know, i know...) and a whole lot of procedural PL/SQL that I think could benefit from native compilation. I've done this on Linux/unix environments a few times but never imagined it would be quite so painful under Windows.
Ended up using Visual C++ 2003 (7.1 compiler) which compiled everything. MinGW wouldn't compile everything, lots of undefined references to _setjmp and others, but that's a different subject.
Anyway, after two days of dealing with issues, I finally get things to compile. The .dll is created. The init parameters say we're native. The test procedure is recompiled as native, and verified in dba_plsql_object_settings. As far as I am aware, native compilation is present and working. But when I run the thing.... performance is the same. Recompile as interpreted... same. Recompile as native again... same. This is demo code here, simple loop, the kind of thing that is 10x faster on my Linux environment.
Basically the behavior is as though native compilation just isn't working... the DLL isn't working. Funny thing is that it -was- working earlier with the same code... right up until I bounced the box. Now I am dead in the water with no log file, no trace, nothing... just a non-functional native compilation feature.
Any ideas? Anyone else struggle with this?
BobSELECT name, value
FROM gv$parameter
WHERE name LIKE '%code%';
Did you do this before you bounced the database?
ALTER SYSTEM SET plsql_compiler_flags = 'NATIVE';
or
ALTER SESSION SET plsql_compiler_flags = 'NATIVE';when perhaps you should have done this:
ALTER SYSTEM SET plsql_code_type = 'NATIVE' SCOPE=BOTH; -
How to use the java native api
i am new to the java native api, can anyone tell me how to use it in order for me to use the c++ file in the java file?please explain it if possible, thanks
Try this out to learn the basics :
http://java.sun.com/docs/books/tutorial/native1.1/index.html
You can't go wrong from there. -
HI,
I have a big problem with Java Native Access when call a function in dll file.
First, I have files xxx.dll,xxx.h (written by my partner) and document for functions.
Second, I am using JNA (java native access) to call the functions.
But, it has some functions that function's result is pass over memory of window.
In document description, it has tow constant: WM_USER = 0x0400, WM_USER_ENV = (WM_USER + 0)
I have just learn, so i don't know about that.
So, my problem is " i don't know how to get result of function that passed over to memory window )
This is my header file: MFSIOCTL.h
// Command
#define CMD_VERSION 'V'
#define CMD_SENSOR 'S'
#define CMD_FLICKER 'L'
#define CMD_GETSTATUS 'A'
#define DEST_1 '1' //front door / Card Reader Flicker Lamp
#define DEST_2 '2' //UPPER FRAME IN POSITION(CDM) / Printer Lamp
#define DEST_3 '3' //Receipt Exit Sensor / Cheque Lamp
#define DEST_4 '4' //Cheque Door Sensor / A4 or Cash Lamp
#define DEST_5 '5' //Bill Hopper Sensor - 2006/06/20 added
#define DEST_ALL '0' //Get all Status
//switch status or FLicker Lamp on/off
#define OPEN '0' //Flicker Off
#define CLOSE '1' //Flicker On
//added at 2004/09/17
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFS_IO_OFFSET + 0)
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_Open(HWND hWnd,BYTE comport);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_Close(void);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_GetVersion(LPSTR lpFWVer,LPSTR lpDLLVer);
extern "C" __declspec(dllexport) BOOL __stdcall MFSIO_LED(BYTE LEDNum,BYTE OnOff);
extern "C" __declspec(dllexport) BYTE __stdcall MFSIO_GetStatus(void);
And this is window message define:
--- Definition of Window Message
: Message is defined in MFSIOCTL.h as bellows.
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFSS_IO_OFFSET + 0)
MESSAGE WPARAM(Indicator ofDoor or Media) LPARAM(Status of Door or Media)
WM_MFSS_IO_CHG_EVT DEST_1 or OPEN or CLOSE
DEST_2 or
DEST_3 or
DEST_4
Refer to MFSIOCTL.h
In functions, i don't know that they relative with parameters as "WM_MSF_IO_OFFSET, WM_MFS_IO_CHG_EVT'' and parameters use for what?
How to get value of window message?
Please help me. Thank you.
Edited by: QuocTan on Sep 8, 2010 9:31 PM
Edited by: QuocTan on Sep 8, 2010 9:34 PMBut, it has some functions that function's result is pass over memory of window.I have no idea what that means. Please try again in standard English.
In document description, it has two constant: WM_USER = 0x0400, WM_USER_ENV = (WM_USER + 0)
These are Windows constants. I don't understand the relevance.
So, my problem is " i don't know how to get result of function that passed over to memory window)*My* problem is that this is about the 4th time I've read this statement and it doesn't make any sense. What is a 'memory window'? What is 'memory of window'?
#define WM_MFS_IO_OFFSET (WM_USER+0x900)
#define WM_MFS_IO_CHG_EVT (WM_MFS_IO_OFFSET + 0)If these lines are the problem, they have nothing whatsoever to do with JNI or this forum.
In functions, i don't know that they relative with parameters as "WM_MSF_IO_OFFSET, WM_MFS_IO_CHG_EVT'' and parameters use for what?Eh?
How to get value of window message?What?
Please help me.I cannot help either of you until you take the trouble to express yourselves clearly in standard English. Your problem doesn't appear to have anything to do with JNI or JNA. More likely it is an elementary Windows API programming problem, which is irrelevant to this forum and this site. -
Problem with Java Native Type after Migration from 7.0 to 7.1
Hi,
after Migration from Netweaver 7.0 to Netweaver 7.1 I get following error:
FileDownload 'FileDownload.data': Context attribute 'PrintSelectedView.PdfToDownload.resourceInputStream' has the Java native type 'com.sap.tc.webdynpro.progmodel.api.IWDInputStream' and cannot be bound to this property. Hint: Remove the binding or bind a context element matching the property's type.
What have I done wrong?
How could I fix this problem?
Best regards,
PeterHi,
thanks, this solved the problem.
Thank you.
Best regards,
Peter
Maybe you are looking for
-
GDM not starting and TTY1 not able to log in after GNOME 3.6 update?
Hey everyone, I've been using arch for a couple of months now and all's been fine. I updated last week to gnome3.6 however and a lot of my system broke. I couldn't start any window managers or desktop environments at all. After reading about the init
-
Help!
-
CO46/MD4C - see 2 receipt elements (ShipNt & PchOrd) for one demand
Scenario: Production Order for 10 ea for 'A' with a purchased material 'x'. The supplier confirms 5 ea of material 'x' have left the dock and I make a shipping notiication calculating expected delivery date and update MRP. I now have 2 receipt elemen
-
MBGMCR03 (DC_STOCKCHNG_IN) shows wrong message in Status 53
Hi all, We successfully processed the MBGMCR03 (DC_STOCKCHNG_IN) IDoc. Yet, in Status Record 53 the message "BAPI CREATEFROMDATA has been called successfully" has been shown, while we expected a message like "Document xxxxxxxxxx posted". In which "xx
-
I'm wondering if there is any way I can prevent JDeveloper from deleting text already in my document when it does code completion. In particular I'm dealing with XML files... Consider this text-editing task: I have this test: Today is a wonderful day