420 byte By
thomasa at 2007-10-2 23:07:34
hi friends ,i have a doubt that if a interface A and interface B have a method calculateand i am extending these interface in Class c then i have to give definiton for both the methods if i dont give dofinition for any one also then i will get a compilation error .if i define the same method in ...
423 byte By
Carolaa at 2007-10-2 23:09:20
Hi, I'm using a C library to read a special format files. It works great for small files, a few MB, but when reading bigger files, 50MB is enough, it crashes simply outputting:Java Result: 139 Anyone as a clew on what a Java Result: 139 is? or where I can get Java Results description? I ...
Hello, Sun Application Server 8.1 EE Q2 crashes with the following erreur in the production site. Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 1547216 bytes for Chunk::new. Out of swap space?Working in Solaris 10 V20z (bi-processeur) with 4GB RAM and 8GB swap. ...
Ok, I have a C++ constructor that builds an object that looks like this:MainClass.cppclass Mainclass { public:MainClass (char *fileName);~MainClass(); private:... some private functions ...floatversion;char*MPIP_settings; inttrace_depth; intnum_callsites; intnum_tasks;Struct1 *struct; // Array ...
751 byte By
shdgraoa at 2007-10-2 23:12:09
Hi. I am doing a project in which I use a library in c++ (devoloped by myself) and two programs that use that library. The firts one, developed in c++ and the second one in Java. I was reading all the information about JNi that I could and it seems that I can't use exactly the same library for ...
1795 byte By
JK2004a at 2007-10-2 23:15:40
1) DataCell.javapublic class DataCell{public String value = null; public String href = null; public String image = null; public String align = "left"; /*** Describe constructor here.**/ public DataCell() { } /*** Describe constructor here.** @param _value a value of type 'String'* @param ...
I'm trying to workaround a JVM crash issue by disabling hotspot compilation for the method that's causing the crash.In Sun's JVM There is a -XX:+PrintCompilation switch which tells me what method is being compiled. Is there a equivalent JVM option for HP's JVM?
hi every one i have doubt regarding how to pass byte from java to c using JNI .
hi every onei am new to JNI and i want to know where do we can get best examples on JNI.
I am facing OutOfMemoryError while compiling the code. It seems that after some amount of memory utilization the compiler is not able to process other funtions. I have tried to increase the heap size from JVM options but it did not work. I am badly stuck on this issue. Please help me out ...
hi all,I was given a problem that there is procedure in cobol which take some arguemnt so how do i call such procedure through java by passing argument to it, may be jni but since this is my first word about jni please any suggestion.with regardssatya
HiIm working on an embedded power pc, installed with an embedded linux. The java environment is Kaffe. Since no appletviewer is available (and we dont want any) we want to make a hybrid applet, which can be used both as and applet for a webserver and local in Kaffe. However, if I put the applet ...
Hi All,I have opened one Applet in IE. During DB operation IE(JVM) is crashed.The following error file is created.An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at ...
I've been looking around the net for quite a while on real world JNI examples. I am really getting tired of all the Hello,World examples that I keep finding. What I am looking for is how to get at C structures from Java code. I would like to build a JNI wrapper around an existing C Library but ...
1248 byte By
Jerria at 2007-10-2 23:21:58
Hello allI don't know if this is the correct forum to post this question. But I didn't find a more apropiate forum to ask this question.On one server I installed the sdk, on another server jre (both debian, downloaded ".bin"s from java.sun.com). Now if I do 'java -version' I get different ...
596 byte By
pimentoa at 2007-10-2 23:23:55
I made an example which works fine in the JAVA main Thread, but crash in a new Thread, Why? Is it possible to do something like that? if no, how? __Main example:same code but without thread__Thread example:__public class UserThread extends Threads{ private MyJNIObject myJNIObject; public ...
505 byte By
cwallcaa at 2007-10-2 23:24:37
Hey there. Consider two classes with the same package, same name, and same methods (params included). Let's call these classes Class A1 and Class A2. Secondly, consider a class, Class X, that extends Class A1.The class loader will only have contain Class A1 or Class A2. Could I replace Class ...
I suspect a hang issue because of GC in my application on Solaris 8 box on JVM 1.4.2_10 I did a rudimentary GC analysis of the Prod box. Below are the stats:what count totalmeanmaxstddevgen0(s)--2654380.313-- 0.14330--2.402--0.1315gen0t(s)--2654--496.903-- 0.18723-- 5.034-- 0.3475gen1t(s)-- 7- ...
hi alli am new in working with jni. iam using lib curl in java. iam facing problem in running it, pease help it is urgent
hi friendsmy program is passing bytearray from java to c and getting it back but i am unable to return bytearrayto java .this my code.Test.javapublic class Test { private byte[] bStr;native byte[] myFunc(byte[] byteArr);static{System.loadLibrary("test");}public Test(String ...
When monitoring a process with prstat -Lmap <pid> on 1.4.2_09/Solaris 9 sun4u, with the default sampling rate I see signals ranging from 1-10K on the hotter threads. I've seen this on a 1.5.0 JVM as well in a different process but was curious what types of JVM activities cause a thread ...
Hello all,I am trying to figure out what is the difference between perm space, perm gen, old gen and tenure. On a lot of sights they use different combinations of these as synonyms. I find that difficult to believe when ...
when i deploy my application i get OutOfMemory error. I tested the application through JProbe and found that there are lots of SringBuffers etc. are still there on the heap. How to get rid of the unwanted objects.using System.gc will help?
517 byte By
inyoa at 2007-10-2 23:34:37
I have created a Wrapper Java file and need to declare this function in Java File.Below is how it is declared in the VB DLL.Declare Function ATMGetString Lib "ATMAPI32.DLL" (ByVal hWnd&, ByVal Row%,ByVal Column%, ByVal GetString$, ByVal Length%) As LongNow in Java I did : public native long ...
hi , i am new to JNI and i am having some troubles with a special task :in fact i am supposed to treat some data stored in a char[100][100] value and then return the result to java , the result is the sam value bur modified i mean a char [100][100] variable too...i saw that we can rely on ...
177 byte By
anuj04a at 2007-10-2 23:38:45
client prog send a string to queuemdb gets the mes and tries to unmarshal it to a castor object and i am getting nullpinter exceptionwhy?pl help very urgent
219 byte By
RKBhata at 2007-10-2 23:41:29
Will you please help me to in -How to get an array of float values from a C fucntion using JNI ?Is there any limit to pass an array length to pass the float or int values to C function of uisng JNI?
2333 byte By
hussaina at 2007-10-2 23:42:50
hi, i need some help in getting this executed.....i m using netbeans 4.1 and i want to execute this code but i m not able to do it pls help me in this regardsimport java.io.*;public class NativeMFCMsg{static { try ...
5752 byte By
Jos_Ha at 2007-10-2 23:42:51
Hello,In short:Iam building a compiler, support for nested functions. I decided to do things inline, so i didnt need to fiddle with stack frames, or making everything global. For recursive functions this resulted in a construct not unlike the following.A: ICONST_0; GOTO A;the verifyer throws an ...
Hi all,I am facing a problem, I want to call Win API's form Java. any idea..Any win API.. like GetUserNameA.... (it fetches current user logged in).Its bit urgent guys... i have always counted on u guys...Thx & Regards@mit
hi,I am really new to this topic.Can anyone explain me the actual internal processing of .class files on jvm.
Hi,We are doing research project on 'Dynamic memory allocation & analysis'.For that, we have downloaded JVM source code from java.sun.com,but still some errors are coming while producing makefile.Can anyone tell the correct process of downloading JVM source code.Please contact us only ...
847 byte By
opiua at 2007-10-2 23:46:04
hi, in the c++ code I have a byte array, I need to convert it to jbytearray and call a java method from there.I'm using this code but the compiler complains about conversions (of course)jbyteArray jarray = env->NewByteArray(pAdapter->AddressLength);env->SetByteArrayRegion(jarray, 0, ...
181 byte By
safira at 2007-10-2 23:46:57
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4688797must be re-opened.I'm a little concerned nobody will look at my update, as the bug is already closed.
3565 byte By
Hikagea at 2007-10-2 23:48:36
Hello, I'am starting using JNI and I've a little problem.I've this java class :package be.manex.test;public class Processus {private int _pid;private String _name;public Processus(){}public Processus(String name){_name = name;}public Processus(int pid) {_pid = pid;}public Processus(String ...
Hi, I am doing research project @IIT Bombay. We need jvm source code. We have downloaded all files from sun's download. We have followed all instuctions from readme.We have run 'make' in install/make.there are many packages(control,deploy,install) that contain 'makefile' .can u plz guide ...
Hi.I have downloaded j2ee recently and, despite I can compile and run programs in eclipse and the java command in recognised in the windows console, it seems that my system can't run the jvm. My global variables are:PATH= C:/Sun/AppServer\jdk\binCLASSPATH= .Later I downloaded a JRE and then I ...
1093 byte By
Ace1977a at 2007-10-2 23:57:51
Hi,I am running Tomcat 5.5.16 on windows server as NT service and have run into an issue where I am getting the following message "java.lang.OutOfMemoryError: Java heap space".I tried many options to increase this heap size (before I would get an OutOfMemoryException but now it is the ...
From googling the net and searching these forums I understand the JVM needs to create the hsperfdata files. I can live with that I guess. My problem is that the JVM always creates them in /tmp on my SuSE Enterprise 9 server. I need to be able to specify the location of these files. I tried ...
This code in my C++-App:int res = JNI_CreateJavaVM( &jvm, (void**) &env, &args );ExceptionProver(env);if( res < 0 ){MessageBox("Fehler beim Erstellen der Virtual Machine. 3", "JVM Creation Error", MB_OK);}else{MessageBox("VM successfully created!", "Success", MB_OK);}jclass clazz ...
Hi,using a JVMTI agent I found out that our application has more than 5000 root objects for GC. I would expect that there are some root objects for each thread used, but we only have ~20 Threads per process. The list of roots shows lots of class objects (not all) and some other java.lang.* ...
I'm using the Invocation API to call Java from C, and am pleased to announce I've had some success. Woo hoo!Here's the Java program I'm using:public class DeleteMe{public static void main( String args[] ){System.out.println( "DeleteMe A: main()" + args[0] );}public static String foo( String ...
I wrote a method that takes a java.lang.String and returns a java.lang.String:public class DeleteMe{public static String foo( String arg ){System.out.println( "Class DeleteMe: foo() was called with " + arg );String bar = arg.toUpperCase();return bar;}}I've successfully called this method from ...
Hi, as we know JVM is interpreter,so what about JIT is it compiler of JVM or what is it,Regards,Prabhat
Hi,can java have Priavte or protected constructor,as we know java have default and public constructor ,and in using singleton design patters we can use private & protected constructor,so, what is the main logic,Regards,Prabhat
Hi,What r the sanearia when finally block will not be executed except System.exit(1);Regards,Prabhat
Hi,We have downloaded Java source code from java.sun.com.Now,we want to locate JVM code from that whole Java source code.How do we come to know of the location of JVM code?
5578 byte By
damana at 2007-10-3 0:11:23
I'm getting an exist error with jdk 1.5.0_07-b03 when the JVM shuts down. The error is below. Should I create a bug ticket for this?JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class statusFATAL ERROR in native method: JDWP on getting class status, ...
Hi,I am loading a dll in my java program and making JNI calls. This works fine in 32 bits environment.We now are going to use a 64 bits JVM. The problem is that I cannot recompile the DLL. Is there a way for the 64 bits JVM to load the 32 bits DLL ?thank ...
Hi:My java code uses native libraries (in C++). In my IDE (eclipse) I specified the path of this native library. But I get java.lang.UnsatisfiedLinkError. I tried to add the path as VM argument. Then it says main not found and "java.lang.NoClassDefFoundError". I went through the thread that ...