Java programming


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Java programming
# 1  
Old 10-21-2005
Java programming

Hi

I'm logging on to a remote server through SSH. When my boss tries to go on to the server and logs on to the root account, he is able to run java with the classpath option (eg, "java -cp myjar.jar myClass"). When I try the same thing from my non-root account, I get the message "unrecognized option -- `-cp'". Furthermore, when I try to access a MySql database I get the error "Abnorted- core dump", but my boss on the root account can do it no problem. This must have something to do with the way the permissions are set, right? If so, what specific options need to be set so I can do this sort of thing? Any help is very much appreciated!

Brock
# 2  
Old 10-21-2005
More likely to be the environment for your account v the root account. Get the printout of 'env' for each and compare, you'll probably see the problem. The -cp option in java is the old syntax, newer versions use -classpath (or vice-versa, I can't remember which way round it is). Which leads me to believe you each have different versions in $PATH
# 3  
Old 10-21-2005
Hi Reborg

Thanks for your time, and your quick reply!

I actually managed to solve the problem. Turns out, some evil script was abducting my java command and running a crappy, useless script instead. I eventually figured it out with the help of someone who knows a LOT more about Unix than me! Well, I'm just glad it's over now.

Brock
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

2. Programming

system Programming using JAVA.

Dear Sir, How to write Code using JAVA technology for system programming ? I want to develop a new compiler for my own language. thanks in advance roy (1 Reply)
Discussion started by: swapan
1 Replies

3. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

4. UNIX for Dummies Questions & Answers

Linux Programming in JAvA

is it advisible to do Linux Programming in JAVA.. If so, whats the advantage over C++ or C.. Cud anyone also help me out by providing some links in this regard.. Would be highly appreciated.. (1 Reply)
Discussion started by: srikumar_cs
1 Replies

5. Post Here to Contact Site Administrators and Moderators

Java Programming in UNIX Environment

A suggetion: Don't we need to start Java Programming in UNIX Environment Forum ? (1 Reply)
Discussion started by: cub
1 Replies
Login or Register to Ask a Question