Re: set path for jdk.3

2001-04-09 Thread Ezra Taylor
Hello Liuchao: You need to set /etc/profile in order to run ( javac and java) from anywhere in your filesystem. In order to accomplish this, go to the directory /etc. Then look for the file pprofile. Also, use a text editor such as emacs or vi the edit this file. In thi

Re: ask for path

2001-04-09 Thread selvam
You can either set the path in the system boot up script or better still if you set it in your profile file. In linux your profile files will be in your home directory for instane if your login userid is liuchao, then your home directory will be /home/liuchao. look for profiles by typing ls -a at

Re: set path for jdk.3

2001-04-09 Thread Avi Cherry
>save this file and reboot your system. Why would you reboot your system just because you change your shell configuration file..? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact

Re: set path for jdk.3

2001-04-09 Thread Joi Ellis
On Mon, 9 Apr 2001, Ezra Taylor wrote: > Hello Liuchao: > You need to set /etc/profile in order to run ( > javac and java) from anywhere in your > filesystem. Change /etc/profile if you want java available by default for all users of the system. Otherwise, you should change only the perso

Re: ask for path

2001-04-09 Thread Aaron Brashears
Since you're using linux, I'll give my examples assuming you're using bash as your primary shell. I've usually had the best luck setting environment variables in my .bashrc file and deleting my .bash_profile and then setting .bash_profile as a symlink to my .bashrc. To see what I'm talking about,

call c function in java

2001-04-09 Thread Zhihong Pan
Hi, In my java application, I need to call my existing c functions. There are some struct data types in my C function, how to handle these ? Thanks in advance. Zhihong Pan Chek, Inc -- To UNSUBSCRIBE, email to [EMAIL PROTEC

Re: ask for path

2001-04-09 Thread Joi Ellis
On Mon, 9 Apr 2001, Aaron Brashears wrote: > Be sure to copy anything important out of .bash_profile into > .bashrc. Of course, if you just append the contents, it will save some > time. Uh. This is NOT a good idea. .bashrc is run whenever a child shell is launched. IE every time a command yo

Re: ask for path

2001-04-09 Thread Aaron Brashears
On Mon, Apr 09, 2001 at 12:49:56PM -0500, Joi Ellis wrote: > On Mon, 9 Apr 2001, Aaron Brashears wrote: > > > > $ cat .bash_profile >> .bashrc > > $ rm .bash_profile > > $ ln -s .bashrc .bash_profile > > No, no no. Don't DO this! Now you're running everything multiple times! Hm, interesting.

Re: ask for path

2001-04-09 Thread Joi Ellis
On Mon, 9 Apr 2001, Aaron Brashears wrote: > Hm, interesting. It's the only way I've found to keep things straight > when using ssh. I don't actually run any scripts in my .bashrc - the > contents are: > > . ~/.env > > And .env sets the environment. I use ssh daily and don't have any problems

error on calling c function in java

2001-04-09 Thread Zhihong Pan
When I call c function in my java application, I got the following error message: # # HotSpot Virtual Machine Error, Unexpected Signal 11 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4F533F4C494E55580E43505005BC # # Problematic Thread: prio=1 tid=0x804e50

Re: error on calling c function in java

2001-04-09 Thread Joi Ellis
On 9 Apr 2001, Zhihong Pan wrote: > When I call c function in my java application, I got the following error message: > # > # HotSpot Virtual Machine Error, Unexpected Signal 11 > # Please report this error at > # http://java.sun.com/cgi-bin/bugreport.cgi > # > # Error ID: 4F533F4C494E55580E43505

Re: error on calling c function in java

2001-04-09 Thread Calvin Austin
If this is a JNI program you may get more verification that it was inside your own code or from the VM from running with -classic . The new 1.3.1 release will have better hotspot diagnostics than the cryptic message below. If you do 'man ascii' you can read off the file name below, (its in hex) t

JNI for linux

2001-04-09 Thread Chao Liu
Hello,A problem was happened when I use JNI in linux to call my c programme. I used jdk1.3 and the following is my little test programm:--JavaCallC.java---import java.lang.*;public class  JavaCallC{  public JavaCallC() {  System.loadLibrary("javac"); } public nat

Re: JNI for linux

2001-04-09 Thread Weiqi Gao
> Chao Liu wrote: > > A problem was happened when I use JNI in linux to call my c programme. > I used jdk1.3 and the following is my little test programm: > > [...] > System.loadLibrary("javac"); > [...] > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no javac in > java.library.p