181 byte By
ramki24 at 2007-9-26 14:43:45
What are the special optimisations done in JVM Hotspot and the special optimisations done in the Java compiler JIT? Why is the JIT compiler not a part of the Java SDK?
91 byte By
brownt1 at 2007-9-26 14:45:37
How do I convert an incoming jbyteArray type to:const unsigned char* ?
258 byte By
ellarco at 2007-9-26 14:45:39
Where can I find out about how hotspot1.4.beta allocates memory. I mean I want to know the result of sayingbyte[] b = new byte[10];orVector v = new Vector();Allocation block size, compaction, stuff like that. Thanks.
Hi!I am trying to invoke underlying Operating System's commands such as cd, or calling a batch file from my JSP.I achieve this by doing as below:String command = "cd temp";Process process = Runtime.getRuntim().exec(command);I need to know the current directory where this command would be ...
1133 byte By
cdore at 2007-9-26 14:46:48
Hi,Sorry for making more noise than I like to, but I really need to get answers to those questions, about JVM behavior in the JNI side. how to avoid JNI_CreateJavaVM to exit : http://forum.java.sun.com/thread.jsp?forum=52&thread=197180where I try know why this function makes my app exit (not ...
355 byte By
msalline at 2007-9-26 14:53:09
I made a DLL using C and i would like to use C++ too but It doesnt work. There is always errors when I try to compile. The C code works perfectly.Im using Visual C++ 6.0 from Command prompt for compiling.cl -Ic:\java\include -Ic:\java\include\win32 -LD HelloWorldImp.c -Fehello.dllThe code is ...
677 byte By
nirupamj at 2007-9-26 14:54:37
Hi,I need to invoke c++/java programs remotely using a web browser on multiple computers on a network. I am running web servers on each of the computers. These web servers host servlets to invoke the processes locally on that computer. The web front end provides invocation of these servlets. ...
344 byte By
biku123 at 2007-9-26 14:55:34
Hi there,Can any one tell me how I can set the Non-standard option of -Xmxn of jvm (setp by step).Iam using Sun's jvm(jdk1.2.2).Iam facing a error(java.lang .OutOfMemory).I want to set the maximum size of the memory allocation pool.Any help will be highly appreciated.Thanks for ur valuable ...
1104 byte By
theDude at 2007-9-26 14:58:04
Hi. I'm not sure, may this is a standard question, already answered 100 times, I just had a short look and doesn't found a solution.My Problem:I have an external dll and .class File I copied into the Netscape-Plugin directory, so I could use the native method from the dll where the java-class ...
I am IT guy and I am creating a platform ( a roaming desktop) based on internet environment. Right now I use Novell Server as backend to provide file storage place. My desktop platform just like a graphical terminal and enable the user to bring up this terminal by a browser. That means no ...
428 byte By
kamranA at 2007-9-26 14:59:42
Hi Java Gurus:I am having trouble with my program, where two different threads call upon the same native method. My native method crashes as soon as the second thread enters the method.Are the two threads sharing the same instance of the native method?Does this mean a native method cannot be ...
706 byte By
Errthum at 2007-9-26 14:59:47
I have a Java program written to take screen shots of the desktop and save them as a sequence of jpgs (later to be made into an animation). It works great except the program has to be in focus (because of the key listeners, etc.).I want to take the next step and make it work while minimized or ...
789 byte By
sozio at 2007-9-26 15:02:31
Hi,I have some problem on my pc with java applications front-end. I have windows 2000 and use java(TM) 2 SDK, Standard Edition Version 1.3.1 Using every java applications (also development environment as JBuilder 4 Professional and Together 4) I have always some problem with front-end: the text ...
269 byte By
kiosci at 2007-9-26 15:02:49
Hi,I have of an appllication the .h files, the dll and exe,how is the best to integrate this application with java?To start the application i think that i can use Runtime, to control other features is necessary a wrapper?thank
I am trying to create an ODBC datasource from java via JNI. This uses the SQLConfig ODBC function. Below is some CPP and Java that I am using.public native boolean createODBCDataSource(String Driver,String AttStr);public static void main(String args[]){String AttString = "DSN=New Excel Data ...
382 byte By
242915 at 2007-9-26 15:03:27
Hi,im writing a setup program (in java) to install a java program on windows plattforms. during the setup process the user is asked to enter the name for theprogram group in the windows startmenu.question is: how to create the new entry for my application in the windows startmenu?any ideas? big ...
HiWe have recently, installed Oracle Apps 11i. While applying a patch on Apps 11i, we were getting a Java error - Error Loading: ...\classic\jvm.dll. And we are unable to apply the Apps11i patch.I checked the entire Server for JVM.dll, but could not find it.After checking this forum, I found, ...
939 byte By
msenecal at 2007-9-26 15:06:04
I have a program (MyProgram) that displays a bunch of buttons that are associated with other Java programs. When a button is pressed, the classes needed to run that application are loaded (using URLClassLoader) and an invoke() is called on the main class of that application. This executes the ...
598 byte By
cslabs at 2007-9-26 15:07:06
Hi, I am probably going about this all wrong( aka there is probably a better way to do what I want to do, but I want to do it using java)...I want to call a java .class file from a windows .bat file. I was told that "java -classpath theClasspath TheClassName" would work but in my case it ...
We have existing sytem in C++ .we want to interact with the exisitng system using JNI in java.Here i am giving one C++ class which need to wrap using JNI. This c++ class species only public methods.they don't expose any instance variables.Could anyone give suggestions or solutions to wrap in ...
389 byte By
john79 at 2007-9-26 15:10:24
Hi there,Could someone please tell me if it is possible to access hardware ports with java (i.e. like inport() and outport() in c)? Is there any separate API available? (-> NOT the COMM API!!!)If not, do i have to use JNI?Concluding, is there any commercial library that allows you to do this ...
324 byte By
phari2 at 2007-9-26 15:14:04
I am trying to understand the garbage collection process. I am currently running the verbose :gc option useing java 1.2 on solaris 2.7. Could anyone explain what the following means?GC[0] in 10 ms: (128Mb, 95% free) -> (128Mb, 96% free)Also, what is GC[0] and GC[1] ?Thanks in advance.. ...
109 byte By
NoLL at 2007-9-26 15:15:44
Hi, how can I get the source code of the Java Virtual Machine for Internet Explorer ?Thx
179 byte By
abrucher at 2007-9-26 15:18:05
hiI need to call Vb dll from a java.this dll is a com object,, whit a database calling.i neet to see a example, please. abrucher@vtr.net
1529 byte By
ueli2 at 2007-9-26 15:18:36
Newbie trying to create a JVM from C on Win2000. How can I find out what's wrong? Default dir when invoking is where all my code is./***** Code ********/vm_args.version = 0x00010001; res = JNI_GetDefaultJavaVMInitArgs(&vm_args);if (res < 0){ fprintf(stderr, "JNI_GetDefaultJavaVMInitArgs ...
732 byte By
zrakamar at 2007-9-26 15:19:20
I have a problem with merging operand stacks during bytecode verification.JVM specification says that in the case of references, the merged operand stack contains a reference to an instance of the first common superclass of the two types. Such a reference type always exists because the type ...
541 byte By
Lumute at 2007-9-26 15:21:01
Hello All, I am new to JNI so let me apollogise if this is a silly question:I have a third party library in C++ with a function that I call from a selfmade Java application with JNI. The problem is that this function uses information from previous calls to calculate the new result, and stores ...
402 byte By
jetdvk1 at 2007-9-26 15:22:32
Hi all,I have the JNI code integrated to the servlet .The servlet works fine at first time.but when i modified some source code of servlet (not native library) and redeploy it,then reload the same servlet in web browser ,i get "Native library already loaded in another classloader ...
808 byte By
jxt at 2007-9-26 15:25:27
I have to call some 3rd-party code for which I do not have source (just a windoze dll) from JNI C++ code. Sometimes this third party (Fortran) code crashes, taking down the entire process with an "EXCEPTION_ACCESS_VIOLATION outside the VM" message. This is probably due to a segment violation in ...
1222 byte By
Spiritz at 2007-9-26 15:25:28
Hi could anyone help sort this problem out please!My netscape 4.7 browser doesn't seem to handle applets, I can't even run the Java Console. Each time I try to run it, nothing happens, I don't even get any error messages !!!In fact I used to have java 1.1.8 on my system before, but recently ...
795 byte By
JWoodN at 2007-9-26 15:26:28
Hello java community,I am new to Java and especially the jni so your help is greatly appreciated.I am having trouble accessing a Windows native dll from classes in different packages. I placed the .dll in my ClassPath. I am able to loadLibrary successfully from class X in my 'common' package. ...
4243 byte By
sinsai at 2007-9-26 15:26:46
Can someone help me? My C program(DLL) goes out to Bloomberg and gets Real-time prices. My Java program runs for about 10mins, and this exception terminates the program. Below is the excpetion I'm getting:An unexpected exception has been detected in native code outside the VM.Unexpected Signal ...
780 byte By
-Deborah at 2007-9-26 15:26:57
Hello,I use Oracle 8i personal edition and I have a jsp file with an html form. When the form is submitted i call a jsp which calls a bean.The bean executes 2 inserts and 1 update based on values passed with the form.However when I submit the form I get a message (alert) about an error that has ...
I am trying to use the java debugger for the first time .Unable to start the jvm with -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=n -Djava.compiler=NONEErrors out :Transport dt_shmem failed to initialize, rc = 509.FATAL ERROR in native method: No transports ...
437 byte By
rabordo at 2007-9-26 15:30:26
I hava a C++ program that uses JNI to build the environment (classpath, properties etc.) , call CreateJavaVM and execute the appropriate JAVA static main method (CallStaticVoidMethod()). But how do I avoid a console (DOS box) being stared when running the xxx.exe created from this C++ program ? ...
1186 byte By
pnirkum at 2007-9-26 15:33:44
we are using Signed Applet which interacts with C++ dll to perform certain functions.I am able to do this successfully in IE,but Netscape is throwing an Exception,when i invoke an native methodjava.lang.UnsatisfiedLinkError: displayHelloWorld at ...
Hello Viewers, Now we r doing a project on decompiler in cpp for Java Class File. I study the archtecture and some of them.But when i complided this prg and convert to bytes public class aaa{ void abc(int i) {int j=20; } } it does not show the 2 nd pool.i have doubt on this and what is meant by ...
Hello!I am running swing applet using jdk1.3.1_01 and saving some data in database through it,gives following error:An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x7ada95a0Function ...
302 byte By
agace at 2007-9-26 15:34:46
I think this is a silly question, but..., I develop a little program, and I want distribute for free, but if the user have'nt JVM, he can not run the program, I think.Can I make an exe program with java? I know it's not so intelligent, but can I do anything?Thanks. ...
491 byte By
dlupo at 2007-9-26 15:35:18
I have 4 gig of memory on a windows box and am trying to allocate 3 gig of memory to the JVM. The JVM option I am using to do so is: java -Xmx3072mI get the following error:Error occurred during initialization of VMCould not reserve enough space for object heapI tried setting the memory to ...
I am IT guy and I am creating a platform ( a roaming desktop) based on internet environment. Right now I use Novell Server as backend to provide file storage place. My desktop platform just like a graphical terminal and enable the user to bring up this terminal by a browser. That means no ...
330 byte By
242915 at 2007-9-26 15:40:28
hi,i have implemented a c++ dll to invoke COM methodsfrom java. but the COCreateInstance doesnt returnsuccess.i have heard of tool that can decode the hresult error code in something more usefull like a error description.some hints where i can get this tool?ThxRazzle ...
177 byte By
itaimaoz at 2007-9-26 15:41:21
hi,i'm getting a Segmentation Fault without any other information when running a heavy program.how can i trace the problem?thanks,itai
239 byte By
pbroz at 2007-9-26 15:42:09
My program is win32 EXE written in C++.It calls java method through JNI.Now I must create and start new JVM each time the exe is started.Is it possible to find and join JVM that is already running?
272 byte By
veazy at 2007-9-26 15:42:15
since i run my programusing javaw -jar myprogram.jar . the process name is java instance and recorded in the windows task manager as javaw as mny other java programs. I want to find out if previous process running and terminateit.
I am new to Java and need help with .....I want to call a java method (native) from legacy C code.The java code has to return a Hashtable to the C code.My java works and I wrote another java file to call it. Thatalso works fine and I can display my new Hashtable inthe calling java code.However ...
1271 byte By
rtoal at 2007-9-26 15:45:46
HelloI'm noticing the following behavior on an NT system. Onapplication startup, I see Total Heap9 MB Used Heap5.5 MB java.exe memory (from NT Task Manager) 36 MBAfter a "login" operation which loads a few moreclasses: Total Heap12.5 MB Used Heap8.2 MB java.exe memory (from NT Task Manager) 53 ...
1475 byte By
biku123 at 2007-9-26 15:46:20
Hi,Iam facing with one problem I can upload file upto 40mb by running my swing interface(java -Xmx256m ActionDemo4).If I select above 40mb size of file then it giving me Error on Dos-Prompt(java.lang.OutOfMemory).Now I increase jvm memory by(-Xmx540m)then my swing Interface run perfectly but ...
1475 byte By
biku123 at 2007-9-26 15:46:22
Hi,Iam facing with one problem I can upload file upto 40mb by running my swing interface(java -Xmx256m ActionDemo4).If I select above 40mb size of file then it giving me Error on Dos-Prompt(java.lang.OutOfMemory).Now I increase jvm memory by(-Xmx540m)then my swing Interface run perfectly but ...
385 byte By
jasineri at 2007-9-26 15:47:20
Hello,please help with Internet connection, when machine access it throught modem. Is there simple way automaticaly to pop up Dialup dialog, when java application needs to access Internet ? How its possible to check information when connection to Internet was estabilished ? Where to find source ...