SIGSEGV on linux

22025 byte By NancyGlenn at 2007-9-26 23:24:10
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 ...

help declaring binary numbers

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

How can I lock a resource across multiple JVMs?

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

JNI with Korean characters anybody?

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

Can i create "Always on top" funciton in JAVA?

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

OS and VM

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

For OS gurus?

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

EXCEPTION_ACCESS_VIOLATION exception?

409 byte By skhunteta at 2007-9-26 23:28:56
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 ...

Solaris Heap grow for no reason ....

789 byte By phil_perel at 2007-9-26 23:30:23
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 ...

Error ID: 4F533F57494E13120E43505002D4 in SetObjectArrayElement

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

DLL destruction

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

Thread dump

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 ?

Getting the JDK version for an shared library

286 byte By FAFischer at 2007-9-26 23:37:11
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

Tokenizer ignoring nulls

1128 byte By kristoltaylor at 2007-9-26 23:38:05
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 ...

Garbage Collector Problems

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

Performance: Solaris vs. wIntel

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

Getting windows registry ?

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

Solaris shared library that depends on another shared library

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

Could not lock User prefs

412 byte By padmajar11 at 2007-9-26 23:48:00
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: ...

Calling methods on a java object parameter

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){// ...

ClassLoader.findLibrary implementation returns null

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

Problem building Client JVM on RedHat Linux 7.1

541 byte By nikitas25 at 2007-9-26 23:54:21
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 ...

Convert Vrml to java3d?

3365 byte By jianfeizhu at 2007-9-26 23:54:22
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 ...

What Hotspot means

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

error!!help me!!

80 byte By jianfeizhu at 2007-9-26 23:54:42
What is java.security.AccessControlException?Thanks a lot!!

why cpu graph goes to 100% of javaw.exe

476 byte By sanjeev2002 at 2007-9-26 23:57:10
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 ...

Java virtual machine error "Could not find main class"

289 byte By Campbell22 at 2007-9-26 23:58:20
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

Accessing the functions in C

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

How can I clear the common line information

108 byte By gambobill at 2007-9-27 0:00:23
My program need to clear up the inforamtion in dos promp,which java method can clear up screen

COM interaction with Java Applet

314 byte By vipin_adlakha at 2007-9-27 0:00:29
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 ...

Class file format.ConstantValue attribute.

800 byte By bhadzialic at 2007-9-27 0:01:30
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 ...

java.lang.UnsatisfiedLinkError

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

java.lang.UnsatisfiedLinkError

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

NewStringUTF with umlauts

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?

get the state of a VM

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!

Is there any way to get the bytecode of a class loaded?

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

calling JNI from my servlet

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

JNI calls to other classes

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

How to use c/c++ to call java class

368 byte By Keegan92840 at 2007-9-27 0:12:53
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, ...

NewObject crash in a PLI/C/JNI code

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

HotSpot Virtual Machine Error : 11

4676 byte By hyoungwoo at 2007-9-27 0:15:07
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 ...

How to check in check out the VisualSourceSafe File using Java code!!

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.

JNI with a C++ class hierarchy

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

Multithreading Vs Multiple JVM's

954 byte By john_arun at 2007-9-27 0:19:41
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 ...

Invoke JVM from a C++ class

933 byte By mkozikowski at 2007-9-27 0:20:24
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 ...

Max heap size different on every machine

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

Generate thread dump without sending ctrl-break on Win32

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

Not able to kill java thread

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

Dumb but serious

139 byte By silvercrow at 2007-9-27 0:25:47
in c++ there is a method called IntToStr or vise versa....whats that in java?thx for yar help.Silvercrow

is it possible without JNI?

292 byte By balaji_bl at 2007-9-27 0:26:24
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?