Sponsored Content
Operating Systems Linux Ubuntu Trouble setting up Java classpath Post 302500936 by Israel213 on Wednesday 2nd of March 2011 04:18:47 AM
Old 03-02-2011
Trouble setting up Java classpath

Saw an error while setting up an application called i2phex:
Code:
# ./run.sh
java.lang.RuntimeException: Failed to initialize phex.net.repres.i2p.I2PPresentationManager
        at phex.common.ManagerController.initializeManagers(ManagerController.java:78)
        at phex.Main.main(Main.java:161)

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:
Code:
# 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:
Code:
# 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..
 

9 More Discussions You Might Find Interesting

1. 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. java.io.FileNotFoundException error at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:129), ... (2 Replies)
Discussion started by: mmcds
2 Replies

2. 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 File1.java /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

3. 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" com.abrt.smart.Smart I want to know where the Smart.class is... (1 Reply)
Discussion started by: PRKS
1 Replies

4. 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

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. 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 java.io.* 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

7. 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

8. 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

9. 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 (Hello2.java) with a class file (HelloText.java) 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
jpackage-utils(7)						RPM Java packaging						 jpackage-utils(7)

NAME
jpackage-utils - Utilities, macros and other files for the JPackage Project <http://www.jpackage.org/>: SYNOPSIS
build-classpath build the Java classpath in a portable manner build-jar-repository build a jar repository in a portable manner rebuild-jar-repository rebuild a jar repository in a portable manner (after a jvm change...) build-classpath-directory build the Java classpath from a directory diff-jars show jar content differences jvmjar install jvm extensions create-jar-links create custom jar links clean-binary-files remove binary files from sources check-binary-files check for presence of unexpected binary files DESCRIPTION
The JPackage Project has two primary goals: - To provide a coherent set of Java software packages for Linux, satisfying all quality requirements of other applications. - To establish an efficient and robust policy for Java software packaging and installation. We focus on free and open source software whenever possible. For convenience, we also provide non-free packages without the restricted source code. Our RPMs are generic in that they should work on any RPM based Linux distribution (Mandriva, Red Hat, SuSE, others). Other packaging format suggestions are welcome too. FILES
/use/share/java-utils/java-functions shell script functions library for Java applications /etc/java/jpackage-release string identifying the currently installed JPackage release /etc/java/java.conf system-wide Java configuration file ~/.java/java.conf user's Java configuration /etc/rpm/macros.jpackage RPM macros for Java packagers and developers SEE ALSO
Regular Manual Pages build-classpath(1) build-classpath-directory(1) build-jar-repository(1) check-binary-files(1) clean-binary-files(1) create-jar-links(1) diff-jars(1) find-jar(1) jvmjar(1) rebuild-jar-repository(1) rebuild-security-providers(1) java.conf(5) Documentation Following files are located in your standard documentation directory HEADER.JPP A standard header with license for spec files of JPackage Project clean-binary-files.txt A further documentation for check-binary-files(1), clean-binary-files(1) and create-jar-links(1) commands httpd-javadoc.conf Example JPackage javadoc configuration snippet for Apache jpackage-1.5-policy.xhtml JPackage Java infrastructure design and packaging policy jpackage-utils-policy JPackage packaging (naming) policy AUTHOR
Written by the JPackage Project REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/) jpackage-utils 1.7.5 February 2009 jpackage-utils(7)
All times are GMT -4. The time now is 01:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy