Table

2000-09-12 Thread Alexander Hordt

Hello everything together!
I have a problem: I cannot find a class, which supplies a table to me 
in the Java LIBRARY. Where could I find so a
class? Or how can I go around this problem? Perhaps can I help myself
with "List" or with a "FieldArea"? I need at least three columns and
an unlimited number of lines.
Can someone help me?
Thanks.
Alex 
Mit freundlichen Gruessen

A.Hordt


>> systec Elektronik und Software GmbH <<  

 >Automatisierungs- und Antriebstechnik< 

  Nottulner Landweg 90  
  48161 Muenster - Germany  

  Telefon: 0700-SYSTEC-DE 
  Telefax: 0 25 34-80 01-77   
  eMail:   [EMAIL PROTECTED] 

  Besuchen Sie uns im Internet! 

  << http://www.systec.de >>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Table

2000-09-12 Thread Joi Ellis

Alexander Hordt wrote:
> 
> Hello everything together!
> I have a problem: I cannot find a class, which supplies a table to me
> in the Java LIBRARY. Where could I find so a
> class? Or how can I go around this problem? Perhaps can I help myself
> with "List" or with a "FieldArea"? I need at least three columns and
> an unlimited number of lines.
> Can someone help me?
> Thanks.
> Alex
> Mit freundlichen Gruessen

What about javax.swing.JTable?

--
Joi EllisSoftware Engineer
Aravox Technologies  [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
   - Chris Johnson


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Loading of JVM

2000-09-12 Thread Sabyasachi Gupta



Sorry my file had got cut earlier..I am sending the entire 
snippent now.
 

Hi,
Can anyone tell me the exact 
requirements for loading a jvm?
Do you require Classpath to be set 
before loading the jvm.
My code says Cannot load jvm 
unrecognized option
Code snippets are welcome
thanks
void LoadJVM()
{
JavaVMOption options[2];
JavaVMInitArgs vm_args;
JavaVM *jvm;
JNIEnv *env;
long result;
jmethodID mid;
jfieldID fid;
jobject jobj;
jclass cls;
int asize;
options[0].optionString = ".";
options[1].optionString = "-Djava.compiler=NONE";
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = JNI_FALSE;
result = JNI_CreateJavaVM(
&jvm,(void **)&env, &vm_args);
if(result == JNI_ERR ) {
printf("Error invoking the JVM");
return;
}
cls = env->FindClass("ArrayHandler");
if( cls == NULL ) {
printf("can't find class ArrayHandler\n");
return;
}
env->ExceptionClear();
mid=env->GetMethodID(cls, "", "()V");
jobj=env->NewObject(cls, mid);
fid=env->GetFieldID(cls, "arraySize", "I");
asize=env->GetIntField(jobj, fid);
printf("size of array is %d",asize);
jvm->DestroyJavaVM();
}


Loading of JVM via C

2000-09-12 Thread Sabyasachi Gupta




Hi,
Can anyone tell me the exact 
requirements for loading a jvm?
Do you require Classpath to be set 
before loading the jvm.
My code says Cannot load jvm 
unrecognized option
thanks
 
void LoadJVM()
{
JavaVMOption options[2];
JavaVMInitArgs vm_args;
JavaVM *jvm;
JNIEnv *env;
long result;
jmethodID mid;
jfieldID fid;
jobject jobj;
jclass cls;
int asize;
options[0].optionString = ".";
options[1].optionString = "-Djava.compiler=NONE";
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = JNI_FALSE;
result = JNI_CreateJavaVM(
&jvm,(void **)&env, &vm_args);
if(result == JNI_ERR ) {
printf("Error invoking the JVM");
return;
}
cls = env->FindClass("ArrayHandler");
if( cls == NULL ) {
printf("can't find class ArrayHandler\n");
return;
}
env->ExceptionClear();
mid=env->GetMethodID(cls, "", "()V");
jo


Re: Loading of JVM

2000-09-12 Thread Juergen Kreileder

> "Sabyasachi" == Sabyasachi Gupta <[EMAIL PROTECTED]> writes:

Sabyasachi> Can anyone tell me the exact requirements for loading
Sabyasachi> a jvm?  Do you require Classpath to be set before
Sabyasachi> loading the jvm.

No.

Sabyasachi> My code says Cannot load jvm unrecognized option

Sabyasachi> options[0].optionString = ".";

"." is no valid option.

BTW, our FAQ has a small C++ invocation example:
http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-4.html#ss4.5


Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Loading of JVM

2000-09-12 Thread Joi Ellis

> Sabyasachi Gupta wrote:
> 
> Sorry my file had got cut earlier..I am sending the entire snippent now.
> 
> 
> Hi,
> 
> Can anyone tell me the exact requirements for loading a jvm?
> 
> Do you require Classpath to be set before loading the jvm.
> 
> My code says Cannot load jvm unrecognized option
> 
> Code snippets are welcome
> 
> thanks

Dot isn't a valid option, is it?  My book doesn't use that
in its examples.  What's it for?


> options[0].optionString = ".";
> 
> options[1].optionString = "-Djava.compiler=NONE";
> 
> vm_args.version = JNI_VERSION_1_2;
> 
> vm_args.options = options;
> 
> vm_args.nOptions = 2;
> 
> vm_args.ignoreUnrecognized = JNI_FALSE;
> 
> result = JNI_CreateJavaVM(
> 
> &jvm,(void **)&env, &vm_args);
> 

--
Joi EllisSoftware Engineer
Aravox Technologies  [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
   - Chris Johnson


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Loading of JVM

2000-09-12 Thread Sabyasachi Gupta[CONTRACTOR]

THanks a lot...

I figured out.

jre/classic/jvm.dll was not in PATH

thanks anyway.


> To: " Sabyasachi Gupta" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Subject: Re: Loading  of JVM
> From: Juergen Kreileder <[EMAIL PROTECTED]>
> Date: 13 Sep 2000 02:51:56 +0200
> User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
> 
> > "Sabyasachi" == Sabyasachi Gupta <[EMAIL PROTECTED]> writes:
> 
> Sabyasachi> Can anyone tell me the exact requirements for loading
> Sabyasachi> a jvm?  Do you require Classpath to be set before
> Sabyasachi> loading the jvm.
> 
> No.
> 
> Sabyasachi> My code says Cannot load jvm unrecognized option
> 
> Sabyasachi> options[0].optionString = ".";
> 
> "." is no valid option.
> 
> BTW, our FAQ has a small C++ invocation example:
> 
http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-4.ht
ml#ss4.5
> 
> 
> Juergen
> 
> -- 
> Juergen Kreileder, Blackdown Java-Linux Team
> http://www.blackdown.org/java-linux.html
> JVM'01: http://www.usenix.org/events/jvm01/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]