Sponsored Content
Homework and Emergencies Homework & Coursework Questions Java doesn´t find the CLASSPATH (System variable) Post 302991531 by antoniosarco on Monday 13th of February 2017 01:15:49 AM
Old 02-13-2017
export CLASSPATH=/your/stuff/

or preserving system wide settings:

export CLASSPATH=$CLASSPATH:/your/addition/

the only different from Windows in terms of path-separators, : instead of ;

For example

java -classpath /mydir/mylib.jar:/otherdir/otherlib.jar com.MyProgram -Xmx64m

wildcard in the classpath to add multiple jars


java -cp "Halo.jar:lib/*" ni.package.MainClass

Java Path and Java ClassPath

Anto

Last edited by antoniosarco; 02-13-2017 at 02:28 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

my sgi system doesn't come up

:( Hi there, I have an O2 sgi and the other day when I was restarting the system it didn't come up. The error message is: unable to open "si(0)disk(2)rdisk(0)partition(0)": no such device I was assuming a hardware problem, but not for sure. Is there any one who could kindly tell me what... (1 Reply)
Discussion started by: siavoush
1 Replies

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

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

Trouble setting up Java classpath

Saw an error while setting up an application called i2phex: # ./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... (0 Replies)
Discussion started by: Israel213
0 Replies

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

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

7. Solaris

Solaris: ldd doesn't find libraries in exported environment variable LD_LIBRARY_PATH

I have given the relevant details below. Why are the libraries in /export/home/builds/pc9x_root/960/build/powrmart/pmbuild/bin/SunOS.64.r are invisible to ldd? %setenv ... (3 Replies)
Discussion started by: old_as_a_fossil
3 Replies

8. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies
ikvm(1) 						      General Commands Manual							   ikvm(1)

NAME
ikvm - java virtual machine executable using the CLI runtime SYNOPOSIS
ikvm [ options ] class [ args ... ] ikvm [ options ] -jar jarfile [ args ... ] DESCRIPTION
IKVM is an implentation of the Java for the Common Language Infrastructure (CLI) runtime. It includes a byte code JIT compiler/verifier to translate Java byte code to CIL and GNU Classpath to provide the Java class libraries. ikvm program performs this translation and execu- tion at run time, the ikvmc(1) program provides a static compilation to CIL. This program is intended to act as a drop-in replacement for the java program that executes java bytecode (with or without a JIT) and as such, takes a subset of that tool's options and arguments as given here. ikvm operates in two modes, either on a fully-qualified Java classname or on a jar file with the -jar jarfile option given. Any remaining arguments args ... are passed to the main class. CLASS SEARCHING
Classes are searched for in the current directory if no -cp / -classpath option, no -jar option and no CLASSPATH environment variable is set. If only CLASSPATH is set and no ptions are given only that is used to find classes, the current directory is not used unless CLSSPATH con- tains . If -cp / -classpath is given, CLASSPATH is ignored. If -jar is given, the jar file is put at the start of the classpath taken from either the -cp / -classpath option or from CLASSPATH. See also the description for the -Xbootclasspath option below. OPTIONS
-cp path -classpath path Set the JVM classpath to search for application classes and resources. The path is a sequence of directories and zip/jar files sep- arated by : (; on Windows). If this option is given more than once, only the last one applies. -Dname=value Set a system property name to value. -ea[:packagename ... | :classname] -enableassertions[:packagename ... | :classname] Enable assertions. -da[:packagename ... |:classname] -disableassertions[:packagename ... | :classname] Disable assertions. -version Display IKVM and runtime version -Xbootclasspath:path Set the boot JVM classpath for bootstrap classes and resources. The path is a sequence of directories and zip/jar files separated by : (; on Windows). If this option is given more than once, only the last one applies. -Xbreak Trigger a user defined breakpoint at startup -Xmethodtrace:string Builds method trace into the specified output methods -Xsave Save the generated assembly for debugging. -Xtime Time the execution. -Xtrace:name Displays all tracepoints with the given name. -Xwait Keep the process hanging around after exit. -? -help Display a summary of the usage. SEE ALSO
ikvmc(1), ikvmstub(1). IKVM Project web site http://ikvm.net/ <http://ikvm.net/> Man page by Dave Beckett, made available under the same terms as IKVM. 2005-06-19 ikvm(1)
All times are GMT -4. The time now is 03:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy