190 byte By
ggrn at 2007-9-26 9:17:16
As the cc command in Solaris is :cc -G -I/usr/java/include -I/usr/java/include/solaris \filename.c -o libfile.sowhat will be the similiar command in LINUX system?
914 byte By
jcoutur at 2007-9-26 9:22:23
Subject: Number of DB2 Connections Restrictions on AIX Created by Jocelyne Couturier on 10/10/2001 at 03:48 PM I have a multi-threaded application that allocates a pool of 13 database connections. The database is B2 V7.1.0 on AIX. When executing the application remotely from VisualAge 3.5.3 ...
Can someone tell me a Windows BAT command or send me a simple Windows program that will return the real physical memory of the computer it is running on?WHY I WANT THIS:I know that I can set JVM -X parameters in order to set initial and max heap sizes. What I want to do is figure out what to ...
499 byte By
yeonh at 2007-9-26 9:23:40
Hi,I have an Object that gets locked by various threads via a synchronized block. Something Like:class MyThread extends Thread{public void run(){synchronized(someObject){// do stuff to some Object}}}Is there an easy way to have an another instance of MyThread examine "someObject" and see if it ...
758 byte By
horeye at 2007-9-26 9:23:45
HI,Some one please help me understand this situation!How can the class below compile and run without implemementing runnable or extending thread?Is the code --try { Thread.sleep(5000); } refering to the main thread?What is supposed to happen at the end of 5000 milli sec?import java.awt.*;public ...
Hello, I hava a native C function that creates a Java array (int[]) through NewIntArray and returns it out of the function itself.I'd want to know if this java-array, returned from the functin, is automatically garbage-collected.Thanks
Hi,I've got a Java-class that includes a GUI. If I create an instance of that class in Java , there are no problems. The GUI becomes invoked.But if I try to instanciate this class from the native side (the class is found and also the constructor) I get no reference to it and no GUI appears. ...
I have tried to realize the example of the tutorial at http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html (Invoking the Java Virtual Machine). But it does't works.anyone can tell me what means javai.lib, it's javai.dll or what? Where do I can download it eventually?I'm ...
761 byte By
desau13 at 2007-9-26 9:27:31
Hello all,I'm wondering if anyone has any insight on this:Why is Sun's JVM for Solaris and Linux so much slower than their JVM for Windows? I'm running Forte For Java, v3.0 on the same system (PIII 600/640 megs ram). I've done this with JDK1.3.1 and JDK1.4b2.. all results are the same. When ...
465 byte By
jawnh at 2007-9-26 9:27:41
Does anyone know what the following message means?I am linking libjvm.so into my C application and invokingthe JVM from the C code.I am using JDK 1.3.1 for Solaris.Thanks,JohnThere was an error trying to initialize the HPI library.Please check your installation, HotSpot does not work ...
314 byte By
bumbes at 2007-9-26 9:28:32
Hi there!Hm, shame on me but I really don't get it.I just want to do sth. like that:int i = someInt;if ((i %=2) == 0) {dosth();}How do I manage comparing an int value with an Float value reduced to the "int-part"?Thanks in advanceBumbes ...
293 byte By
murali79 at 2007-9-26 9:29:25
Hi Guys ,The tutorial in this site talks about creating ur own DLL's and then calling them from Java . I need to call C functions in existing DLL's from Java . How do I go about doing this ? . Any help on this would be much appreciated.regardsmurali
3278 byte By
JavaZach at 2007-9-26 9:31:15
I am having problems getting JNI to work when I try to run a Servlet that invokes native calls.I have a small, simple java program, just to test the waters, that simple calls a small shared library. It works like magic when I run the program as a simple application.However, when I turn it into ...
Hi,My multi-threaded application(Win2000, JDK-1.2.2_006), gave a thread dump and it caused one of the threads to crash. Can someone point me what could be the reason for this. Please see the thread dump below. Thanks,SenthilFull thread dump Classic VM (JDK-1.2.2_006, native threads):"Thread-2" ...
3896 byte By
MainS at 2007-9-26 9:36:06
Hello!I have a problem with JNI and a Wrapper.dll:I've created a Wrapper.dll to call a Native-Methods-DCOM-DLL from Java. The Java-Program itself works fine, also the functions in the wrapper.dll. However, if I run both, I get a crash of java.exe.My Java-Program loads the DLL correct, finds ...
Hi, can anyone tell me what i do to read winnt user-name from a java program?I know that the user-name is stored into a system variable called USERNAME.Thanks in advance and excuse me for my english.Daniele.
252 byte By
DeepaJ at 2007-9-26 9:40:06
Call anyone help me in this error. I'm using JDK1.3 and Win2000.Exception in thread "main" java.lang.UnsatisfiedLinkError: fixedStaticat JNIServer.fixedStatic(Native Method)at JNIServer.main(JNIServer.java:56)
2437 byte By
DeepaJ at 2007-9-26 9:40:25
Can anyone help me in this error.E:\JNI\Ex5JNI>java -hotspot -Djava.library.path=.\EX5JNI\FixedStatic_Interface\Debug JNIServercalling FixedStaticINSIDE TRY Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d4408d9Function ...
493 byte By
vinay076 at 2007-9-26 9:42:11
I have an application the entry point of which is servlet.With multiple hits ,service methods create threads for each request.My question is:1.How may such threads can be created?if it depends on m/c architecture how to calculate that if i know the no of hits?2.IF i want to give a faster ...
255 byte By
gmm18 at 2007-9-26 9:42:41
Hi guyz...What i want to ask is that, is there any relationship between JNI and J2ME or in other words is there any way by which we can call native methods from J2ME platform?Plz reply to this....Thanku in advance
953 byte By
DeepaJ at 2007-9-26 9:45:20
Hi, While running this program i get the following errorUnexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d4408d9Function name=JVM_EnableCompilerLibrary=D:\jdk1.3.1\jre\bin\hotspot\jvm.dllProgram: jobject colorResult_obj= env->GetObjectField(jbox,fid6);jclass color_class ...
How to get the server name/hostname on which JVM is running?
How to get the server name/hostname on which JVM is running from the Servlet or normal class?
425 byte By
ekonig at 2007-9-26 9:47:58
Hi All,I am invoking the JVM using the following command:# java -Xms16m -Xmx64m -Xnoclassgc -Xverify:none -Djava.security.policy=lib/java.policy -Xms256m -Xmx256mand would like to know which of the two values of the initial and maximum heap size the VM is using. I mean, will the initial heap ...
799 byte By
sivabada at 2007-9-26 9:49:33
Hi i am calling a java program from a shell script. While i the java program runs successfully when run from command prompt, it does not run when triggerred by another program. The gid runtime is also different, which is how it is required. i get the following error when run with the different ...
575 byte By
peshk at 2007-9-26 9:52:23
hello,I like to improve my applet so that it access a Server program via a client/server system.I am thinking I should just write my own Server program and just open a socket to it on some port. I have two questions, 1) How do I set the proper permissions on my Host machine so the applet can ...
A)What are the various JVMs available for different IBM Mainframes? B)Is there a specific JVM available for the MVS Operating System of IBM systems? If yes, where from I could download?Have a nice day !!! Thanks....
1643 byte By
ssst at 2007-9-26 9:58:48
Hi. I'm new to programming in MS Java. Please help! When I tried to run the Java program (which uses a few of the WFC classes) using Jview, it outputs an error:"warning: running 1.2 version of SwingUtilitiesjava.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged Possible ...
Hi ,i want to read the some properties in windows 2000 from java, If u go tocontrol panel - System - hardware - Device manager - port - COM1 then right click on it and see the properties, and click the Port Settings.I want to read the bits per second from there.Ashish ...
Hi:Can anyone provide ideas to reduce the process size of a simple java application running on Sun OS v5.8 box ? All this application does is call Thread.sleep(300*1000). "top" command reports that the total process size is 28M and resident memory size is 8M. The following is one of the lines ...
754 byte By
knewsom at 2007-9-26 10:00:17
I have a long running Java application. Each iteration is triggered by an external event. At the beginning of each iteration a custom class loader is used to bring the class that the application needs for this iteration. Each time the class loader is invoked memory usage increases. This ...
703 byte By
nirupamj at 2007-9-26 10:01:27
Hi,I need to invoke C++ prorams on multiple computers using a single java based application. The present solution I have thought of is running web servers on each of the computers and hosting a servlet that invokes c++ executables locally on that computer. This servelet is invoked by the ...
I use 'javac' compile a file,when i excute this file ,system show 'Error occured during initialization of VM'.why?
344 byte By
asiriw at 2007-9-26 10:05:13
Hi AllI have some java methods which I invoke using C++. Some methods contain a splash window created using awt (extending Window class). The GUI is displayed but the java code won't exit after executing the GUI. Basically the C++ code halts because of this.Can some body help me with ...
============I tried to run the sample application provided by the tutorial on MulticastSocket. I use the java2sdk.I get the following error messageException in thread "main" java.net.SocketException: set socket option failed (code=10055)at java.net.PlainDatagramSocketImpl.join(Native Method)at ...
725 byte By
satyapal at 2007-9-26 10:08:08
In Java when I am calling the getBytes(bytes) I do not know the size of the byte array. Only in the C++ code I will know how long the Byte Array is going to be. In C++ I just want to copy "cbytes" into "jbytes" such that I will be able to make use of it in Java.Java Code:-private static native ...
Hi:I'm trying to invoke multiple java Servers from a Controller class to enable starting all the servers in a single JVM. The code is shown below:public class Controller {/** Creates new Controller */public Controller() {}/*** @param args the command line arguments*/public static void ...
429 byte By
prepaq at 2007-9-26 10:11:35
hi, could someone look at this: http://inf4serv.rug.ac.be/~jvbesien/Mines/appletpoging/applet.htmlThis applet runs in appletviewer, but it fails in opera, netscape and IE.Sources are in http://inf4serv.rug.ac.be/~jvbesien/Mines/appletpoging/Code is in Dutch, but shouldn't be too hard to ...
Hi there,I am new to using jdk and I am using weka for a class project. Weka is a data mining software and I am getting this message:Java.lang.outofmemoryError <<no stack trace available>>I am not sure how to increase the available memory for the jvm. Your prompt advice will be ...
623 byte By
apexcom at 2007-9-26 10:14:45
I am getting the following message out of JNI*** ALERT : JNI local ref creation exceeded capacity (creating: 17, limit 16).at java.lang.System.initProperties(Native Method)at java.lang.system.initializeSystemClass(system.java:858)Could this be in any way related to the fact that my class is ...
716 byte By
frankki at 2007-9-26 10:14:58
I've the problem, that n threads share a resource(sharedObject).The synchronization is done in an synchronizedBlock:synchronized( sharedObject ){// do something with sharedIbject}I would like to know in which order the thread schedulerof SUN Solaris VM of the JDK 1.3 or in general,gives the ...
763 byte By
DArtiss at 2007-9-26 10:15:43
I hope I'm posting in the right forum here. Apologies if I' not - please be gentle !!Okay, I've just installed XP and apart from the fact that virtually none of my hardware now works I'm left with various errors from XP telling me that my Java Plug-in (1.3.0_01) won't work and I need to ...
279 byte By
mkergo at 2007-9-26 10:17:31
Hi,Strange behaviour with these two components under Windows 95. When I try to launch applications trough Windows explorer (i.e. by clicking on a Word document icon) and the JVM is active (applet running), nothing happens till I close the browser. Any idea ?
When a Java virtual machine shuts down abruptly (e.g. user type ^C or user logoff), does the Java virtual machine execute the finalize() method of all the objects in the heap? If not, could you please tell me where should I put the cleanup code of my application so that they will get execute ...
234 byte By
lambu76 at 2007-9-26 10:19:14
Is there any way, any method, to open a dir in a window and show, in this window, its content, such as I'd clicked on this directory ?I've preferred an O.S. independent way, but it's not so important.Thz
2203 byte By
suzyg at 2007-9-26 10:20:06
Hi,I have implemented a JNI application (In C) that receives and processes traps on Sun Solaris 7. The native method has an infinent loop to read a trap and then send the trap as a string to the Java method. The problem is that I can only receive one trap. When the second trap comes the ...
I have Application that use it's own ClassLoader ,this application runs System.loadLibrary() normal,thah it executes another JVM exec("java -cp ...."); and the second App runs the same DLL with System.loadLibrary() <- here it hangs.They are useing the same ClassLoader.
264 byte By
jhguo at 2007-9-26 10:24:34
HI,has anyone tried the KVM 1.0.3 package?I have some problems when compiling and linking.There are some functions missing, such aswinDrawLine......I dunno if there is a file missing.Your help is highly appreciated!
187 byte By
kwbeh at 2007-9-26 10:25:23
hi,i found error when create shared library in linuxgcc -I/usr/local/jdk/include -I/usr/local/jdk/include/linuxHelloNative.c -o libHelloNative.so
144 byte By
alided at 2007-9-26 10:25:36
Hi, I need to load class when I only have path to it and it's file name. How can I do this ? Is it possible ?Thanks