We have a stand alone Java application that is a J2ee client. The client runs on a linux box running the 2.2.18 kernel. We are using the IBMJIT for 1.3.0 I have the ulimit -s 2048 set in the shell script that launches the java app. I am running it with java -ssim -oss1m -ms32m -mx64m we are ...
175 byte By
rvela at 2007-9-26 23:24:23
i'm trying to write a binary number, but i don't remember how, i remember that hex numers are written like 0xFFbut how do i write a binary number
307 byte By
rpawluk at 2007-9-26 23:26:00
I have the need to use a common Java Properties file accessible from multiple JVMs.I need to be sure that when I do a store() on the file, that some other instance running in a separate JVM does a load() before doing a store() of its own.Anyone have any ideas on this?-Rob ...
161 byte By
bahmed at 2007-9-26 23:26:37
Can't handle Korean characters through jstring or jobject. How do I do this? is it a Unicode string or a UTF string? any help would be rewarded!!!
500 byte By
kostrich at 2007-9-26 23:27:16
Hi, my name is Chang Hee Lee and I am a programmer in South Korea. We are developing a messenger program in JAVA. I have been trying to create a tool like MSN messenger's "Always on top" function under Tools in the menu bar. I could not find any way to develope the same function in JAVA. I ...
1107 byte By
vickyk at 2007-9-26 23:28:03
Hi,I have been going through the OS fundamentals and the concept of VMs.Once the java.exe is being called the new process is created and can go in any of the transitions: 1)Process blocks for input 2)Schedular picks up another process 3)Schedular picks this process 4)Input becomes available ...
477 byte By
vickyk at 2007-9-26 23:28:08
Hi,I had read in books that these days the operating sys tem can be written in programming language.Fotran has been mentioned there and I believe this can be done with the java also.I dont get the exact ided from where to start with development. Can any one among you expalin this to me in the ...
Hi,My application runs as a command line utility. On most of the machines, it works fine. But on few Win2000 systems it executes and at the end gives:# An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM.# Program counter=0x0#What could be the reason behind ...
Hi all,This is a tricky one. I have played around with Java under Unix for a while. My programm was working under Sun Ray with a normal heap with version JDK1.4beta3. I then decided to put it under JDK1.4rc.....Boum. The programm keep on exploding after 6 to 7 hours of threading with giant size ...
1134 byte By
Chelsea at 2007-9-26 23:32:43
I am trying to read a string array through JNI.The java function is as follow:Class MyNative{private native String[] getStrings( );static{System.loadLibrary("MyNative");}}The C function is as follows:JNIEXPORT jobjectArray JNICALL Java_MyNative_getStrings (JNIEnv * env, jobject obj){jstring ...
648 byte By
rcorbett at 2007-9-26 23:33:34
Hey FOlks.I have a DLL that is called from my Java app. I want to be able to tell the DLL when my app is closing so that the DLL can destruct and free its resources. My probelm is that I am using a finalizer in my class (I want to be able to do this instruction when its required, ie, when the ...
99 byte By
chitrala at 2007-9-26 23:36:24
How to view thread dump of a jvm when executing any application or a program ?
Hi,Given is an shared library for Windows (*.dll) or Solaris (*.so).These libraries are included for native calls by using JNI. Is it possible to identify the version of the JDK which was used for creating this libraries?TIA,Frank
I'm trying to load a file into a table. Using tokenizer to parse through each delimited field works fine until I hit a null. Whenever it sees a null it ignores that field and jumps to the next value. Inserting space into these fields will work. I'm including 2 lines from the load file and the ...
2104 byte By
rational at 2007-9-26 23:39:09
Problem: The garbage collector on my server runs aprox every 1 min forabout 8 secs swamping the CPUs.-I started a not so big version of my "big server" using the following:JDK 1.4Windows NT 4.0Compaq Proliant with 4 CPUs @ 800Mhz4GB SDRAMI am starting with the following parametrs:-mx1536m ...
1811 byte By
Hector73 at 2007-9-26 23:40:44
Hi all.We've recently been performance tuning our java application running inside of an Application Server with Java 1.3.1 Hotspot -server. We've begun to notice some odd trends and were curious if anyone else out there has seen similiar things.Performance numbers show that our server runs ...
256 byte By
chetan21 at 2007-9-26 23:44:31
Hi All,I want to know is it possible to get the windows registry if i know the key path and the name ?Is java is capable of doing this ? If yes please give me the details.Kind RegardsChetan Chandarana
835 byte By
gcordrey at 2007-9-26 23:47:38
I am attempting to create a .so that contains JNI code that uses another .so.Following directions found at http://forum.java.sun.com/thread.jsp?forum=52&thread=94702I am doing gcc -shared -Wl,-soname,libbar_java.so bar.o libfoo.so -olibbar_java.sowhere bar contains code that depends on ...
Hi,I am getting this error when I run my client side code.Any pointers as to how to get rid of this warning. WARNING: Could not lock User prefs. Unix error code 37.Mar 15, 2002 11:29:09 AM java.util.prefs.FileSystemPreferences syncWorldWARNING: Couldn't flush user prefs: ...
664 byte By
kamranA at 2007-9-26 23:49:12
Hi Gurus:I need to know how I can call methods (inside native code) on a Java object that I passed into the native method.This might be helpful in understanding what I want: JNIEXPORT jobjectArray JNICALL Java_translate_CgmTranslation_createCGM (JNIEnv *env, jobject thisobject, jobject part){// ...
382 byte By
wesjw at 2007-9-26 23:49:13
I see in the source code that the protected method ClassLoader.findLibrary(String libname) simply returns null.I need to determine **before** issuing System.loadLibrary(String libname) where the absolute path that loadLibrary finds the library. Does anyone have any examples for providing my own ...
Hi :)I am trying to build the client VM on RedHat Linux 7.1. I have religiously followed all the pre-requirements, making sure that I meet them all. Nevertheless, I get a bunch of error messages. They are divided into two categories:- "cannot convert int * to socklen_t * in various methods in ...
Hi:I want to convert vrml to java 3D by using the vrml97 loador. I download the "vrml97.jar" and place it into the jre/lib/ext directiory of my Java Runtiome Enviromnment.Then I compile the my file("Vrml.java",you can find from the underside);There is not error found,but when I run the ...
250 byte By
mnmmm at 2007-9-26 23:54:40
i'm new to java i want to know some info and URLs about it, and also hear about Starting JVM and Attaching Processes to JVM or JVM server.i'm realy confused and need some explaination, URLs, Tutorials,....thanks for help
What is java.security.AccessControlException?Thanks a lot!!
Hi friends,i need your help.i facing a problem.i build a software using jsp/oracle 8i/jrun 3.1(new version)when i click on a particular html link then immediately my cpu processes of javaw.exe graph goes to 100%.that i can't do other processes with server.the configuration of the server is ...
Hi I've recently upgraded my system to win XP and now every time I try to run a compiled java application I get this error. It worked perfectly on Win 98, and I've tried reinstalling all the relevant software.I'd appreciate any help ThanksColin
309 byte By
thbala at 2007-9-27 0:00:04
Hai,I am new to JNI world. I want to access the functions that are written in C using JNI, can any one of you tell me some references to the sample code. Also is it necessary to convert the data types that are used in the C functions with the JNI data type ? Thanks in advance,Bala ...
My program need to clear up the inforamtion in dos promp,which java method can clear up screen
Hi,I have to invoke an Applet method using a COM plug-in,kindly suggest some solution.Is it possible for a COM Plug-In to invoke an Applet method ? Is it possible to display the Applet in tool-band (COM Window) ?Thanks in anticipationPAT ...
The JVM specification says this:"...A ConstantValue attribute represents the value of a constant field that must be(explicitly or implicitly) STATIC; that is, the ACC_STATIC bit in the flags item of the field_info structure must be set..."Why STATIC? Why not FINAL instead of STATIC?When I first ...
674 byte By
kaishef at 2007-9-27 0:05:12
HI,I'm using a java class called JMatlink to connect my java program to Matlab (a mathematic tool).To do this we must write :JMatLink engine = new JMatLink();engine.engOpen();I tested a sample like this and it work very well.But when i do the same thing in another java program it doesn't ...
674 byte By
kaishef at 2007-9-27 0:05:15
HI,I'm using a java class called JMatlink to connect my java program to Matlab (a mathematic tool).To do this we must write :JMatLink engine = new JMatLink();engine.engOpen();I tested a sample like this and it work very well.But when i do the same thing in another java program it doesn't ...
123 byte By
rzex at 2007-9-27 0:08:52
How can i convert german umlauts(from c to java) whitin char array to jstring via jni function NewStringUTF?
167 byte By
netnet1 at 2007-9-27 0:09:46
Hi!how can I get the state of a VirtualMachine? I only need, is it running, or is it suspending? or any state else...?Thx by!
303 byte By
puszi at 2007-9-27 0:10:51
There is a method called canGetBytecodes() in the com.sun.jdi.VirtualMachine interface.The JVM of Sun (1.4.0) answers true for this questionbut I have not found any way to get the bytecode.Is it possible?(It is possible to get the bytecode of a method, I know.) ...
390 byte By
thbala at 2007-9-27 0:10:53
Hai, I am using a servlet and I am calling the JNI method, but it is throwing an error like "java.lang.UnsatisfiedLinkError: check_file". (check_file is my JNI method.)I have checked the included header file name and function name, they are proper and correct. Can any one tell me some solution ...
340 byte By
rcorbett at 2007-9-27 0:12:44
hey Folks.Is there any way for me to make callbacks into Java to a class other then the one I invoked my native methods from?I know how to make callbacks to the class I connected to my DLL from, but I'm looking for a way to access other classes that I have instantiated,Thanks for the ...
Hi,I'm working on the project that needs to use C/C++ file as the main part to call java class or functions. I search some books and found out JNI will do the job of using Java to call C/C++ files, not all the way around. Does any body knows how to do that or know some books that would help, ...
768 byte By
smj_jmp at 2007-9-27 0:13:15
Hi,i call NewObject() function in a PLI/C/JNI app to create a java/lang/Vector instance.My Verilog simulator (ModelSim PE 5.4b) crash without display an error code.Please take a look , and see what is wrong with my code.//--jclass jclass_Vector;jmethodID jmethodID_Vector_new;// ...
hi . everyone.i have problem like this..and i have no idea what to do.my program(pwas) is webserver.and this happens when i run client bench marking tools(sending java requests).OS : solaris Unexpected Signal : 11 occurred at PC=0xfc12ac90Function ...
161 byte By
byesuja at 2007-9-27 0:16:05
Hi,Is it Possible to check out and check in the VisualSourceSafe File using the java code.If anyone have the code please send it.Bye.
797 byte By
sflydsp at 2007-9-27 0:16:44
Hi,Suppose we have a C++ class with a method like this:bool myMethod(AClass *param1, AnotherClass *param2); Here, you can see clearly that there are two more C++ classes which probably will have to be adapted to Java. But in the translation with JNI, calls to myMethod (when the class is written ...
Hi,I'm having a performance issue regarding threads. My application reads from the database (say 3000 records) for a request. When I run 1 request the execution time for the request (both SQL execution and reading from DB)is 1 secondWhen I run 8 different JVM's on a solaris box having the ...
Hello,some history, I have successfully been able to compile, link and run a program that invokes a JVM from the 'main()' function of a program. Once I get the jvm, I am able to get classesand methods for a *.class object and call them methods.This works greate.Now, I am trying to move this ...
409 byte By
autophil at 2007-9-27 0:21:33
Hello all,I am working with a piece of software that requires the use of some very large datasets (i.e. 1 Gig or more). Yes, I'm having trouble getting them in. I have noticed that when I play with the max heap size when I run my application-the amount I can set it to differs from machine to ...
458 byte By
l_adams at 2007-9-27 0:23:04
I have a server application running as a service on Win2k (we use Service+ to do this). The output of the console is piped to a text file which we can monitor. But, I can't figure out how to generate a thread dump while running in this configuration. Does anyone know if Service+ can be ...
1191 byte By
LokiBabu at 2007-9-27 0:24:00
In my Windows application, I am creating a new thread using CreateThread function, and in this thread I am loading JVM into my application using JNI_CreateJavaVM. Till this point it's ok.But, after sometime, from main thread I am trying to kill the java thread using TerminateThread. But, the ...
in c++ there is a method called IntToStr or vise versa....whats that in java?thx for yar help.Silvercrow
Hi,I want to write a java library, which is actually making use of some low-level system calls. Is there any way to achieve this without using JNI? Suns awt, comm etc package obviously involves native system calls. Are they using JNI to achieve this?