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
javaws(1)						      General Commands Manual							 javaws(1)

NAME
javaws - a Java Web Start client SYNOPSYS
javaws [-run-options] jnlp-file javaws [-control-option] DESCRIPTION
javaws is an implementation of a JNLP client. It uses a JNLP (Java Network Launch Protocol) file to securely run a remote Java application or a Java applet. This implementation of javaws is from the IcedTea project and is based on the NetX project. A JNLP file is an xml file that describes how to securely run a remote Java application or a Java applet. OPTIONS
When specifying options, the name of the jnlp file must be the last argument to javaws - all the options must preceede it. The jnlp-file can either be a url or a local path. Control Options By default javaws will launch the jnlp file specified on the command line. The control options can be used to change this behaviour. -about Shows a sample application that can be used to test the basic functionality of this implementation. -viewer Shows the trusted certificate viewer. This allows a user to list, examine, remove or export trusted certificates. Note that this only reflects the certificates trusted by javaws and not any other certificates or programs. Run Options In the default mode, the following run-options can be used: -basedir dir Directory where the cache and certificates to be used are stored. -arg arg Adds an application argument before launching. -param name=value Adds an applet parameter before launching. -property name=value Sets a system property before launching. -update seconds Update check if seconds since last checked. -license Display the GPL license and exit. -verbose Enable verbose output. Very useful in debugging. -nosecurity Disables the secure runtime environment. -noupdate Disables checking for updates. -headless Disables download window, other UIs. -strict Enables strict checking of JNLP file format. Any deviations from the JNLP DTD will cause javaws to abort. -umask=value Sets the umask for files created by an application. -Xnofork Do not create another JVM, even if the JNLP file asks for running in a separate JVM. This is useful for debugging. -Jjava-option This passes along java-option to the java binary that is running javaws. For example, to make javaws run with a max heap size of 80m, use -J-Xmx80m. -help Print a help message and exit. FILES
~/.icedtea/deployment.properties specifies the settings used by javaws BUGS
There arent any known bugs. If you come across one, please file it at http://icedtea.classpath.org/bugzilla/ Please run javaws in verbose mode and include that output along with the jnlp file when filing out the bug report. AUTHOR
Originally written by Jon. A. Maxwell. Currently maintained by the IcedTea contributors. SEE ALSO
java(1) http://icedtea.classpath.org/ http://jnlp.sourceforge.net/netx/ 9 Sep 2010 javaws(1)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy