UnsatisfiedLinkError

382 byte By Thepa at 2007-10-3 10:10:30
I'm implementing an application which link to C++ by using JNI. I am facing the problem of java.lang.UnsatisfiedLinkError when I run the application.I have set the Path in window environment to where the dll locate. I also tried with -Djava.library.path= .... But I still have this ...

virtual machine within another virtual machine

326 byte By antzya at 2007-10-3 10:11:30
Hello can anyone help plsssssI want to know if i can launch another VM from the one i am in (from within my running code)and if i can set it to have a certain host name and adress so that when a java app running on that VM call getlocalhost it returns the values set by me can this be done pls ...

I want to execute other java thread in the JNI.

488 byte By peeppeepa at 2007-10-3 10:13:35
Hi!I would like to execute other java native thread concurrently in the Java Native Interface.When a Java thread called a native thread to use java native interface, Java thread is blocking for processing native thread.So, other java threads don't execute because they are blocking.Why do these ...

calling C++ Objects within Java code

309 byte By hannes99a at 2007-10-3 10:15:18
Hi guys,I am currently facing the problem, that I have a huge C++ library and I would like to make use of it. My problem is, how to invoke C++ Objects/Methods within myjava application ?I would be most grateful if someone could help me.Thanks in ...

JVM problem with IE

687 byte By saggia at 2007-10-3 10:18:05
Hi,I have a machine installed with Rational Performance Tester (IBM tool). Also I have installed JRE 1.4 on my machine.The problem is whenever I open a website in IE 6.0 with Win NT OS, the sun Java console doesnt get invoked. I did change the settings of Java Plug-in in Control Panel but still ...

Test JVM

422 byte By Sean_Smitha at 2007-10-3 10:18:10
Hi,Can anyone tell me if there is a utility I can use to tell whether the Sun JVM is working correctly on a machine not connected to the Internet ?I have got an application which involves communication with a remote machine and need to figure out whether it is the JVM on the local machine that ...

How to use JNI for existing .dll and .h

229 byte By kvijaia at 2007-10-3 10:18:56
Hi allI have gone through many articles on JNI, but I didnt get any article which can descibe for existing .dll and .h.Could anybody help me how to use existing .dll and .h files?Thank youkvijai

JVM crash CODE DUMP

