After installing J2SE applets will not appear in Internet Explorer 5. I also installed Netbeans and then uninstalled it.Anyone know how to solve the problem.thanks in advance
670 byte By
mperezg1 at 2007-9-26 15:48:58
Hello:I posted this question in a wrong forum.I am working with C and JNI in Solaris. I have no problem with simple programs. When I work with sockets in C. I have an error when I run the program in the moment I make a reference to a socket function. If I do:nm libconexion.so | grep UNDEFI find ...
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 ...
Hi,Im trying to execute a simple Hello World program using the following parameters :/opt/j2se-1.3.1/bin/java -ms500m -mx2500m testingThe environment is Solaris 2.6 ( SunOs 5.6) . Also increased the size of the data segment limit to more than 3 Gig. Any suggestions would be greatly ...
I have used a native method to stop the text echoing from command line. But If I press Ctrl+C,the total terminal hangs!! What could be the problem for this?
4175 byte By
cdore at 2007-9-26 15:53:51
Hi,I am using a JVM as a companion aof a big C program . Thus I start the JVM myself, using JNI_CreateJavaVM.It is a GUI Win2K app, using some JDK1.3 or mosre recent, from SUN or IBM. I would like to able to restart the JVM without restarting my app (for instance, to run it in debug mode, thus ...
1460 byte By
ernestf at 2007-9-26 15:54:03
Hi,I am a developer of on-line stock transaction engine, which also capture realtime quote / index data from stock exchanges and update to user frontend. All components are developed using Java and run under JVM 1.3.1_01. I have two separate Linux servers to run all the backend process and ...
910 byte By
jschell at 2007-9-26 15:56:18
I hadn't actually tested the memory limitations of the jvm before and I was taking the word of others (and I didn't have access to Sun boxes always either.) So I decided to test the limits today.Windows:-NT-1.0 gig memory limit (512 physical, 512 virtual)-Jdk build 1.3.1-b24Using only option ...
2192 byte By
djss at 2007-9-26 15:56:38
Unexpected Signal : 11 occurred at PC=0xc27fdb88Function name=allocate_instance__13instanceKlassFP6ThreadLibrary=/opt/java1.3/bin/../jre/lib/PA_RISC2.0/server/libjvm.sl Current Java thread:"main" prio=4 tid=0x00010300 nid=1 lwp_id=19829 runnable [0x7f7f6000..0x7f7f45d8]Dynamic libraries: ...
Hi. We want to access an existing dll through java. Since we cannot make any modifications in the dll, we are writing a C++ wrapper class. Problem is - I am absolutely new to C++, so could anyone please direct me to some example code that I can study, to write this C++ wrapper. Thanks in ...
Hello Gurus,I want to split the string and work on each split string.The following code will do, but not exactly.It's split into morethan three strings, where coma find.But I want to split it using #,# as delimiter.Here is my code://File fileData = new File("myfile.txt");// This will have coma ...
102 byte By
josegm at 2007-9-26 16:00:19
HiJNI_CreateJavaVM returns -5.What does it means?Thanks in advanced
666 byte By
safir at 2007-9-26 16:07:05
Hi,i have a loop that needs to minimize memory usage, in which i use variables:Matcher m;String line;My question is do i have to say:m = null;line = null;on every iteration of the loop to reclaim memory in Java? In C/C++, i'd have to use delete i believe. But since Java manages memory itself, ...
Hi,I'm doing some embedded system work,and I have to write or transplant a jvm,but I have little knowledge about this. Can somebody give me an illumination about how to write a jvm,and where can I find some source code of jvm in Sun's website or other place.Any help would be welcome. Thanks. ...
986 byte By
GaliS at 2007-9-26 16:07:26
Hi,I have one small c program which is creating JVM for calling java methods in it...res=JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);this returning always -1.....the environment is unixware 7,jdk1.2.2,cc compilarthe path of LD_LIBRARY_PATH ...
Where can I download the sun's jvm source code?Thanks.
Iam trying to run a java thread application thru theRuntime.exec method.The application has to hit the database randomly and updates a field.The problem iswhen the process is launched iam able to see the list in Taskmanager and when destroyed the process is out of the list.My problem is when ...
338 byte By
m-krass at 2007-9-26 16:15:39
Hello, I've programmend a Applet which uses only Java 1.1 programming but it doesn't work in IE 5.0 with Opera 5.02 it works fine . Now somebody told me that I either need to install a plugin in IE 5.0 or look for a Java 1.1 Compiler. Is this wright ? Where can I find this old Compiler ? ...
409 byte By
kanghoe at 2007-9-26 16:15:54
I tried to install the Hotspot server VM on my Windows XP where I am working with J2SE version 1.3.1-02. But setup program refuses to continue sayting that the VM should be installed upon Java v1.2.2 or v1.3. Is it because the J2SE version I'm using is not strictly 1.3?Also, does J2SE ...
4598 byte By
RummeL at 2007-9-26 16:18:18
First off, i've searched around and read this forum without success - so please don't think i'm asking what everyone else is without trying first :)Basically, I would like to embed a JVM in my c/c++ application using MS VC++ on Win2k. I've tried many different things, different variations ...
Problem: I need to modify legacy C code to call a JNI method which will return a hashtable that it will build from a weblogic server.I have a java method that creates a hashtable and returns it (a pointer to it) to my C code.I can not find any JNI function to extract the key/value pairs from ...
884 byte By
zrakamar at 2007-9-26 16:20:19
HelloI need an explanation regarding verification of, for instance, getfield instruction.JVM Spec. 2nd Edition on page 248 says:"If the field is protected, and it is either a member of the current class or a member of a superclass of the current class, then the class of objectref(*) must be ...
Hi Java Gurus,we are Developing a realtime Telecom Application ,It is a C++ Application , We have to finalize Technology used between Application and database. we have to Access some API To Access DATABASE ,those API will be in JAVA..Which will be beter option , shall we go for CORBA or JNI?I ...
1951 byte By
pclarkex at 2007-9-26 16:21:03
I'm trying to run the jvm 1.3.1_01 in -server mode on a unix box to run a multi-threaded server but the jvm either crashes or uses increasing amounts of CPU time.Does anyone have any ideas for a solution?When the JVM crashes I get the following error:Unexpected Signal : 10 occurred at ...
1969 byte By
pclarkex at 2007-9-26 16:21:04
I'm trying to run the jvm 1.3.1_01 in -server mode on a unix box to run a multi-threaded server but the jvm either crashes or uses increasing amounts of CPU time.Does anyone have any ideas for a solution?When the JVM crashes I get the following error:Unexpected Signal : 10 occurred at ...
Hi there,In the C++ DLL file I have, the author of the file actually defined complex data types using TYPEDEF & STRUCT keywords. These compound data types were passed as arguments, by referencing (pointers) in the functions of the DLL. So, how do I define all these compound data types in ...
205 byte By
m-krass at 2007-9-26 16:22:10
Hello,does anyone know a simple way to get an user input (double) in a applet which runs under 1.1 (IE 5) ?I would like that the users enters a parameter for the Applet.
246 byte By
jrsosa at 2007-9-26 16:23:14
Hello,Can anyone give me a brief explanation on how to use the methods of a dll (made on c++) from java?I would like to put the dll inside the jar/cab file along with the java classes.best regardsJonathan
1702 byte By
duyong at 2007-9-26 16:24:06
Hi,This is the first time I use jni and I encountered some problem when trying to accessing instance fields. My source code is as follows:java side:class C {int j;private native void f();static { System.loadLibrary("C"); }public static void main(String[] args){C c = new C();c.j = ...
plz clarify these doubts of mine :- 1. how do i tap the Jvm ?2. how do i call a java program in visual basic?3. how do i create a java application (.exe) using java?
138 byte By
zadamjee at 2007-9-26 16:25:24
HI,Can any one tell me what is the difference between Java Virtual Machine and Java Runtime EnvironmentThanks.
496 byte By
alexmarr at 2007-9-26 16:27:00
I am writing an application that after it runs it writes some results to a log file. It needs to write values of data type double and float to this log file. The log file needs to be in a human-readable text form not in an internal binary format. How do I do this?I tried connecting an ...
68 byte By
skyyjck at 2007-9-26 16:27:13
And How to use the DLLs which created from JNI in C++?
499 byte By
dagot at 2007-9-26 16:28:00
Hi.I have this little big problem.Have a application in Java. This apps calls a native method in C.The problem is, while the native method is running i don't have any control over the application. It does not responde.For example, if the application windows loses focus while the native method ...
Hi all!I compiled two DLLs with exactly the same signatures but different functions in the methods. When I execute my application only the first DLL is loaded and I can only use the functions of this DLL.The java code:public class Dienst{ private native String GetModulNameDLL(); public ...
400 byte By
jlrando at 2007-9-26 16:28:50
I have a call back function in my C++ project. This function should fire a Java event to notify something. I can save a global reference to the object which must receive the notification, but I have no "thread environment" to call the notification method. How can I get a valid "thread ...
149 byte By
zjpx at 2007-9-26 16:29:20
I have known how to call or map a C funtion into Java method through JNI. But, could we use the C++ class in a DLL in Java through JNI?
420 byte By
skittoes at 2007-9-26 16:31:47
I would like to know is it possible to dynamically load the classes in applet. What i mean is if the applet has already loaded class A, can I load it again from the server instead of using the cache copy in the browser in the client machine? If it is possible to be done, how can it be done? Can ...
I am experiencing no joy with getting the JVM to allocate a heap size of over 2G in my RedHat Linux server. My box has 4G RAM and i'd like to do java -mx4000M but all I get is "Could not reserve enough space for object heap". Anyone got a workarround (I assume its a 2^32 issue) and will it be ...
1504 byte By
DPP at 2007-9-26 16:36:02
I know there must be a very simple answer to this question, but for the life of me I can not find it. I was recently examining some of the Java class libraries. I came across something in the java.lang.String class that I found perplexing. In the String class there is a private instance ...
133 byte By
sky at 2007-9-26 16:36:53
Hi.. this is just a causal message... BTW any female developers in this forum? just hoping to make some friends here...
329 byte By
hspeijer at 2007-9-26 16:40:40
Hi there, I find myself in the situation where I have to access java classes from a Visual C++ project. I tried compiling the invoke.c from the JNI tutorial but I get horrible error messages. Does anybody know of sample visual C++ projects that call java methods through JNI?Thanks,Hans Speijer ...
373 byte By
katarn at 2007-9-26 16:41:09
Hi,I am showing a frame/panel/ (non canvas) Java component from a C++ application.I have been looking for information about this but I found no information about obtaining the window handle and/or hdc of the opened window...I need to embed this frame/panel in a "Windows window" :-)Is it ...
When you run a java process under AIX you can specify a parameter that looks like this:-verbose:gcIt shows all activity around the expansion and compression of the heap as objects are created and garbage collected. The problem I am having now is exactly how to read it all. Some of it is obvious ...
When you run a java process under AIX you can specify a parameter that looks like this:-verbose:gcIt shows all activity around the expansion and compression of the heap as objects are created and garbage collected. The problem I am having now is exactly how to read it all. Some of it is ...
150 byte By
asantosa at 2007-9-26 16:43:37
with the coming of ms .net, how will java handle interoperability with .net library (if we want to call a .net library from java code) ?
886 byte By
Decaff at 2007-9-26 16:44:34
Hello!I have a 600 megahertz Intel Pentium III machine running Windows 98 SE. I use the following browsers: Netscape 4.79, 6.2 and internet explorer 6.I was able to run java applications on my computer very well. I purchased a program to make web buttons. The program worked very well for a time ...
637 byte By
jgibbons at 2007-9-26 16:45:19
Hi,It appears that many Java GUI apps simply will not work on my new AMD 1800 processor. Many server side bits of java are fine, and some GUI apps work. But many die in myriad mysterious ways. Falling into broken heaps either at the start or some random time later.I've tried JDK118_008 with ...
1214 byte By
dstrang at 2007-9-26 16:46:08
HiI have been doing some profiling (well, more like memory debugging really) of a J2EE application and I've noticed something strange.When I start the application server up 'standalone' with the -verbose:gc option I get a lot of output showing (mainly) minor collections with the occasional ...
1263 byte By
drewboy at 2007-9-26 16:46:18
I'm trying to slow down an infinite loop with the followingcode. The program runs fine, (just super fast) with out the code, and still works fine with the code, for about 20 seconds, at which point i get the following error(s):Java HotSpot(TM) Client VM warning: ...