Trouble setting up Java classpath

Thread Tools Search this Thread
Operating Systems Linux Ubuntu Trouble setting up Java classpath
# 1  
Old 03-02-2011
Trouble setting up Java classpath

Saw an error while setting up an application called i2phex:
# ./
java.lang.RuntimeException: Failed to initialize
        at phex.common.ManagerController.initializeManagers(
        at phex.Main.main(

After seeing that I figured it was that I didn't have my classpath set up for java. I've set up classpath's before, but I don't know the directory to link it to. I know java is installed because this works:
# java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

But I checked and don't see a classpath for it:
# echo $JAVA

I also checked "env" and there's no environment variable for it there. Searched for the needed directory in many places sites off Google suggested for a java classpath but I didn't have any of them. Many searches with "find / -name" and came up empty.

PS.- I'm using Backtrack 4 r2 if that helps. (This is Ubuntu Intrepid... old, I know)

Last edited by Israel213; 03-03-2011 at 06:26 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Java doesnīt find the CLASSPATH (System variable)

1. The problem statement, all variables and given/known data: As a excercise I have to compile a program ( with a class file ( in another directory. (As you seen in the screenshot) Iīm setting a PATH and a CLASSPATH (system variables). Itīs working without a... (2 Replies)
Discussion started by: MenschTown
2 Replies

2. Shell Programming and Scripting

Trouble with setting a variable with vastool

Hi I have this command that when put on the command line it returns the output the way I want it. /opt/quest/bin/vastool list -a groups | grep testdev_li | grep dev | awk -F"" 'NF>2{print $2}' | cut -c2- | tr '\n' '|' The output of this is ... (2 Replies)
Discussion started by: ajetangay
2 Replies

3. UNIX for Advanced & Expert Users

Fedora java classpath

What is the proper way to set your java classpath? (0 Replies)
Discussion started by: cokedude
0 Replies

4. Programming

Classpath of JAVA

Hello, ABC question as I could not get a direct answer: How to locate the default IO class of JAVA? My question was triggered by the row in most java programimport* as I am very curious where the io class is located in my Mint14 (Ubuntu12.10). I am aware it is similar to use DBI in PERL,... (1 Reply)
Discussion started by: yifangt
1 Replies

5. UNIX for Dummies Questions & Answers

Trouble setting up a shared folder

I'm trying to set up a folder in my home directory that will be shared with another user but for some reason it is not working this is what I've done, I have tried two different ways using ACL's and chown/chgrp etc I set up a group called say: sharedgroup and added both my user (john) and fred... (3 Replies)
Discussion started by: 14952john
3 Replies

6. Shell Programming and Scripting

Trouble setting up flag ( getopt) for my script

do case $option in d ) CHEC=true;; # more option processing can go here \? ) echo "Unknown option: -$OPTARG" : ) echo "Missing option argument for -$OPTARG";; * ) echo "Unimplimented option: -$OPTARG";; esac done shift $(($OPTIND - 1)) (2 Replies)
Discussion started by: upenmishra
2 Replies

7. Programming

regarding classpath java

Hi, I have a below command.... $JAVA_HOME/bin/java -cp "/usr/orabase/product/10.2.0/lib:/usr/java/javajar/common/sched.jar:/usr/orabase/product/10.2.0/jdbc/lib/ojdbc14_g.jar:/usr/orabase/product/10.2.0/jdbc/lib/classes12.jar" I want to know where the Smart.class is... (1 Reply)
Discussion started by: PRKS
1 Replies

8. Shell Programming and Scripting

problem in setting classpath in shell script

please send me format for wriiting classpath in shell script this is my shell script --------------- #! /bin/bash javac /usr/bin/java File1 -------------------------- the script works fine on termianal but in cron it gives me error saying class defination not found ... (1 Reply)
Discussion started by: sari
1 Replies

9. Programming

exit status running java classpath in unix shell

I have a java classpath running inside of a unix shell script. During my testing it will error with lines that show an example like this below. error at Method) at<init>(, ... (2 Replies)
Discussion started by: mmcds
2 Replies
Login or Register to Ask a Question

Featured Tech Videos