16727 byte By kxba at 2007-10-3 10:21:02
Hi ,I'm using a shared library under linux and every once in a while the jvm crashes and looking at the core dump, I can't figure out what/where/why about the problem.essential info java version and os infojava version "1.5.0_05"Java(TM) 2 Runtime Environment, Standard Edition (build ...

Hotspot access violation running Eclipse on Windows Vista

23448 byte By Nick_Radova at 2007-10-3 10:23:44
I am experiencing repeated Hotspot crashes with JDK 1.5.0_09-b03 when using Eclipse 3.2.1. The crashes began when I upgraded from Windows XP to Vista (x86) so I assume that there is a compatibility problem. (Yes, I am running the final release version of Vista, not a beta). Most of the crashes ...

Transfer of a java object

624 byte By yanis97a at 2007-10-3 10:27:19
Hi; I search an JNI example with C/C++ to check if it is possible to send a java object with JNI. I have a class java 揂?with 2 methods: - getCustomer (): get an java object Customer- checkCustomer (Customer c): print an Customer objectThe external prog (C/++ or other) calls the method ...

Keep connection open over multiple JNI calls

390 byte By rojocaa at 2007-10-3 10:28:57
I have a dll (which I use via the JNI) which opens a connection to a database and gets some data. I need to get data every 10 minutes. However, actually connecting to the database is very slow.Is it possible to create the connection once and reuse it, or do I have to connect every time.NOTE: It ...

Frequent VM Crashes

24669 byte By damian_penneya at 2007-10-3 10:33:03
I've been getting a lot of JVM crashes, upgraded from Java 5 to Java 6 and still no dice. Looks as though it crashes during GC and this affects both JVMs. Included are my first and latest crash logs (there are many more!) The app that is crashing is Intellij 5.1Here is my first crash log## An ...

Calling JNI_CreateJavaVM from C++ dll

656 byte By mikymike4a at 2007-10-3 10:33:13
Hey, I've spent most of my time on the internet today, looking for an answer to this . I use a framework, that can only call __stdCall methods from dlls. Have been trying to create such dll, using JNI, but I always get the same problem : my dll has dependencies to dll I don't have ...

JNI findClass does't run properly

2751 byte By Stefano_unilea at 2007-10-3 10:33:17
Hello,I'm new with jni ... i'm tryng to access a java class from inside a c native code in order to map such class to a c struct.More in depth, for example, I have a java class with 2 fields of type int (final int id=1, final int value=2) ... once I load such class inside the native code and ...

Calling a method that returns an object Array

483 byte By n_mcleana at 2007-10-3 10:33:28
Hello.During a JNICALL , I wish to call a method which returns an object array.ie my java class has a method of the formpublic MyObject[] getSomeObjects(String aString){MyObject[] theObjects=new MyObject[10];...return theObjects}Is there an equivalent to (env)->CallObjectMethod(...which ...

non-heap memory area spring leak in JVM 1.50_6

7356 byte By nylesa at 2007-10-3 10:34:56
Please let me question though it doesn't understand be good from this topic. A problem occurs when testing as follows. The problem is to generate memory leak in non-heap area.%java CconnectTest2 129.24.34.68 130.104.10.50 6101 5000 185000 100(%java -server CconnectTest2 source-ipaddress ...

Weblogic GC Problem - Please assist

3480 byte By Aebya at 2007-10-3 10:35:10
Hi,I am working on WebLogic(for the first time) with a sun JVM on a 8 CPU solaris machine, we have set the GC algorithm as,"-Xms2048m -Xmx2048m -XX:NewSize=576m -XX:MaxNewSize=576m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -Xverify:none -verbose:gc -XX:+PrintGCTimeStamps ...

efficency of jni method call?

520 byte By angelswingadama at 2007-10-3 10:38:44
hello!i am new with jni, and my english is poor also, hope somebody know what i have said.recently, i am developing a gis application with jni, the spatial data is processed with c++, i use java to get data and draw shapes by calling jni methods, but i find it's very slow when drawing. by the ...

catastrophe (22439): CORE1267: out of memory

3612 byte By chEwBaCcaa at 2007-10-3 10:38:47
Hi all,i have a SunOS mwsbit03 5.9 Generic_118558-22 sun4u sparc SUNW,Sun-Fire-V240 with 4 GB of RAM and a swap space of:swap 4.3G 96K 4.3G 1% /var/runswap 4.5G 193M 4.3G 5% /tmpIn the last days, my web server gives to me the following errors... and then reboots itself.[23/Nov/2006:12:12:49] ...

JNI uses JVM resources?

320 byte By NunoRodriguesa at 2007-10-3 10:39:49
Hello all,I've tried to figure out if JNI consumes the JVM resources or if it consumes system resources but i did not succeeded. For example, if i do a malloc() using JNI when called by an application that is running in a JVM, does the JVM heap used memory increase? Best ...

Garbage Collector on Critical-Mission Methods

254 byte By lucasdeoliveiraa at 2007-10-3 10:44:14
Hello there!I have some application methods here that cannot work together with GC, so I need to pause GC before the program execution gets to that point, execute this method(s) and unpause GC . Any ideas or directions? thanks a lot!

Loop Return

620 byte By tonyc713a at 2007-10-3 10:44:36
I have written this code To Validate User Input: System.out.println ("\tPlease Enter The Loan Amount In Dollars:");loanAmount = dataIn.readLine();dollars = Double.parseDouble(loanAmount);if(dollars <= 0 || dollars >1000000)System.out.println("Enter Amount Greater Than Zero And Less Than ...

wrong java.library.path in Netbeans?

895 byte By ray_auga at 2007-10-3 10:47:09
I write some java code and call native method with JNI, it does not work under netbeas, but work well in terminal. I try use System.out.println(System.getProperty("java.library.path")); to know what's wrong, i get two different output:netbeans: ...

where's the bug in my little program?

3759 byte By purebeggera at 2007-10-3 10:49:36
I'm a fresh jni coderI try to use native code to print the contents of integer array data in an converse object after successfully compiling,I run itOops!JVM crash buginfos fill in all my screen!!!Help me find the bug,thank youTest.javapublic class Test{public static void main(String ...

can anyone recomment some books on JNI?

193 byte By purebeggera at 2007-10-3 10:49:38
I'm a new jni coderI hava just finished the JNI topics in the book of "java core"I searched the internet for several hours but cannot find a good book about advanced JNI~~

Getting the actual exception message?

304 byte By pauljlucasa at 2007-10-3 10:50:33
I know about ExceptionOccurred() and it returns a jthrowable, but there doesn't seem to be any JNI API for doing anything with the jthrowable object, such as getting the name of the exception (as a string) or the stack trace (as a string).Is there any way to get this information from ...

Dependencies for speed of new generation gc

4685 byte By abiesa at 2007-10-3 10:59:04
I have two applications, doing very similar thing (they are both routing data from one source to another). They have almost the same number of thing to process per second, they are both done with a lot of shared code. Unfortunately, I can observe big difference in new gc times between both ...

How can i pass string from C++ DLL to Java via JNI?

289 byte By c_atlantis@yahoo.coma at 2007-10-3 10:59:43
Hi everybody. I made a DLL with Borland C++.I must pass a string from this dll to Java via JNI.Namely i define a string variable in C++ DLL and i send this variable's value to Java via JNI. I can pass integers but i couldnt Strings. . How can i do this? is there any sample?

EXCEPTION_PRIV_INSTRUCTION

3872 byte By help_eachothera at 2007-10-3 11:00:04
Hii JavatiesI got EXCEPTION_PRIV_INSTRUCTION exception while running a jsp on Weblogic Server 8.1.Unexpected Signal : EXCEPTION_PRIV_INSTRUCTION (0xc0000096) occurred at PC=0xA724A0Function=[Unknown.]Library=(N/A)NOTE: We are unable to locate the function name symbol for the errorjust ...

jni compilation problem

3198 byte By syracuse900a at 2007-10-3 11:00:33
hello,I'm trying to make an interface between java and a c++ program.I get everything wroking except for one method. And I have no clue how to solve it.I have a function in c++ :SchedulerOsa::SchedulerOsa (JNIEnv *env, jobject obj){printf("osa sched created\n");env_ = env;obj_ = obj;}Event ...

Compilation decision

1291 byte By com.stevebrechera at 2007-10-3 11:03:49
(Context: I'm new to Java, not to development)I would like to have my frequently-executed code in a long-running enumeration/calculation application compiled and to have methods inlined. I can't seem to achieve this except in cases that are unpredictable (to me).I am running jre 5.0.90.3 on ...

SUN JES 8.1 Q2UR2: Long time taken in getting database connection.

3953 byte By csgan97a at 2007-10-3 11:07:52
Application server registered intermittent slowness in getting database connection from javax.sql.DataSource. Based on the following JMX value, the application servers still haven抰 reached the threshold. Its identified the slowness was due to application server performing validation (select ...

SUN JES 8.1 Q2UR2: Long time taken in getting database connection.

3953 byte By csgan97a at 2007-10-3 11:07:53
Application server registered intermittent slowness in getting database connection from javax.sql.DataSource. Based on the following JMX value, the application servers still haven抰 reached the threshold. Its identified the slowness was due to application server performing validation (select ...

SUN JES 8.1 Q2UR2: Intermittently application server jvm crashed.

1548 byte By csgan97a at 2007-10-3 11:08:00
Application server jvm intermittently crashed but due to the feature in SUN JES 8.1 ur2 the application server will auto restarts the service. Most of the JVM crashes were due to memory corruption.The following are SUN findings:1)Multithreading issue that causes 2 threads writing on the same ...

Need Help On GC.

968 byte By saiprasad_ta at 2007-10-3 11:08:38
Hi,Can any one answer my question.As part of my application performance testing one of the container in my application using more memory.(Java Based Application).This application is on solaris platform. When the application started this container normally uses 400 MB. When the load increases on ...

-XX:SurvivorRatio JVM option

706 byte By DiegoCarzanigaa at 2007-10-3 11:09:09
Hi everyone!I launched my application using for GARBAGE COLLECTION these options: -Xmx512m -Xms512m -XX:MaxNewSize=24m -XX:NewSize=24m -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGCSurvivorRatio is 2, so I expect two survivors spaces of 6 MB each one and an eden space of 12 MB. ...

How to run 64-bit native code with Java Web Start

916 byte By krutherforda at 2007-10-3 11:10:34
This question has probably been asked many times, but I couldn't find anything in my searches.How can I get Java Web Start on a Solaris client (Solaris 10 in this case, with JRE 1.5) to run a java application that includes a 64-bit native code library? The application downloads fine, including ...

UnsatisfiedLinkError, missing dll

540 byte By nikos_fta at 2007-10-3 11:10:42
Hi,I have created a really simple jni application. When I run it i get the following exception"Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.5.0_08\bin\win32lib.dll: Can't find dependent libraries"and a message box pop ups saying "This application has ...

jni.h file not found when creating dll

1597 byte By DanielMcDonalda at 2007-10-3 11:12:31
I'm just learning how to use the JNI and have been following the tutorial provided by Sun. My knowledge of C and its compilation system is very limited (I'm a Java generation programmer) I try to create a dll using the method proposed by the tutorial like this:cl -Ic:program ...

Linking error - JNI_CreateJavaVM

369 byte By Freakkka at 2007-10-3 11:13:36
I get the following error when using the JNI_CreateJavaVM function to embed a JVM in my c++ code...Linking...sample2.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12Debug/sample2.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.Help requested ...

Oracle JDBC OCI driver access in Tomcat

1479 byte By gssachdevaa at 2007-10-3 11:14:56
Hi,I have a piece of code which I have to run in tomcat 5.5.7. This code is using Oracle JDBC OCI driver for database access. For use of OCI driver, the native library libocijdbc10.so has to be included.When I run this code snippet as a standalone Java programme (standalone JVM), I do the ...

Full GC unloads sun.reflect Full GC takes long

19294 byte By jmkdeva at 2007-10-3 11:15:13
I have an app that runs fine for several minutes and between two GC cycles, the young generation heap cannot be cleaned. When this happens a Full GC is invoked causing the JVM to unload sun.reflect classes that appear to be obfuscated and only used once. I am thinking the sun reflect classes ...

obtain a std::ostream from a java object?

562 byte By Steve_Robbinsa at 2007-10-3 11:16:24
Howdy,I'm using SWIG to create a java wrapping of a library (DCMTK) which has methods that take a std::ostream parameter. I can certainly write C++ code that returns a std::cout or that opens a file and returns me the ostream.However, java already has nice stream classes that can go to a file, ...

Full thread dump meaning

2325 byte By DaDaDeva at 2007-10-3 11:16:34
Hi,We're using a heavyweight Java application with a 1.4.1 JRE who happens to stop running correctly under unclear circumstances.Our analysis lead us to produce "full thread dump" traces. These traces seems quite identical but a closer look shows us some differences we don't understand:When ...

Very long full GCs cause audio glitches due to memory and disk thrashing

935 byte By volley_sea at 2007-10-3 11:23:10
Hi,I've written a small application which plays audio in real time. Everything works fine, except when I use it on a computer where memory is scarce. In particular, I get audio glitches whenever a full garbage collection occurs.I suspect this happens because most of the heap has been swapped ...

Passing and caching jclass

941 byte By NotALizarda at 2007-10-3 11:36:22
Hi all,In my C JNI Library, I want to be able to construct objects of Java classes i have made that are not the class containing the native method. However, for speed I don't want to FindClass() every time I want to construct. I know that I could make a global reference and cache that, but is ...

class structure

454 byte By shashank_tulsyana at 2007-10-3 11:37:21
I have two java class files which are about 1MB in size. When I decompile them I get a file of size about 30KB. When these classes are run they show an iconified frame, but there is no icon in the folder (The class has been copied to a new location). It seems that the class has embedded files ...

My Own ClassLoader with Class.forName(String className);

615 byte By Rajendra_Kotharia at 2007-10-3 11:39:04
Hello All,I have tryed to implement my own ClassLoader to do some extra work when each class is loaded. My ClassLoader try to find the class in a classpath first, and if the class is not found, it should find the class in some directory specified by me and instantiate it.I have created a custom ...

Can't load IA 32-bit .so on a IA 32-bit platform

423 byte By s_sozonoffa at 2007-10-3 11:40:36
Hi All,java.lang.UnsatisfiedLinkError: /root/workspace/skype_api/release/libJSA.so: Can't load IA 32-bit .so on a IA 32-bit platformHas anyone any idea what this message is supposed to mean? This occurs when trying to load a JNI Library. Do I need to compile it with some special flags or ...

out of swap space

2222 byte By koneru_1980a at 2007-10-3 11:41:58
Hello everybody , I encountered an issue in regard to allocation of heap memory for the JVM. I have an t argets for starting and stopping mysql data base and tomcat 5.5 server. I am using java 1.5.09. The tomcat start and stop targets are <target name="start_tomcat_server" > <exec ...