can anyone help me in using existing dll library I read JNI tutorial it tolds me to create java code then create dll library but my problem is I l ready have the dll library any help plz.
312 byte By
shay_tea at 2007-10-3 5:23:41
i am trying to return a new jstring tomy java aaplication.my method dont get any argument..how can i create a string witin the method and return it to the java programmanother way ,is it posible to get the C printf stringsin the java spplicationthanks ...
184 byte By
jvdla at 2007-10-3 5:24:17
Hi there,i've written a java app for matlab with a gui.When i close the gui, matlab always closes too.Is there any way to stop this behaviour?thanks
HiI want to convert jstring object to wstring object (vice verse) in Visual C++.NET 2003 including Unicode Support.For Example ()wstring wstringObj = someWStringConversionMethod(jstringObj);and jstring jstringObj = someJStringConversionMethod(jstringObj);Thanks in ...
160 byte By
supca at 2007-10-3 5:26:52
Hi all, What I mean is when GC occurs (maybe during mark, sweep, compaction), will it make other threads in VM to pause ?ThanksKenny
I have 2 service batch files say service1.bat,service2 .batservice1.bat is as follows:C:CD C:\scriptjava ServiceMonitorservice2.bat executes the java file that uploads data into database reading from a fileMy ServiceMonitor.java file is as follows:public class ServiceMonitor{public static void ...
202 byte By
KennySua at 2007-10-3 5:30:26
Hi all: I know some tools can monitor java thread status, but if there has any way to know the cpu or memory ratio for each threads on a linuxsystem.ThanksKenny
98 byte By
theoa at 2007-10-3 5:31:00
Dear All,How to set date time computer with Java in linux OS?Rgds,Theo
10618 byte By
roboa at 2007-10-3 5:33:58
All - I am seeing some *very* strange inconsistent floating point calculations on Windows Laptops, and I am wondering if anyone has any ideas. Read on, as (to me!) it's very interesting....I have attached a segment of our code, along with some sample output. Looking at the code and the output, ...
Hi all,I am new to this forum. We have all kinds of extended support , we tried all of them. but of no use. Finally I came to this site with hope.We are running on solaris 8 . We have 4 virtual servers running on this machine with three servers on j2sdk 1.3.1_18 and one on 1.4_04(due to vendor ...
1255 byte By
radonea at 2007-10-3 5:36:05
Is it possible to add native library into JAR?Archive: JarTest.jarMETA-INF/META-INF/MANIFEST.MFtest/test/Hello.classtest/Native.classlibtestnative.so[/code]MANIFEST.MFManifest-Version: 1.0Ant-Version: Apache Ant 1.6.5Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)Main-Class: ...
Hi, we are running a very simple java program on HP-UX that do some text substitution - replacing special characters with other characters.The files that are converted are sometimes very large, and now we have come to a point where the java server doing the work crashes with "Out of memory" ...
92 byte By
Dhar@9a at 2007-10-3 5:36:17
what impact will the method system.gc() have if i call it in one of the user methods.
Hi everyone, i have problem with cyrillic input on linux ( gentoo ) system. The inputted character looks very strange. First i think that this is problem in netbeans but i found that it's not. After running notepad from demo apps the problem is the same. Any ideas how to fix this
Hello!I am the Java begginer!Can somebody tel me where should I put my jogl.dll, jogl_awt.dll and jogl_cg.dll files to install my JOGL on my computer.The following eror messege is dislayed:Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.pathMy attempts to put ...
2843 byte By
Adam_a at 2007-10-3 5:39:47
<Unsure where this should be posted>Hi, I have a bit of a problem with loading a class using defineClass.When I load the bytes of a class file and covert that file to a class, using defineClass, the generated Class object seems to work fine. I can call new instance without a problem.The ...
hi,i developped a project and i made a exe .once i clicked on the exe it is running i want to restrict the sam form second time.
597 byte By
tycuzza at 2007-10-3 5:45:47
I have a simple Java program which utilized native library through JNI. And the JVM crashed 3 to 4 times out of 10 attempts, it was not consistent, and I know there is an issue of illegal memory access on the native side.However, i tried to use JRockit JVM from BEA, version 1.4.2 and 5.0, both ...
hi ,i want to know that in which memory JVM stored. i mean heap or stack or any else..............
Please help me!The following error message occurs while running application that uses JOGL.Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\jogl_cg.dll: Can't find dependent librariesat java.lang.ClassLoader$NativeLibrary.load(Native ...
125 byte By
Sukesha at 2007-10-3 5:47:50
Hi,how many threads will be there in jvm of 1.4 or higher sdk? threads i mean it includes all jvm threads also.
834 byte By
steffia at 2007-10-3 5:49:15
It seems our startup script is still using 1.4 like options upon startup. Can anybody tell me if any of these options are cause the default behavour of 1.5 and it's "Ergnomics" and Behaviour based tuning to be different?-XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintGCDetails ...
172 byte By
uptherea at 2007-10-3 5:52:00
can anybody tell me in detail about jvm crashing?Is this related to memory?Is this similar to memory leak?Appreaciate ,if any body solve this...
15476 byte By
filufga at 2007-10-3 5:55:38
Hello,i have a random problem with a applet that makes IE crashes. It only appens 1 or 2 times in a day. I have JRE 1.5.0_06.Can any one help? I have no clues..## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6fba06, ...
2473 byte By
ACaycia at 2007-10-3 5:58:46
Hi,I am sorry if this has been reported before. I did a search and did not get any hit back.When I run the following jsp code, I am getting the below error in Oracle Application Server log## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0xf78c1c0e, ...
Thanks for reading my post.I have a JNI application (.dll on Windows and .so on Linux and Solaris) that was compiled with jdk 1.5. Without recompiling, can I take the JNI application and run it on a JDK 1.4 java application? So far I haven't seen a problem doing this. Can someone tell me if I ...
From what I read here http://mindprod.com/jgloss/jni.htmland here http://www.javaworld.com/javaworld/javatips/jw-javatip17.htmlit seems that you cannot instantiate (call a constructor) a C++ class from a Java class. You need to have a C++ class that does it for you, and then the Java class ...
Hi,I wish to identify the assignment pattern in the bytecode, which corresponds to the language level: variable = method_invocation; where variable may be a local, or field. Is it always safe to say the following?This pattern is: the invokevirtual/invokeinterface..., immediately folllowed by ...
16036 byte By
WWCWa at 2007-10-3 6:08:55
I am using IE version: 6.0.2900.2180.xpsp.050928-1517; and Windows XP Professional Version 2002 Service Pack 2I was opening a link from the ESD HKgov website, the page was checking my settings to verify compatibility to their program (Window Titled: Check Client Config).Here is the link: ...
19594 byte By
nakkayaa at 2007-10-3 6:09:37
i have an parser application it is a distributed system nodes download pages and parse them write to the database (mysql using mysql jdbc driver ) after 5-6 hours application crashes with a segmantation fault i have catch clauses at the main entry of execution but i have nothing writetten to ...
440 byte By
robicha at 2007-10-3 6:10:55
Hi all.I've tried to use "JaWin" and "Jacob" as tools for generating Java code from DLLs.Unfortunately, I've noticed that none of this projects seem to be updated nor maintaned by someone, though they (jacob, above all) have been useful to me.What I'm asking is if someone of you know other ...
HiSwing based application with JRE 1.4.2_08 crashes on some PC's runing on Windows XP.Pls find the log.....Any idea why it happens?rgdsJobineshUnexpected Signal : EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) occurred at PC=0xF84C86Function=java.lang.Object.hashCode()I (compiled Java ...
Hi,I want to call a generic dll from JAVA. The dll is provided by thirdparty. I am able to load it using "System.load("dllName.dll");" but i am now confused how can i call the methods. Since it is not made by me using JNI so there is not method with "native" keyword.Is there any way to use its ...
Does anyone know what value is returned when AttchCurrentThread is succesful? I'm trying to call into a java function from the native callback code but have been unsuccesful. The code looks as follows: ////////////////////static JavaVM *jvm = NULL;void Callback cb(){JNIEnv* jenv;int res = ...
Hi all,I try to implement a pen tablet (xy-tablet) as an input device. Since using it as a mouse resulted in different x and y values depending on some (for me) unknown factors I descided to implement it using the JNI. The implementation from Rekimoto (zip file) ...
Hi,I just want to know what are the implications in increasing the javaheap space? What are some of the options or the best garbage collection algorithm to use to reduce the GC pause times?Any articles or pointers to reduce the pause times of GC is appreciated.
1514 byte By
pritela at 2007-10-3 6:29:29
Hi All,I am trying out a native code which accepts as the input parameter, a reference to a java object. This reference is stored into a static variable inside the native code, and retrieved from another java thread.In short - the code in Java looks like MyObject d1 = new MyObject( ...
980 byte By
SakyHRa at 2007-10-3 6:35:41
I downloaded this version of Java and then tried to install it on my computer. But i coludn't. Here is what I get, when I tried to run jdk-1_5_0_09-nb-5_0-win-ml.exe.Error in instructions. Invalid jvm file name specified in LAUNCH. Invalid variable specification. Line number (4)At first, I had ...
HI all,I am getting an error during run time of kind ..*****************************************************************************JVMDG217: Dump Handler is Processing Signal 11 - Please Wait.JVMDG303: JVM Requesting Java core fileJVMDG304: Java core file written to C:\Program ...
193 byte By
d17maya at 2007-10-3 6:40:36
I use Tomcat with Apache .Now my boss tell me to port the application to 64 bit Windows .What i need to move application to 64 bit and where can i find the resources.Thanks
1154 byte By
Sonecaa at 2007-10-3 6:42:15
Hello!!I would like to know why i'm getting this excetion below when i try to sign my certificate file:"keytool error: java.lang.Exception: Alias <server-alias>has no (private) key"After I execute the following commands:creating a keystore<JAVA_HOME>\bin\keytool -genkey -alias ...
Hi,There is a java class name myClass which has an ArrayList field named as data. There is a function in java classpublic void addData(String dataValue){data.add(dataValue);}now i am calling this method from JNI to add data which is being collected from the system specific dll. MyDll is ...
I am trying to run a simple jni program fron this site " http://public.cabit.wpcarey.asu.edu/janjua/java/jni/ " on Red Hat Enterprise Linux AS release 4and jdk 1.5.09 , AMD opteron. But when i run the command "gcc -I /usr/java/jdk1.5.0_09/include/ -I /usr/java/jdk1.5.0_09/include/linux/ -shared ...
Hi,I am using JNI to launch some windows based dll's dialogs. When I am doing it as a separate application its working fine. But when the same code I am moving in some package then getting "java.lang.UnsatisfiedLinkError".What can be the reason that code is not working after moving in a ...
I抦 running a fairly large java application and am getting java.lang.OutOfMemoryError. I could increase the heap size in my development environment to eliminate this error. However, I don抰 know how to set this in a deployed application. We are currently using ant to build our software. Another ...
994 byte By
Ash.iea at 2007-10-3 6:52:01
Hi there,I have a tomcat server that was working fine and when I accessed it after the weekend it got locked up. It is still running but all theads are in a BLOCKED or IN_NATIVE state. Therefore the application is not responding ...First strange think was I got no output from the threaddump ...
I new to Java,I have one basic doubt regarding JVM,Is JVM designed by the OS developers or SUN itself design the different JVMs for the different Operating Systems?
Hi all,I am very new to JNI. Actually i am doing a debugging task and has to understand the flow of the application. I got a set of class files from which i decomplied the required class and got the java program. But that java file calls a native method with some parameters. Is it possible to ...
71551 byte By
cfernana at 2007-10-3 6:59:41
While running my jkd 1.4.2, Solaris 9 based application, the JVM crashed with the dump below. I would appreciate any feedback on the issue.## An unexpected error has been detected by HotSpot Virtual Machine:## Internal Error ...
3812 byte By
RickWa at 2007-10-3 7:00:45
I have an application that calls back from C to Java in multiple situations. In some, I have been successful using the technique of calling AttachCurrentThread as described, for example, in various places, e.g., ...