734 byte By
xinxinw at 2007-9-26 10:27:21
I got this error when I was trying to access the Dynamic Link Library:( I use Oracle JDeveloper3.2.3) Here is my code :class LocProfUtil {public static void GetLoggedUser(){try{ System.loadLibrary("LocProfUtil");(new LocProfUtil()).GetUser();}catch(UnsatisfiedLinkError e){e.printStackTrace() ...
734 byte By
xinxinw at 2007-9-26 10:27:23
I got this error when I was trying to access the Dynamic Link Library:( I use Oracle JDeveloper3.2.3) Here is my code :class LocProfUtil {public static void GetLoggedUser(){try{ System.loadLibrary("LocProfUtil");(new LocProfUtil()).GetUser();}catch(UnsatisfiedLinkError e){e.printStackTrace() ...
430 byte By
MSatish at 2007-9-26 10:27:48
Hi,We are trying to use JNI to call JAVA from C. Creating the JVM is taking lot of time. Can we have one JVM and shared by all other jobs or processes? Our C program is being called by different jobs. This C calls JAVA. We are wondering, if we can some how create a JVM at the begenning so that ...
Tried to test gcc with dll to get something simple going. Far from it!! :) The problem is that it instantes the dll, because if I change the dll it would report:java.lang.UnsatisfiedLinkError: no whateverNative in java.library.pathSo I know it loads but it doesn't run a simple print function. ...
Tried to test gcc with dll to get something simple going. Far from it!! :) The problem is that it instantes the dll, because if I change the dll it would report:java.lang.UnsatisfiedLinkError: no whateverNative in java.library.pathSo I know it loads but it doesn't run a simple print function. ...
639 byte By
akostha at 2007-9-26 10:29:52
Hi I have installed JRE in a directory say /proj/pmcfg/akostha/USM 0.5.15.2/jre1.3/when i cun java from /proj/pmcfg/akostha/test dir/jre1.3/bin directory..it saysgrep: can't open /proj/pmcfg/akostha/USMgrep: can't open 0.5.15.2/jre1.3/bin/./../lib/jvm.cfgand when i run"/proj/pmcfg/akostha/USM ...
I have noticed a phenomenon: when an object is instanciated by the "new" instruc- tion, the JVM will first create an object of its father class and instanciate the object (you can find aload_0 invo- ke_special 0,1in its init method), then store the already prepared reference of father class's ...
731 byte By
cdore at 2007-9-26 10:30:23
Hi,I am integrating a JVM inside an already built product in C and Objective C. I need to build hash tables of jclass pointers. The problem is :On two different JNI interactions, when for instance you ask for the jclass pointer of "java/lang/String", you get different pointers. So I cannot ...
87 byte By
ibuecker at 2007-9-26 10:30:24
how to call a java class from windows without shell window is popping up?
413 byte By
dewangs at 2007-9-26 10:30:50
Hi,I got code from the IBM developerWorks site ( http://www-106.ibm.com/developerworks/java/library/jniexe/jniexe.html?dwzone=java) that lets me launch a Java app with a Win exe. This can start a Java app from the class file. However, I cannot load an app if the class files are in a Jar. If ...
in the Java tutorial "Lesson: Writing a Java Program with Native Methods ", (see " http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html") every thing works fine if I follow all the instruction. but if I change the Native Method Implementation file from: #include ...
Using JNI on Solaris, is there any differences to build a shared library compiled from C code or C++ code?
When a caller push several operands into its operandstack,how does the JVM know the number of the callee's parameters and pop correct number of operandsout of the stack.
847 byte By
dmorris3 at 2007-9-26 10:35:49
I was able to compile all the files for the HelloWorld example in the JNI tutorial. I had no problem compiling the hello.so file.But I get the following error when I try to run the file:Exception in thread "main" java.lang.UnsatisfiedLinkError: no hello in java.library.pathat ...
410 byte By
lambu76 at 2007-9-26 10:36:57
In windows I can open a dir in an explorer window with this java code:For winnt o 2000Runtime.getRuntime().exec("cmd /C start c://db /B");For win9xRuntime.getRuntime().exec("start c://db");For opening a file in win I can use this java code:Runtime.getRuntime().exec("cmd /C start filename ...
Hi !I need a possibility in my java program to make a link file.The OS is Windows. How can JAVA create a LinkFile ?My ideas:- If there is a possibility on the MS-DOS console I would use the Runtime.exec command.- If the LinkFile is an ASCII-File I woudl write a new file and give the correct ...
I am passing a command array to runtime.exec in order to run a java program. The first entry is the java command (i.e. C:/jdk1.3/bin/java) and second is the classpath (i.e. -classpath a;b etc). However, when I run it it fails with "Unrecognized option: -classpath a:b etc".Has anybody got any ...
326 byte By
asajjad at 2007-9-26 10:42:59
Hi,I am trying to run a Java application using JDK1.3.1, however I am getting the following message "Could not find main class Program will exit". Once I click on the OK button, the message goes away and application launches. I have checked the class path and it looks fine. Any Suggestions ...
2194 byte By
r-javaid at 2007-9-26 10:43:07
Hi developers,I have written a Jasmin program (shown below).When I compile it by issuing the commandjasmin hello.jit compiles OK and I get a class file hello.class.When I run the class file through the Java Interpreter, by entering:java -verify helloon the DOS command line, I get the following ...
I've written a java program which interfaces with some C code.In the c code i use certain functions which are defined in a header file that i include in the same c file.The problem i have ,is that the compiler shows an error when it comes across one of those functions.It seems to me that the ...
448 byte By
andyba at 2007-9-26 10:46:39
Under Windows:I need to get access to the native pointer for an applications frame (in this case a JFrame).I need to do this because I want to display property pages in a native dialog box. These property pages are supplied by driver software, are themselves native, and require a valid CWnd ...
I have a DLL I'd like to execute from Java, but do not have access to the source. From what I've read about JNI, it seems it requires Java specific code in the DLL source. Is there any other option? I need to pass it a String and it returns a String. Is Runtime.exec a viable option?Any advice ...
412 byte By
timesb at 2007-9-26 10:47:56
We're developing under JDK 1.4-beta2 and are close to releasing to in-house use of our application. One thing noticed is that the entire rt.jar and other jars get loaded into memory equaling ~45MB !! I am amazed if this is 'normal' behaviour. Are we missing some tweak or option grossly ...
304 byte By
timesb at 2007-9-26 10:48:11
I have this program: NO classes called in explicitly.WHY does it take 12MB on 1.3.02, 38MB on 1.4-beta2?This is NOT sensible.public class hw {public static void main( String[] args ) {int n;while (true) {n = 1;}}} ...
503 byte By
elaklos at 2007-9-26 10:48:23
I have a problem using JNI within iPlanet Application Server. I am told it does not support JNI (there is a problemloading library). Our platform is Solaris. Currently I am running RMI server to talk to JNI and then return data to my application. It works, but because I am passing huge amount ...
11989 byte By
mali_jr at 2007-9-26 10:48:37
Hello Guys,We have received some c code from our client their encryption/decryption algorithams from our client which we have to integrate in our java code. I have written a java class with some native methods. And a c program which is called from java using JNI and this c program calls the ...
Hi guys,I developed two client side applications(applets). Locate the on Apache/Tomcat. There is also a Index.html file with two links, so when user clicks on each link the associated application will downloaded on his PC and ready to work. (In index.html I used window.open() to load the ...
532 byte By
cwalton at 2007-9-26 10:50:39
Hi,I would like to tune the performance of a server side app (not web based) and there are a lot of options for hotspot.I have a set of measurements I can make of the system performance so I could easily change hotspot parameters to improve things. however, I would appreciate some guidance as ...
873 byte By
ellarco at 2007-9-26 10:53:28
Im writing a profiler using the JVMPI. I want to write a report file that will be processed by a Java program later on. The report basically consists of a load of numbers (memory allocations, instruction numbers etc.) which in my C code I store as jlong so that I can just write them to a binary ...
316 byte By
daan75 at 2007-9-26 10:54:35
it is fine if my java code didn't complied into a package. But if I complied my java code as a package, and call its native method outside. It give me "UnsatisfiedLinkError". And can not find my method. It is indeed the method is inside.Thank a lot any helps. Email me on d.zhu@uea.ac.uk ...
480 byte By
dmorris3 at 2007-9-26 10:55:07
How do you call legacy C functions with JNI. This is code that I have access to the libraries and header files but not to the source code. I have written, run and understand how to write native C code for the JNI but have yet to find information on how to call an existing function. I JUST ...
758 byte By
pandamon at 2007-9-26 10:57:16
Do you know what means the following error : Error 500Une erreur s'est produite lors du traitement de la demande : http://192.168.1.14/webapp/wcs/editorial/homeAdmin.jspMessage : Server caught unhandled exception from servlet [JSP 1.1 Processor]: Unable to compile class for ...
679 byte By
Mark100 at 2007-9-26 10:57:32
Hi are there any rules to order the transferred arguments ?I wanted to transfer a native window event from C to Java and if the called java method is declared like this: (int, long, int) (IJI)Vpublic static void nativeMouseButtonDownCallback(int wParam, long lParam, int which)the value of ...
468 byte By
GChapman at 2007-9-26 10:57:38
Hi guys,Firstly can anyone please tell me if JDK1.3.1-b24 for Solaris 8 is available anymore (I have a product that is only support under that release)....I've check all the download pages I can find on can't see anything but 1.3.1-01. What does the "b24" stand for? Is this BETA build 24?The ...
I have the JVM Spec, 2nd ed., on my desk. I'm trying to find out about changes to the class file format since its publication, i.e. what are the differences between class file versions 46.0, 47.0 and 48.0?So far, searching the JDC and the web hasn't helped. Does a document describing the ...
I have to laugh when I see messages that complain java sockets are slow because it takes 200 ms to transmit data -- we have a system in which some of the time it takes 14 seconds to send perhaps 1 kB of data over a Java socket where sender and receiver are on the same machine.Does anyone have a ...
134 byte By
joeel1 at 2007-9-26 11:01:33
how can i run my application, as a background process, so that i can close my command/terminal window after i run it....
274 byte By
deepthd at 2007-9-26 11:02:12
Hi,I tried to run a java program from with a c applictaion using the invocation api and i get this weird error *** panic class java.lang.Shutdown not found...java.lang.ShutDown?Can any one shed some light .ThanksDeepth
331 byte By
PPSujith at 2007-9-26 11:03:04
HI all,Using JVMPI, how do I get the name of the method which was called and the class name from which the method was called. in the JVMPI_Event, the union method, has only one field jmethodId. From this how can i figure out the name of the method and the invoking class?Thanks in ...
Hi, I want to know some infos of performance and adoption of JVMs apart from Sun's.It is said IBM JVM(I've forgot the corresponding version) on some platform is faster than that of Sun's.Is that true?If so,how to get it?I've tried to find one from IBM's website.But there are too many links ...
Hi, I dont know how to make to move the focus in the cells for a jtable to left to right.The default is to down at the columm in the same row.I already used method editCellAt(row, col)Sorry for bad english, please help-me
Really need some site information/source code that provides Win32 API C functions to find out the "process memory used/free under Windows 9X operating systems. It has to be C source. Tried looking for info on Kernel32.dll API function calls but what is it?Know how to do this for Windows NT ...
409 byte By
vijava1 at 2007-9-26 11:07:33
Dear all,My program 1. Reads large number of files (>5000)2. String tokenize them to get individual words 3. Put them into a vector4. Parse the vector to calculate term freq and document frequency...I am getting OutOfMemory error in the second step. How can I solve this?Should I increase the ...
99 byte By
balusug at 2007-9-26 11:09:29
"How to access third party's C API from Java Using JNI without modifying the C code"
97 byte By
balusug at 2007-9-26 11:09:30
How to access third party's C API from Java Using JNI without modifying the C code
482 byte By
anhansen at 2007-9-26 11:10:54
Hi everybody...Im in the middle of making an ICQ-stylish Instant messaging program. We would like to make a function as in ICQ, where the system changes state after a given timespace where it has not benn used. (The same problem as with screensavers...) Can anyone give me a hint...Maybe I need ...
hi,everybody:I have a program which include the next statments:public void println(boolean flag)throws IOException{Object obj = lock;obj;JVM INSTR monitorenter ;print(flag);newLine();obj;JVM INSTR monitorexit ;break MISSING_BLOCK_LABEL_26;Exception exception;exception;obj;JVM INSTR monitorexit ...
120 byte By
Bkolluru at 2007-9-26 11:13:16
I could able to successfully invoke the JVM on Windows NT 4.0 but unable to invoke on Windows 2000.
208 byte By
pink452 at 2007-9-26 11:13:23
I am trying to read an .htm file from a jar and getting a ZipException when it is trying to open the file. Has anyone encountered this or know whatI may try?Thanks in advance.Jared
250 byte By
pink452 at 2007-9-26 11:13:25
I am trying to read a .htm file from a jar and am getting a ZipException. It seems like it is trying to open the file but cant... Any ideas what may be causing this... I am running on Win2000.Thanks in advance.Jared