using existing dll

222 byte By anaskoara@hotmail.coma at 2007-10-3 5:23:14
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.

returning jstring

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 ...

when closing java app, matlab closes too

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

jstring to wstring conversion vice versa

322 byte By UKEngineersa at 2007-10-3 5:25:25
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 ...

does GC pause the world inside the VM?

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

Java out of memory error

1157 byte By snooperscreena at 2007-10-3 5:30:22
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 ...

how to get thread's cpu and memory ratio ?

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

Set Date Time Computer with Java in Linux OS

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

Inconsistent Floating Point Math and NaNs on Windows Laptops?

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, ...

need little help

28601 byte By newsubseta at 2007-10-3 5:34:35
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 ...

Native library & JAR

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: ...

Problem with out of memory and reservation of memory

3090 byte By caplm_71a at 2007-10-3 5:36:08
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" ...

Will system.gc() force garbage collection?

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.

Posts:1Registered: 9/13/05JDK 1.5.0_07 cyrillic problem

297 byte By Matrix_Na at 2007-10-3 5:37:31
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

JOGL

469 byte By Anvarbeka at 2007-10-3 5:38:14
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 ...

ClassLoader problems..

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 ...

Single instance

142 byte By Deepika_nca at 2007-10-3 5:39:54
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.

JVM Crashed Inconsistently

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 ...

where JVM stored in memory

112 byte By Rajesh_Gupta1980a at 2007-10-3 5:47:00
hi ,i want to know that in which memory JVM stored. i mean heap or stack or any else..............

Error message

312 byte By Anvarbeka at 2007-10-3 5:47:49
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 ...

How Many Threads inside JVm while running

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.

Are these options appropriate for jvm 1.5?

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 ...

Jvm crashing

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...

IE Crashes with a error log in desktop

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, ...

An unexpected error has been detected by HotSpot Virtual Machine:

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, ...

JNI application executed on a different JDK

546 byte By janeyounga at 2007-10-3 6:01:52
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 ...

Question about C++ class instantiation and JNI

869 byte By squiddoga at 2007-10-3 6:07:28
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 ...

What is the pattern for such assignment in bytecode?

477 byte By Sunny_Daya at 2007-10-3 6:08:23
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 ...

IE 6 auto close by Java Hotspot and error msg generated

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: ...

Random VM Crash

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 ...

Class-generator Tools

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 ...

JVM Crashes ginving Unexpected Signal : EXCEPTION_ILLEGAL_INSTRUCTION

12138 byte By Jobinesha at 2007-10-3 6:16:00
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 ...

Calling a generic DLL?

323 byte By M.Ali.Amina at 2007-10-3 6:17:49
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 ...

Help with AttachCurrentThread

1609 byte By kteegalaa at 2007-10-3 6:21:13
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 = ...

Acessing a xy-tablet with Jwintab

3292 byte By wprijsina at 2007-10-3 6:23:07
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) ...

Does increasing the javaheap freezes the application

282 byte By scoolersa at 2007-10-3 6:27:30
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.

Passing, storing an retrieving an object reference in JNI

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( ...

HELP ME!!!

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 ...

Java runtime error related to JVM

581 byte By cool_buddya at 2007-10-3 6:36:28
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 ...

Move application to 64 bit from 32 bit

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

Exception when I'm trying to sign my certificate file, take a look please!

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 ...

Setting Fields value through JNI

755 byte By M.Ali.Amina at 2007-10-3 6:46:06
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 ...

Jni issues linux

724 byte By balakumara at 2007-10-3 6:46:37
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 ...

JNI problem

670 byte By nnagwania at 2007-10-3 6:47:29
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 ...

How to set the maximum heap size on a deployed application?

525 byte By marisadev1972a at 2007-10-3 6:48:56
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 ...

All JVM Threads in BLOCKED or IN_NATIVE state

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 ...

JVM for various OS

178 byte By Pavan@chillaraa at 2007-10-3 6:52:20
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?

How to see the code?

377 byte By nvraman_83a at 2007-10-3 6:56:23
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 ...

Java HotSpot unexpected "Internal Error"

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 ...

JNI Callback from remote process

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., ...