261 byte By
rcorbett at 2007-9-26 19:58:12
Hey folks.Can anyone tell me how to return an array from a call to a java method?My java method is of type public float[] foo() {}how do I call this function from my DLL and then process the array that gets returned from Java?
881 byte By
jchua2 at 2007-9-26 19:58:56
Hi,I need assistance on how to troubleshoot my console, with the following errors:java.lang.VerifyError: (class: Solar, methode: DeleteServer signature: ()V) Illegal use of nonvirtual function call.Another machine has the error:load: class Solar.class not found.java.lang.ClassNotFoundException: ...
562 byte By
bwarrick at 2007-9-26 20:02:45
If there was a JRE implemented within an ISAPI Extension I bet the number of downloads would be hugh. The ISAPI Extension would allow IIS to handle Java almost natively! I wonder if MS would like this? This is definitely something that should be free as it would take marketshare and mindshare ...
375 byte By
vivekg3 at 2007-9-26 20:04:31
I understand that we don't need to build HotSpot seperately with j2sdk1.3.1?I want to use Forte for Java to, during the installation of which, it says "The setup could not locate a JVM version 1.3.1 or higher. Select the "bin" directory where the java.exe file is located.I would really ...
Does anyone know how much operating system memory a java Thread actually uses? Specifically, we are using Sun's JVM 1.3.1 on a Windows 2000 platform. When we create 5000 Threads, the Windows TaskManager reports memory usage of about 120meg. Yet calls to Runtime.totalMemory() and ...
Other than Sun's JVM, are there any other good, free ones available? I'm curious to see if there are any with better performance, mainly.thanks,Andrew
308 byte By
hmnaguib at 2007-9-26 20:09:28
Hi All,About the method newStringUTF() which converts a UTF-8 C charcater Array toJava String Object.How can I pass to this method a multibyte (Arabic/Hebrew) charcaters ?Isthere any other methods or work arrounds to pass such charcters from C toJava . ...
Hi all. I'm new at this..please help! I've read a chapter on the use of threads in Java in one of my reference books. Here's a quote:"The instance variable topofStack in class StackImpl is declared volatile, so that read and write operations on this variable will access the "master" value of ...
344 byte By
aberezin at 2007-9-26 20:12:37
JDK1.4 was suppose to have concurrent GC. It seems Sun has quietly pulled it. Does anyone know what happened? It seems that there is a "fog" of GC related issues but not a lot of improvements around that. We are working on a very large heap app (2GB) and GC times are terrible, greater than 30 ...
251 byte By
TamarG at 2007-9-26 20:13:04
Hello all, Does anyone know a way to install applet classes (jar files) in the client disk and to force the explorer to take the files from there and not to download it from the server ?Please help meThanksTam
Hello All,I was wondering if anyone knew if it's safe to cache the JNIEnv pointer that you get back from AttachCurrentThread(). Here's the scenario:I'm working with an asynchronous messaging product (like Tibco RV, IBM MQ Series, etc...) and their Java API is too slow. Therefore, I've ...
413 byte By
mtndood at 2007-9-26 20:16:24
Im going to the JNI portion of the java tutorial. It only gives an example of a DLL that takes no arguments and returns nothing.Am I right to say that the "intended" way to use JNI for return values is to use the Jni API from within your DLL to create and work with java objects ? What simple ...
373 byte By
vchawla at 2007-9-26 20:16:41
Hi,I have some piece of code, which works fine on NT but when I use the same piece of code on Solaris. I get the above stated exceptions but the processing is fine. Its just irritating messages on my console.can somebody help me please?I am using Solaris ...
As a Java Newbee, I thought I was getting the hang of this....I have a wrapper round some C functions written using JNI. The native class has a constructor, in which I call one of the native methods to create an instance in my wrapper round the C functions.Everything worked fine, but now I am ...
As a Java Newbee, I thought I was getting the hang of this....I have a wrapper round some C functions written using JNI. The native class has a constructor, in which I call one of the native methods to create an instance in my wrapper round the C functions.Everything worked fine, but now I am ...
Hi thereI have a little problemI have an DLL that is loaded into JavaThe problem is that this DLL is loading other DLL'sWhen I run this on a windows 98 machine theother DLL's should be located in the JRE\bin\ folderbut on windows 2000 machines they should be located in the winnt\system32 ...
309 byte By
popal at 2007-9-26 20:19:14
Hi !Is there any tool providing the possiblity to build the header files and other corresponding files from the java classes which contain native methode declarations ?Is it possible to post your answers to the account Khaled.Popal@eds.com too ? !RegardsKhaled ...
120 byte By
tomym at 2007-9-26 20:19:48
Can any one tell me, In Window NT environment Java is running in 16 bit or 32 Bit mode ? Tomy
120 byte By
tomym at 2007-9-26 20:19:50
Can any one tell me, In Window NT environment Java is running in 16 bit or 32 Bit mode ? Tomy
777 byte By
kamranA at 2007-9-26 20:22:27
Hi Native Gurus:I have a little problem with creating jni headers. My java classes are part of a package called "translate". When I create the jni header file using:javah -jni translate\CgmTranslationthe header file created is called:translate_0005cCgmTranslation.hinstead ...
623 byte By
Bhought at 2007-9-26 20:23:02
To all;I hope this is a simple question. I've been through theJNI Tutorial, amd most of this forum, but have notsatisfied my question.Q. Can I call an XXX.exe program from Java?Detail;I have an old pager.exe program(Windows 98) andwant to call it from JAVA. I don't have the source,for the ...
On a Windows 2000 Professional SP2 machine using JRE 1.3.1 02 with 2GB of physical ram and 3GB of swap, I am trying to set the memory on the JVM above 1 gigabyte using:java -Xms512m -Xmx2048m ...and I receive this error message:"Error occurred during initialization of VM. Could not reserve ...
37 byte By
kilkil at 2007-9-26 20:27:52
What is a demon thread?
281 byte By
mtndood at 2007-9-26 20:28:52
I finally was able to get the JNI example that is shown in the Java tutorial. I kept getting the dreaded UnStatisfiedLink exception. I removed the class from my package, and voilla. Now to figure out the naming issues when your class is in a package or JAR....
669 byte By
bebenko at 2007-9-26 20:29:24
Hi everybody.I have small problem. I'm trying to call dll (jnidll) function (f1) from java that calls function (f2) in another dll (that is not jni - actually is 3rd party so I cannot change it).I have no problem calling function f1 from my java application, and I have no problem calling ...
420 byte By
sennaMom at 2007-9-26 20:33:08
I have a standalone java application. It runs fine with all my jni calls though my native dll. However, I added some libraries and some functions from 3rd party in my native dll now. When I run my java application, it poped up an Microsoft Visual C++ Runtime Library error message: Runtime ...
457 byte By
sd2tsg at 2007-9-26 20:35:05
I have a servlet running in BEA Weblogic Server on Unix machine. I want to add some computingfunctionallity.I have this computing program already written in cobol. It is a very large program(20000 lines of code)Does anyone have suggestions have to integrate this cobol program into the java/unix ...
6472 byte By
vratidlo at 2007-9-26 20:35:54
Hi all,I started use Forte 4 Java and in last time have problems. I cannot open this aplication. In startup everything are load but in "Opening project default" the system get me this error message: An unexpected exception has been detected in native code outside the VM.Unexpected Signal : ...
633 byte By
krvijay at 2007-9-26 20:41:02
HiI have a String array.I would like to search this array for a particular String. Are there are any methods available to return the index of a particular element in the array.For Eg. If the array has {"AAA", "BBB", "CCC"}I would like to see if BBB exists in the array. If it exits i would like ...
211 byte By
leewingh at 2007-9-26 20:41:25
does anyone know the side effects of compiling program codes in a lower version of JDK and executing the classes in a higher level of JDK?eg. codes compiled in JDK1.2 and executed in JDK1.3.
Hi.We've had an issue with regard to the Java VM for quite some time now. It involves the amount of memory consumed by java (and javaw). We have a swing-intensive application which makes use of numerous JDialogs and JWindows. This causes the size of the java process to bloat very quickly (it ...
I am running a Java program in Suse Linux for s390. Its a very simple program that retrieves a couple of dozen records from a DB2 database running under a remote VSE partition. The program works, it just takes about 15~30 seconds to run. The exact same program in C++ runs in about 200 ...
Unless i had some specific needs, i would choose notify() in a threading scenario.notifyAll() will wake all waiting threads, one will obtain the lock, and then all others will return to the wait state.which clearly is a waste of resources !a) has anyone tested the difference between the two.b) ...
339 byte By
v_sanas at 2007-9-26 20:47:17
Hi !I have a class in which there are some private and some public data members. I want to get the name of each data member ( public as well as private ) along with its data type in order to put this information in vector. Vector is in the same class. how can I do this? does ne 1 know the ...
300 byte By
etst at 2007-9-26 20:48:45
We are using JNI to communicate between the native code (in C) and Java. One of the calls we are using is GetJavaVM. The code compiles OK but I get a LINKing error. " it says ...unresolved external symbol GetJavaVM"Am I missing to include some libraries?ThanksSrini ...
165 byte By
az_din74 at 2007-9-26 20:53:20
Where can I download J2ME installer and how to install. Could you please tell where can I find support on JVM for WINCE and MIPS processer.thank
Hi,i am trying to call a method of c++from java using JNI,the c++ method is a member functionof a class....compilation is no problem....at run time ,UnsatisfiedLink exception iscoming..........the moment i make the native method a simplemethod....i.e not inside any class...there isno ...
1632 byte By
khohl1 at 2007-9-26 20:57:01
I didn't find an answer to this in any FAQ or the 2 JNI books I have, so apologies in advance if this is a common question whose answer has already been posted -Do any guidelines exist for when, and to what extent, JNI should be used?I'm currently working on my second project where the ...
305 byte By
anto2 at 2007-9-26 20:58:07
Using the String Tokenizer Class, I have realized that giving a long sentence, this class breaks it up into tokens,but the first word (or token)is not taken in consideration and is not appear in the list of the tokens.Is the class like that or there is something I have missed? ...
269 byte By
juanwaj at 2007-9-26 20:58:48
Does exists any way to force the VM to reload a .class file each time? Something like IBM VisualAge does when some change is introduced in a class.It would be usefull when debugging and recompiling an application without restarting all the process.
329 byte By
psiworks at 2007-9-26 20:59:00
Hi, Is it possible to use a JRE to compile a JNI program and then use another JRE to run it? For example, I'm compiling my program linking with Sun's libjvm.so and libjava.so. But at run time, I'll change my LD_LIBRARY_PATH to point to IBM's libjvm.so and libjava.so. Would it work at all? ...
An SMP computer that has 7 cpus runs a program that has 7 threads. The threads are distributed evenly and among the cpus. now 7 "instances" (run seven copies) of the same program is run on each of the cpus with each cpu having its own JVM. But the second case turns out to be faster.Could this ...
1558 byte By
LokiBabu at 2007-9-26 21:07:25
Folks,I am very much new to the JNI on Windows 2000. For the last two days, I am trying to load JVM into my application. But, could not succeed. Even the samples I got across the net failed. The problem is "JNI_CreateJavaVM" returns -1.Using Microsoft Visual Studio 6.0, and VC++, I created a ...
Hello!Ive had an error executing an aplication using JDK1.3The error message was:HotSpot Virtual Machine Error, Internal ErrorError ID: 53414645504F494E540E43505002EAabnormal program termination Can anyone help me?Thanks in advance. ...
345 byte By
osbald at 2007-9-26 21:11:38
Can anybody help me with this rather cryptic comment pulled from the sdk 1.4.0 release notes:"The J2SE 1.4.0 platform accepts class file versions in the range 45.3 to 48.0. "What does this mean in real jdk versions, anything complied under 1.02 1.1.2 etc? anybody care to guess what class file ...
Hi All,i am trying to call a java method fromnative side(c++)the java method takesone string argument.i am able to compile the c++ code,but when i run the java prog.i am gettingJNIPanicErrorlet me clear myself with an example....****JAVA SIDE*****public class a{public native void call();private ...
639 byte By
v_sanas at 2007-9-26 21:12:27
Hi !At some point inside a class, I have name of the constructor of another class and the arguments to be passed to it in the STRING format. I need this information to invoke this constructor of other class. How can I do that?For example, I m in the constructor of the class named "Carrier". ...
912 byte By
mtndood at 2007-9-26 21:13:45
Excuse my ignorance for this question - but wouldnt there be a lot less memory use from running multiple Java programs by implementing the VM in a "shared library" ? What if I want to run several programs from several different vendors all at the same time. Lets say I have a spreadsheet program ...
696 byte By
ytsau at 2007-9-26 21:14:19
Hi gurus,I've seen all kinds of JVM for different platforms (not yet for my HP Jornada 540 though :-/). But I never saw a standalone JVM, which doesn't need any OS, or I should say, itself is the OS. I believe it is now possible to do so, as the JVM is hardware dependent and supports numerous ...
906 byte By
ldscra at 2007-9-26 21:15:12
In JDK 1.4, with the following command line:C:>java -versionthe output will be:Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)Can anybody tell me what does the word "b92" means in the above output? does it mean that ...