Hi everyone... I need to build a file browser for a wireless multimedia device for a Windows PC. The objective is to be able to browse contents of the device. The device defines its own protocols for communication. I have divided the whole project into two modules: the browser and the ...
82 byte By
m_k_ma at 2007-11-27 4:59:09
How JVM handles marker interface.Is there any marker thread inside the JVM?
731 byte By
S_Mensa at 2007-11-27 4:59:38
I have recently been given J2SE 5.0 but I am having problems passing Arabic characters between my Java Client and Server. It used to work with jre1.3.1_01. How can I tell if the jre 1.5 that I am using supports English only or is an International version which also supports Arabic characters.I ...
Well, I also used the Networking forum for this question,but I was told it belongs to the JNI forum.I would like to communicate the red, green, and blue values of an image, which are unsigned chars in my C++ program (varying between 0 and 255) to my Java program.I first convert the unsigned ...
323 byte By
yin7928a at 2007-11-27 5:08:21
I noticed in the JNI spec, every function has a JNIEnv* env parameter, through which you can access the Java environment.However, in C, you should use (*env)->xxxx to access it, whereas in C++, you need to use env->xxxx.Could anyone let me know what's behind such a design ...
Hi,I am having trouble with wls8.1 server. My application uses JSF(MyFaces), EJB2.x, Weblogic 8.1 sp6, database is oracle 9i. For some reason, server is core dumped. Does anybody has any clue why is it happening? I search on the internet and found that this bug has been reported to sun, but was ...
On load testing the application we see that - everything works fine for the first 35 minutes till we hit the first full GC after the first full GC, which happened after 35 minutes (after about 500 minor GCs), strangely the full GCs happen very frequently, once about every 2-3 minutes (once ...
642 byte By
oscuroa at 2007-11-27 5:15:28
I have a problem using JNI on Solaris 9.I have a library .so build in C, i compile using Forte 8 with -xarch=v9 option, for generate 64 bits code.I Have installed Java 1.4 for 64 bits.When i run my proyect, this send a exception: java.lang.UnsatisfiedLinkErrorBut the stranger is that the ...
120 byte By
Aldricha at 2007-11-27 5:20:28
Good Day, how can i convert a const char* to jstring? may somebody point me to some source codes? -Aldrich
2447 byte By
Aldricha at 2007-11-27 5:20:40
JNIEXPORT jstring JNICALL Java_com_smart_smartCryptor_Decrypt__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring ciphertext, jstring secretkey){const char *hexStr = env->GetStringUTFChars(ciphertext, 0);const char *key = env->GetStringUTFChars(secretkey, 0);//char ...
Hello everyone,I am having problems with calling JNI code from C under Ubuntu, and I would very much appreciate your help.I understand there are two things to be done for this to work : 1 include the jni.h header file2 set the path to the jvm "executable" in the system path.Currently, I have ...
119 byte By
ashhuua at 2007-11-27 5:29:23
helloI want to use JNI with the applet ,could any one give me helloworld applet using JNIThank you
JVM stores old class files in its cache even after the corresponding files have been deleted from the database. This causes a conflict if a new file is saved with the same name as one that was deleted earlier causing old data to be fetched and not the new one. am using the following line of ...
I've successfully loaded a jvm and instantiated a java class which my native code calls into nicely. I now have a need to allow the java class to call back into a native side method (after it has been invoked, etc. from the native side of course). Could anyone point me to how to do this so ...
1306 byte By
Lediona at 2007-11-27 5:31:59
Does anyone know if the young/old/permanent heap sections are dynamically resized during the life of an application ? By resizing I mean something different than ramp-up to the correct size, or increase/decrease as the whole heap changes in size. I've been reading gc tuning docs and it seems ...
Hi,Please help me ....See this example :env, classUIManager are ok.But i can't to find methodgetInstalledLookAndFeels. it is always null.Where is my error ?Thanks youjclass classUIManager = (*env)->FindClass(env, "javax/swing/UIManager");if (classUIManager){jmethodID ...
439 byte By
JSDNera at 2007-11-27 5:38:42
I have a question about the exception mechanism in Hotspot.As we know, when you trigger an exception which is not compulsory to be catched by developer out of a try-catch segment, as a ArrayIndexOutOfBoundsException. The JVM on PC will catch the exception by itself and print the stack trace ...
Hello everybody,my first post, so lets go..At the moment I am writing my thesis in the filed of automatic image classification. The project is written in Java, but I wanna use the OpenCV library from Intel ( http://sourceforge.net/projects/opencvlibrary/) for facedetection. So far I managed to ...
1463 byte By
p77gina at 2007-11-27 5:47:19
hi,i came across an article by a dev team member of Java Hotspot VM, Tony Printezis regarding behaviour finalize() and how to avoid it. The article is present at: http://www.devx.com/Java/Article/30192the author states something like this:class A{ finalize() {// do something here }}class B ...
608 byte By
john_ma at 2007-11-27 5:48:59
Hello,Recently, we have had a memory leak problem in an application server. We had the jvm parameters -Xms1024m -Xmx2048m.To simplify the analysis, I changed this to -Xms2048m -Xmx2048m. So, no heap resizing. (we have jdk 1.4.2_05)Weird thing is, since doing this, we don't see the problem. ...
611 byte By
lihy70a at 2007-11-27 5:54:13
Hello, AllSometimes I want manage the memory take by object instance,for example, If I want to design a cache which cache a huge number object.Then, there may two problems:1, May occur OutOfMemory error.2, I want like to manually reclaim the memory take by the cached object,not by gc, because ...
I'm having problem deploying a simple JNI Web App on JBoss 4.0.5.I'v packaged the native methods in a seperate .jar file located in the JBoss \lib directory.The required .dll files are in the path.When my Servlet tries to invoke the native method, it gives me the UnsatisfiedLinkError.Needles ...
Hi,We are frequently getting JVM core dump on solaris 9. This is something not reproducable. Here the output in hs_err log file. Does this have to do with the java version that we are using or is there any configuration issue.## An unexpected error has been detected by HotSpot Virtual ...
301 byte By
ChJa at 2007-11-27 5:58:56
I am new to java. I have some queries regarding the field JAVA i choose is, it really difficult to grasp the concept within less time and in case i have to take Java what are the basic things i have to brush up and the competitive level i have to prepare. Please suggest your valuable ...
I have a web application running on Solaris 8 using JDK 1.5.0_11 on a 64-bit OS. I am uncertain as to what GC algorithm I am using by default; my machine is a server-class machine, as defined by Sun, with 4 processors and 4G of RAM. I have read things that say that the concurrent mark sweep ...
Windows PATH environment variable on machine has some 1700 characters. java.library.path in Java 1.4.2 only contains 1091 characters. Because of this loadLibrary function thorws exception while loading native libraries. I would appreciate anyone has suggestions on this.Thanks
540 byte By
Edwin.Ha at 2007-11-27 6:05:01
Hey guys,I'm kinda stuck in this unusual scenario. The problem is that this only happens in Red Hat 5. There is this application process that I want to kill at the end, so I made this System.exit(). The thing is that this call doesn't kill all the threads. So, my GUI application gets hung. I ...
Hello:I tried to decompile some class files that I compiled with jdk1.6, however I got a problem, since it seems that class specification have changed. I tried jdec, jad, jode, cavaj, jreverse, jcavaj, and none of them has been updated to support the new specification (49 and/or 50), so I'd ...
Hi all,first my c++-codem_user = "debug";jmethodID mid = m_vm.env->GetMethodID(m_vm.cls, "draw", "(Ljava/lang/String;)[B");if (mid == 0) {return FALSE;}jbyteArray jByteArr = (jbyteArray) m_vm.env->CallObjectMethod(m_vm.obj, mid, m_vm.env->NewStringUTF(m_user));now my java-code:public ...
1013 byte By
bobypta at 2007-11-27 6:08:47
Hello,I need to pass a Big binary data from java through JNI to a device driver.If I directly use the dll and create an application, then data transfer is 2Mbps. But if I use JNI and transfer data from java, speed is 100Kbps.SO there is a bottleneck in JNI.When i tried the function ...
Can anyone give me an idea of how to call a cobol program from java.If you can provide me some sample code .It would be great.Thanks in advance
12899 byte By
marbluea at 2007-11-27 6:16:55
Hello, Someone can help me? I receive the following error message sometimes and i have to reset my pc, it happens when i'm downloading generally .torrent archivesby some programs as bitcomet or others, i don't understand too much of computers so, i wish someone can tell me wich is the error ...
Our application server weblogic8.1 sp6 has been crashing in production every week with HotSpot Virtual Machine Error : 11 and Error ID : 4F530E43505002EF. There is no consistent pattern which tells us what is causing this problem. When I gdb the core file, it tells that "Program terminated with ...
11544 byte By
napsproga at 2007-11-27 6:26:52
I have developed an application to manage a note acceptor. The manufacturer provided me a dll to communicate the device but my application is written in Java, so I developed the corresponding JNI to send the commands and obtain the answers.On the other hand, the dll sends some events to ...
Complementing the other question I have posted here 2 days ago (which no one seem to know how to answer concerning 32bit java process on intel64 Redhat) ... I wish to address my concerns regarding running my server as a 64bit process.Apparently it takes 70% more memory to run it as such. Seems ...
Hi,I have a bunch of server side apps, deployed in different containers (for various reasons I won't waste time explaining). The tipical usage of this apps is, short amounts of time with high load, and long times of total inactivity.After startup, each interval of high activity increases ...
I am running JDK 1.4.2 and I was wondering, can the "Perm Heap" can actually shrink or not?If not in the JDK 1.4.2 is it available later?If so, then what determines if the class info is no longer referenced and therefore can be garbage collected. Is it after all of the objects of that type no ...
1145 byte By
Anma at 2007-11-27 6:31:07
I have an old application with a single JNI class in it. It has been working for years under Java 1.4 and Java 1.5. We're trying to transition to to Java 1.6, but we've run into the following error:WARNING: exception in listener: java.lang.NoClassDefFoundError: ...
Hello, my server has 4 BG of RAM. I use jconsole and it notices me I have only 2 GB. Is it a limit of JVM? Can I config JVM to detect and use my 4 GB?I hope someone can help me. Thanks
Hello,I have an installable created with installanywhere for my java application, and when I am trying to install it on a specific desktop, the installation hangs right at the beginning :(I have to kill it from the Windows TaskManager. Any help will be appreciated.Thanks in advance!The ...
2251 byte By
Maguspka at 2007-11-27 6:46:20
I am installing a JBI Repository for uploading .war files to and stuff and part of the installtion requires me to setup mysql Jboss and Berkley. I got all but JBoss (the last step) to install properly. Nobody in the office has an idea on how to fix it and they're all busy atm so I turn to ...
We are using Sun OS 5.8 and getting this error recently. From what info i could collect, this seems to be thread related. Could somebody advise on the optimum stack size, as we are having around 11threads running in two clustered environments, each having three weblogic servers. I guess we can ...
It's a web application for internal use.J2SE 1.4.2_14MEM_ARGS=" -Xms2028m -Xmx2028m -XX:PermSize=310m -XX:MaxPermSize=310m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC \ -XX:NewSize=64M -XX:MaxNewSize=64M -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=2 -XX:SurvivorRatio=6 \ -verbose:gc ...
Is it possible to call VB dll in Java?If yes then How?
Hello.Maybe someone can help me on this because I have tried already everything.Basically we have an application that after running about for 3 weeks it reaches a state of "Out of Memory Error" and stops functioning. I tried to compare dumps of JMAP tracking out every day that passes but ...
Dear all,This is my first post and here is what I'm trying to do....My problem(s) is how to return a multi-dimensional array (nArray[769][2]) from C++ using JNI and than displayed the result in Java applet. That's it.I'm still new to JNI so I'm confusing with how the arrays are handled in ...
961 byte By
DaleGroa at 2007-11-27 6:56:42
Hi folksI need to compile a file .java from a program java written by my in java.the first form that uses went calling to a process this way:String cmd = new String[] {"javac","\\temJava\\*.java"};p = Runtime.getRuntime().exec(cmd);this works well but single for windows, and I need to work in ...
a want to save an object gatin from java and save it into my list in c codemy probleme is when a call getobject more than one times it return null (in the first one it return the last object saved)i dont understand whythis is my methodsto add object in my listNIEXPORT void JNICALL ...
303 byte By
mhstava at 2007-11-27 7:01:14
As far as I know that whenever a java.lang.OutOfMemoryError is thrown, the application is in an unknown state and only a restart of the JVM can fix this. How about java.lang.StackOverflowError? If uncaught, the calling thread is terminated for sure, but the other threads? Are there ...
Hello,is it possible to use fdlibjni.dll (a windows jni dll) in linux?If yes, how can I start doing that?