Visit Our UNIX and Linux User Community

invoking a java prog

Thread Tools Search this Thread
Operating Systems Linux invoking a java prog
# 1  
Old 10-12-2006
Error invoking a java prog

Can any1 guide me how to invoke a java program from a sh file.
do i need to set up the class path.
how to include the needed jar files.
# 2  
Old 10-12-2006
For instance
"${JAVA_HOME}"/bin/java -classpath "${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH}:.:../../..:../lib/ant-contrib.jar:../lib/client.jar:../lib/foundation.jar:../lib/incanto-0.2.0.jar:../lib/jaguar-delegate.jar:../lib/jaguar-gui-devel.jar:../lib/jaguar-if.jar:../lib/jaguar-mt2-gui.jar:../lib/jdom.jar:../lib/jhall.jar:../lib/log4j.jar:../lib/mt2-delegate.jar:../lib/mt2-if.jar:../lib/mt2-ui.jar:../lib/regexp.jar:../lib/server-foundation.jar:../lib/winie.jar:../lib/wlclient.jar:../lib/wljmsclient.jar:../lib/xerces.jar" com.datos.gui.client.session.Client

Previous Thread | Next Thread
Test Your Knowledge in Computers #335
Difficulty: Easy
Linus Torrent is the creator of the Linux kernel, which went on to be used in Linux, Android, and Chrome OS.
True or False?

10 More Discussions You Might Find Interesting

1. Debian

Help socket prog

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies

2. Programming

C prog Segmentation error.

Hello Friends, I made this program, it is running fine. when i try to add this line of code in to do repeat. It is giving segmentation error. can you please tell me how should i fix tht error. program runs fine. when i add char r; if statement while (ch r ='y') some cofe... (4 Replies)
Discussion started by: Learnerabc
4 Replies

3. Infrastructure Monitoring

Could not register prog

Hello guys, this solaris 10 on V480, does anyone know what do below errors indicate? I get them at console when system boots. server: svc_tp_create: Could not register prog 300598 vers 1 on udp Nov 11 16:57:43 servername server: svc_tp_create: Could not register prog 300598 vers 1 on tcp... (2 Replies)
Discussion started by: upengan78
2 Replies

4. Shell Programming and Scripting

how to call java prog from shell script

I have a java program to validate a XML file. I want to call this java program in a shell script which will be registered as concurrent program in oracle apps. Can anyone please let me know the step by step appraoch required to call java program in shell script like ....intial steps... (1 Reply)
Discussion started by: kcp_pavan
1 Replies

5. UNIX for Dummies Questions & Answers

Books on Linux Prog..

Hi everybody, Can anyone suggest me some good books on Linux Prog.. I know richard stevens is always there.. But any specific books on Linux Porgramming and Networking in Linux.. Wud be of great help if anybody replies.. (4 Replies)
Discussion started by: srikumar_cs
4 Replies

6. Shell Programming and Scripting

how to write shell prog

how to write shell program. EX : to check whether a string is a palindrome or not. (9 Replies)
Discussion started by: raram
9 Replies

7. Shell Programming and Scripting

shell script prog help

How to write a program to store the list of ordinary files and the directory files in the specified directory in two files called dir.dat and ord.dat. Then print the largest directory and largest file? (1 Reply)
Discussion started by: rameshparsa
1 Replies

8. Programming

Is there any possibility that invoking java function in c programm?

I think i am in trouble. I have to invoking a bunch of functions(such as encrypt, digital sign) from a java file(.jar), but I have no idea how to do that, Is there any possiblity? (6 Replies)
Discussion started by: virmin
6 Replies

9. Solaris

c prog gives segmentation fault

hello , I have a C program which runs perfectly on linux but gives a segmentation core dump when i try to run it on solaris. The compilation of the c code happens without any errors on solaris. Any pointers thanks Nayeem (2 Replies)
Discussion started by: nayeemmz
2 Replies

10. Programming

log user off from c prog

ok, heres what i want i need....well want, hehe... in a program, its a simple menu, i need to log the user running the program off...back to the login prompt. this is not a super user, just a normal account. i know i could just set the program to be the users login shell..but i'd rather do... (1 Reply)
Discussion started by: acromi
1 Replies

Featured Tech Videos